Browse Source

Merge pull request #534 from thomasgubler/tecs_fix_comparison

tecs: fix wrong != 0 check
sbg
Lorenz Meier 11 years ago
parent
commit
0b58c01dcc
  1. 2
      src/lib/external_lgpl/tecs/tecs.cpp

2
src/lib/external_lgpl/tecs/tecs.cpp

@ -299,7 +299,7 @@ void TECS::_update_throttle(float throttle_cruise, const math::Dcm &rotMat) @@ -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,

Loading…
Cancel
Save