1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2017-05-29 11:29:59 +02:00
parent 65f685ccff
commit ae2aff0b3d

View file

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