Esempio n. 1
0
        protected void ResetVariables()
        {
            keepAliveStopwatch.Reset();

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

            currentNavigationData = new DroneData();

            currentSequenceNumber = initialSequenceNumber;
        }
Esempio n. 2
0
        private void DetermineNavigationData(byte[] buffer, int position)
        {
            unsafe
            {
                fixed(byte *entry = &buffer[position])
                {
                    currentNavigationDataStruct = *(NavigationDataStruct *)entry;
                }
            }

            currentNavigationData = new DroneData(currentNavigationDataStruct);
        }