diff --git a/src/main/fc/settings.yaml b/src/main/fc/settings.yaml index d04e5013f6..36eabf5f55 100644 --- a/src/main/fc/settings.yaml +++ b/src/main/fc/settings.yaml @@ -2135,12 +2135,12 @@ groups: description: "Configure how the aircraft will manage altitude on the way home, see Navigation modes on wiki for more details" default_value: "AT_LEAST" field: general.flags.rth_alt_control_mode - table: nav_rth_alt_mode + table: nav_rth_alt_mode - name: nav_rth_alt_control_override description: "If set to ON RTH altitude and CLIMB FIRST settings can be overridden during the RTH climb phase using full pitch or roll stick held for > 2 seconds. RTH altitude is reset to the current altitude using pitch down stick. RTH CLIMB FIRST is overridden using right roll stick so craft turns and heads directly to home." default_value: "OFF" - field: general.flags.rth_alt_control_override - type: bool + field: general.flags.rth_alt_control_override + type: bool - name: nav_rth_abort_threshold description: "RTH sanity checking feature will notice if distance to home is increasing during RTH and once amount of increase exceeds the threshold defined by this parameter, instead of continuing RTH machine will enter emergency landing, self-level and go down safely. Default is 500m which is safe enough for both multirotor machines and airplanes. [cm]" default_value: "50000" diff --git a/src/main/navigation/navigation.c b/src/main/navigation/navigation.c index 90786f92a5..5c05bf5e68 100755 --- a/src/main/navigation/navigation.c +++ b/src/main/navigation/navigation.c @@ -2579,7 +2579,7 @@ static bool rthAltControlStickOverrideCheck(unsigned axis) } else if (ABS(2500 - holdTime) < 500) { if (axis == PITCH) { // PITCH down to override preset altitude reset to current altitude posControl.rthState.rthInitialAltitude = posControl.actualState.abs.pos.z; - posControl.rthState.rthFinalAltitude = posControl.rthState.rthInitialAltitude; + posControl.rthState.rthFinalAltitude = posControl.rthState.rthInitialAltitude; return true; } else if (axis == ROLL) { // ROLL right to override climb first return true;