1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-18 22:05:15 +03:00

refactoring

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-05-28 10:57:29 +02:00
parent df9bc75630
commit 65f685ccff
2 changed files with 2 additions and 2 deletions

View file

@ -447,7 +447,7 @@ void applyFixedWingPitchRollThrottleController(navigationFSMStateFlags_t navStat
* Then altitude is below landing slowdown min. altitude, set throttle to min_throttle
* TODO refactor conditions in this metod if logic is proven to be correct
*/
if (sensors(SENSOR_BARO) && posControl.actualState.pos.V.Z < navConfig()->general.land_slowdown_minalt) {
if (posControl.flags.hasValidAltitudeSensor && posControl.actualState.pos.V.Z < navConfig()->general.land_slowdown_minalt) {
rcCommand[THROTTLE] = navConfig()->fw.min_throttle;
}
}