mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-17 13:25:27 +03:00
Update navigation.c
This commit is contained in:
parent
99e787c96b
commit
2a01175e0e
1 changed files with 1 additions and 1 deletions
|
@ -2470,7 +2470,7 @@ static bool rthAltControlStickOverrideCheck(unsigned axis)
|
|||
|
||||
if (!rthOverrideStickHoldStartTime[axis]) {
|
||||
rthOverrideStickHoldStartTime[axis] = millis();
|
||||
} else if (ABS(2500 - holdTime) < 500) {
|
||||
} else if (ABS(2500 - holdTime) < 500) { // 2s delay to activate, activation duration limited to 1 sec
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue