Example #1
0
 private static void UpdateStateUsing(CTRL_STATES ctrlStates, ref NavigationState state)
 {
     switch (ctrlStates)
     {
         case CTRL_STATES.CTRL_TRANS_TAKEOFF:
             state |= NavigationState.Takeoff;
             break;
         case CTRL_STATES.CTRL_TRANS_LANDING:
             state |= NavigationState.Landing;
             break;
         case CTRL_STATES.CTRL_HOVERING:
             state |= NavigationState.Hovering;
             break;
     }
 }
Example #2
0
        private static void UpdateStateUsing(CTRL_STATES ctrlStates, ref NavigationState state)
        {
            switch (ctrlStates)
            {
            case CTRL_STATES.CTRL_TRANS_TAKEOFF:
                state |= NavigationState.Takeoff;
                break;

            case CTRL_STATES.CTRL_TRANS_LANDING:
                state |= NavigationState.Landing;
                break;

            case CTRL_STATES.CTRL_HOVERING:
                state |= NavigationState.Hovering;
                break;
            }
        }