diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2013-11-19 16:37:48 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2013-11-19 16:37:48 +0100 |
commit | cc96edfe014b0990fdd489ef1e38df2fad456189 (patch) | |
tree | 1908898d68a677ca0ebfd0f7c1d31bab6165ad7f /src/lib | |
parent | 324d60f92713e6bdd8e71c24fb9beb7668fc2ae3 (diff) | |
download | px4-firmware-cc96edfe014b0990fdd489ef1e38df2fad456189.tar.gz px4-firmware-cc96edfe014b0990fdd489ef1e38df2fad456189.tar.bz2 px4-firmware-cc96edfe014b0990fdd489ef1e38df2fad456189.zip |
tecs: fix wrong != 0 check
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/external_lgpl/tecs/tecs.cpp | 2 |
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, |