forked from Archive/PX4-Autopilot
fix stupid error in underspeed detection
This commit is contained in:
parent
0c943b30d4
commit
c4cf07b1a9
|
@ -186,7 +186,7 @@ int mTecs::updateFlightPathAngleAcceleration(float flightPathAngle, float flight
|
|||
}
|
||||
|
||||
/* Check airspeed: if below safe value switch to underspeed mode (if not in takeoff mode) */
|
||||
if (!TECS_MODE_LAND && airspeed < _airspeedMin.get()) {
|
||||
if (mode != TECS_MODE_LAND && airspeed < _airspeedMin.get()) {
|
||||
mode = TECS_MODE_UNDERSPEED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue