diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-13 08:09:36 -0800 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-13 08:09:36 -0800 |
commit | 0b58c01dcc79ec82d701820dcfce3af15c5d67ce (patch) | |
tree | 5f0c09c8496d86cd8f6e5ccce251b21015e2f3b1 /src | |
parent | 96997697e5a20c15d3a7995da5b077cc4b46987f (diff) | |
parent | 3527ea8a62e4b4d896cd35bbe9e9c54b0edc1579 (diff) | |
download | px4-firmware-0b58c01dcc79ec82d701820dcfce3af15c5d67ce.tar.gz px4-firmware-0b58c01dcc79ec82d701820dcfce3af15c5d67ce.tar.bz2 px4-firmware-0b58c01dcc79ec82d701820dcfce3af15c5d67ce.zip |
Merge pull request #534 from thomasgubler/tecs_fix_comparison
tecs: fix wrong != 0 check
Diffstat (limited to 'src')
-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, |