fix stupid error in underspeed detection

This commit is contained in:
Thomas Gubler 2014-06-01 10:55:50 +02:00
parent 0c943b30d4
commit c4cf07b1a9
1 changed files with 1 additions and 1 deletions

View File

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