protected void ResetVariables() { keepAliveStopwatch.Reset(); currentNavigationDataStruct = new NavigationDataStruct(); currentNavigationDataHeaderStruct = new NavigationDataHeaderStruct(); currentNavigationData = new DroneData(); currentSequenceNumber = initialSequenceNumber; }
private void DetermineNavigationDataHeader(byte[] buffer) { unsafe { fixed(byte *entry = &buffer[0]) { currentNavigationDataHeaderStruct = *(NavigationDataHeaderStruct *)entry; } } SetStatusFlags(currentNavigationDataHeaderStruct.Status); //Console.WriteLine(currentNavigationDataHeaderStruct.Status); }