Exemplo n.º 1
0
        private async void Button1_Click(object sender, RoutedEventArgs e)
        {
            if (_Running)
            {
            }
            else // set the anchors in the Kleine vergader ruimte
            {
                DisableButtons();

                _Pozyx.ClearDevices();
                await Task.Delay(500);

                // Onze kamer
                _Pozyx.AddAnchor(0x6029, 1, 0, 0, 2000);
                await Task.Delay(200);

                _Pozyx.AddAnchor(0x6038, 1, 2252, 0, 2000);
                await Task.Delay(200);

                _Pozyx.AddAnchor(0x605B, 1, -560, 8056, 20000);
                await Task.Delay(200);

                _Pozyx.AddAnchor(0x6047, 1, 2953, 8197, 2000);
                await Task.Delay(200);

                EnableButtons();
            }
        }