Example #1
0
        protected void ResetVariables()
        {
            keepAliveStopwatch.Reset();

            currentNavigationDataStruct       = new NavigationDataStruct();
            currentNavigationDataHeaderStruct = new NavigationDataHeaderStruct();

            currentNavigationData = new DroneData();

            currentSequenceNumber = initialSequenceNumber;
        }
Example #2
0
        private void DetermineNavigationDataHeader(byte[] buffer)
        {
            unsafe
            {
                fixed(byte *entry = &buffer[0])
                {
                    currentNavigationDataHeaderStruct = *(NavigationDataHeaderStruct *)entry;
                }
            }

            SetStatusFlags(currentNavigationDataHeaderStruct.Status);
            //Console.WriteLine(currentNavigationDataHeaderStruct.Status);
        }