mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-18 22:05:15 +03:00
Lock roll in zero position during final approach
This commit is contained in:
parent
65f685ccff
commit
ae2aff0b3d
1 changed files with 2 additions and 0 deletions
|
@ -445,10 +445,12 @@ void applyFixedWingPitchRollThrottleController(navigationFSMStateFlags_t navStat
|
|||
|
||||
/*
|
||||
* Then altitude is below landing slowdown min. altitude, set throttle to min_throttle
|
||||
* And lock ROLL axis in ZERO position
|
||||
* TODO refactor conditions in this metod if logic is proven to be correct
|
||||
*/
|
||||
if (posControl.flags.hasValidAltitudeSensor && posControl.actualState.pos.V.Z < navConfig()->general.land_slowdown_minalt) {
|
||||
rcCommand[THROTTLE] = navConfig()->fw.min_throttle;
|
||||
rcCommand[ROLL] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue