Browse Source

ArduPlane : case label indentation

apm_2208
RuffaloVM 3 years ago committed by Tom Pittenger
parent
commit
d8085f71af
  1. 12
      ArduPlane/RC_Channel.cpp
  2. 8
      ArduPlane/reverse_thrust.cpp

12
ArduPlane/RC_Channel.cpp

@ -318,10 +318,10 @@ bool RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwit
break; break;
#endif #endif
case AUX_FUNC::ARSPD_CALIBRATE: case AUX_FUNC::ARSPD_CALIBRATE:
#if AP_AIRSPEED_AUTOCAL_ENABLE #if AP_AIRSPEED_AUTOCAL_ENABLE
switch (ch_flag) { switch (ch_flag) {
case AuxSwitchPos::HIGH: case AuxSwitchPos::HIGH:
plane.airspeed.set_calibration_enabled(true); plane.airspeed.set_calibration_enabled(true);
break; break;
case AuxSwitchPos::MIDDLE: case AuxSwitchPos::MIDDLE:
@ -333,9 +333,9 @@ case AUX_FUNC::ARSPD_CALIBRATE:
#endif #endif
break; break;
case AUX_FUNC::LANDING_FLARE: case AUX_FUNC::LANDING_FLARE:
do_aux_function_flare(ch_flag); do_aux_function_flare(ch_flag);
break; break;
case AUX_FUNC::PARACHUTE_RELEASE: case AUX_FUNC::PARACHUTE_RELEASE:
#if PARACHUTE == ENABLED #if PARACHUTE == ENABLED

8
ArduPlane/reverse_thrust.cpp

@ -90,16 +90,16 @@ bool Plane::allow_reverse_thrust(void) const
case Mode::Number::TAKEOFF: case Mode::Number::TAKEOFF:
allow = false; allow = false;
break; break;
case Mode::Number::FLY_BY_WIRE_A: case Mode::Number::FLY_BY_WIRE_A:
allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_FBWA); allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_FBWA);
break; break;
case Mode::Number::ACRO: case Mode::Number::ACRO:
allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_ACRO); allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_ACRO);
break; break;
case Mode::Number::STABILIZE: case Mode::Number::STABILIZE:
allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_STABILIZE); allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_STABILIZE);
break; break;
case Mode::Number::THERMAL: case Mode::Number::THERMAL:
allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_THERMAL); allow |= (g.use_reverse_thrust & USE_REVERSE_THRUST_THERMAL);
break; break;
default: default:

Loading…
Cancel
Save