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

8
ArduPlane/reverse_thrust.cpp

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

Loading…
Cancel
Save