aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2013-12-13 21:15:21 +0400
committerAnton Babushkin <anton.babushkin@me.com>2013-12-13 21:15:21 +0400
commitdeac4eefc6c0176fcfaf5a2ab58f3095198334f6 (patch)
tree032fe84e3f6f3ebce023dbc699345e94477f1069 /src/lib
parent6f316b352dfd4fffd7513388487c5f9fff0a9c8f (diff)
parent0b9b68f0d96f59c9cd406547ee52fb52617a298f (diff)
downloadpx4-firmware-deac4eefc6c0176fcfaf5a2ab58f3095198334f6.tar.gz
px4-firmware-deac4eefc6c0176fcfaf5a2ab58f3095198334f6.tar.bz2
px4-firmware-deac4eefc6c0176fcfaf5a2ab58f3095198334f6.zip
Merge branch 'master' into vector_control2
Diffstat (limited to 'src/lib')
-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 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,