protected override void ResetVariables() { base.ResetVariables(); currentNavigationDataStruct = new NavigationDataStruct(); currentNavigationDataHeaderStruct = new NavigationDataHeaderStruct(); currentNavigationData = new DroneData(); currentSequenceNumber = initialSequenceNumber; }
private void DetermineNavigationData(byte[] buffer, int position) { unsafe { fixed(byte *entry = &buffer[position]) { currentNavigationDataStruct = *(NavigationDataStruct *)entry; } } currentNavigationData = new DroneData(currentNavigationDataStruct); }