public MainPage() { UpdateScreen = new DispatcherTimer(); DoPositioning = new DispatcherTimer(); RetrievePosition = new DispatcherTimer(); UpdateScreen.Tick += UpdateScreen_Tick; DoPositioning.Tick += DoPositioning_Tick; RetrievePosition.Tick += RetrievePosition_Tick; UpdateScreen.Interval = new TimeSpan(0, 0, 0, 0, 1000 / 50); RetrievePosition.Interval = new TimeSpan(0, 0, 0, 0, 200); DoPositioning.Interval = new TimeSpan(0, 0, 0, 0, 400); this.InitializeComponent(); StopRunning(); _Pozyx = new Pozyx(); _Testcase = new Testcase(_Pozyx); _FriendPosition = new Position(); //_FriendId = 0x6843; _FriendId = 0x6E38; // The id of our 2nd pozyx _UseFriend = true; StartUp(); }
/// <summary> /// Creates a Testcase class. Call dotest to perform one /// </summary> /// <param name="pozyx">Pozyx object</param> public Testcase(Pozyx pozyx) { _Pozyx = pozyx; }