From d8085f71af8a3dd1e1c24fe70a4d6aee4fc41001 Mon Sep 17 00:00:00 2001 From: RuffaloVM Date: Fri, 4 Mar 2022 18:43:50 +0900 Subject: [PATCH] ArduPlane : case label indentation --- ArduPlane/RC_Channel.cpp | 12 ++++++------ ArduPlane/reverse_thrust.cpp | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ArduPlane/RC_Channel.cpp b/ArduPlane/RC_Channel.cpp index dcf71e5085..59f34fc1fa 100644 --- a/ArduPlane/RC_Channel.cpp +++ b/ArduPlane/RC_Channel.cpp @@ -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: #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 diff --git a/ArduPlane/reverse_thrust.cpp b/ArduPlane/reverse_thrust.cpp index b44c36feed..04033d00f6 100644 --- a/ArduPlane/reverse_thrust.cpp +++ b/ArduPlane/reverse_thrust.cpp @@ -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: