diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-06-01 10:55:50 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-06-01 10:55:50 +0200 |
commit | c4cf07b1a943b0c4c1ebb553c0322695128c396f (patch) | |
tree | 7cb1867ba62a7a24526bfd59f95f12e79d6b82d0 | |
parent | 0c943b30d4a26f4d8bf1059a3ee491988bcd8dac (diff) | |
download | px4-firmware-c4cf07b1a943b0c4c1ebb553c0322695128c396f.tar.gz px4-firmware-c4cf07b1a943b0c4c1ebb553c0322695128c396f.tar.bz2 px4-firmware-c4cf07b1a943b0c4c1ebb553c0322695128c396f.zip |
fix stupid error in underspeed detection
-rw-r--r-- | src/modules/fw_pos_control_l1/mtecs/mTecs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/fw_pos_control_l1/mtecs/mTecs.cpp b/src/modules/fw_pos_control_l1/mtecs/mTecs.cpp index a5e680f02..3de51695e 100644 --- a/src/modules/fw_pos_control_l1/mtecs/mTecs.cpp +++ b/src/modules/fw_pos_control_l1/mtecs/mTecs.cpp @@ -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; } |