Merge remote-tracking branch 'upstream/mtecs' into mtecs_wind_estimate

This commit is contained in:
Thomas Gubler 2014-06-02 18:36:00 +02:00
commit 7df87187c0
1 changed files with 2 additions and 2 deletions

View File

@ -185,8 +185,8 @@ int mTecs::updateFlightPathAngleAcceleration(float flightPathAngle, float flight
(double)energyDistributionRateSp, (double)energyDistributionRate, (double)energyDistributionRateError, (double)energyDistributionRateError2);
}
/* Check airspeed: if below safe value switch to underspeed mode (if not in takeoff mode) */
if (mode != TECS_MODE_LAND && airspeed < _airspeedMin.get()) {
/* Check airspeed: if below safe value switch to underspeed mode (if not in land or takeoff mode) */
if (mode != TECS_MODE_LAND && mode != TECS_MODE_TAKEOFF && airspeed < _airspeedMin.get()) {
mode = TECS_MODE_UNDERSPEED;
}