aboutsummaryrefslogtreecommitdiff
path: root/src/lib/external_lgpl
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2013-11-19 16:37:48 +0100
committerThomas Gubler <thomasgubler@gmail.com>2013-11-19 16:37:48 +0100
commitcc96edfe014b0990fdd489ef1e38df2fad456189 (patch)
tree1908898d68a677ca0ebfd0f7c1d31bab6165ad7f /src/lib/external_lgpl
parent324d60f92713e6bdd8e71c24fb9beb7668fc2ae3 (diff)
downloadpx4-firmware-cc96edfe014b0990fdd489ef1e38df2fad456189.tar.gz
px4-firmware-cc96edfe014b0990fdd489ef1e38df2fad456189.tar.bz2
px4-firmware-cc96edfe014b0990fdd489ef1e38df2fad456189.zip
tecs: fix wrong != 0 check
Diffstat (limited to 'src/lib/external_lgpl')
-rw-r--r--src/lib/external_lgpl/tecs/tecs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/external_lgpl/tecs/tecs.cpp b/src/lib/external_lgpl/tecs/tecs.cpp
index a94a06dda..510b8ed9c 100644
--- a/src/lib/external_lgpl/tecs/tecs.cpp
+++ b/src/lib/external_lgpl/tecs/tecs.cpp
@@ -314,7 +314,7 @@ void TECS::_update_throttle(float throttle_cruise, const math::Dcm &rotMat)
// Rate limit PD + FF throttle
// Calculate the throttle increment from the specified slew time
- if (fabsf(_throttle_slewrate) < 0.01f) {
+ if (fabsf(_throttle_slewrate) > 0.01f) {
float thrRateIncr = _DT * (_THRmaxf - _THRminf) * _throttle_slewrate;
_throttle_dem = constrain(_throttle_dem,