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:39:17 +0100 |
commit | 3527ea8a62e4b4d896cd35bbe9e9c54b0edc1579 (patch) | |
tree | 5e548140a5e86660a142f18a54f3814f4418ce54 /src/lib/external_lgpl | |
parent | f1fece2bb6fe4d40128f3f17b92c073d50cce982 (diff) | |
download | px4-firmware-3527ea8a62e4b4d896cd35bbe9e9c54b0edc1579.tar.gz px4-firmware-3527ea8a62e4b4d896cd35bbe9e9c54b0edc1579.tar.bz2 px4-firmware-3527ea8a62e4b4d896cd35bbe9e9c54b0edc1579.zip |
tecs: fix wrong != 0 check
Diffstat (limited to 'src/lib/external_lgpl')
-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 864a9d24d..a733ef1d2 100644 --- a/src/lib/external_lgpl/tecs/tecs.cpp +++ b/src/lib/external_lgpl/tecs/tecs.cpp @@ -299,7 +299,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, |