1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 23:35:30 +03:00

Fix white space

This commit is contained in:
breadoven 2021-02-10 23:20:05 +00:00
parent adf5b38e3d
commit 0a93b8b64a
2 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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;