Browse Source

fix stupid error in underspeed detection

sbg
Thomas Gubler 11 years ago
parent
commit
c4cf07b1a9
  1. 2
      src/modules/fw_pos_control_l1/mtecs/mTecs.cpp

2
src/modules/fw_pos_control_l1/mtecs/mTecs.cpp

@ -186,7 +186,7 @@ int mTecs::updateFlightPathAngleAcceleration(float flightPathAngle, float flight @@ -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…
Cancel
Save