mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 19:13:34 +08:00
fix stupid error in underspeed detection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user