diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-18 08:07:35 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-18 08:07:35 +0200 |
commit | 81f60329e47f8b31d9261c0ef46c09780f9d8194 (patch) | |
tree | 525442f16be91f2bb0507bdb0603f333d3df0dee /src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | |
parent | 90a5ae1afd25e5e31d269f0d0f5e5052f068d0b1 (diff) | |
download | px4-firmware-81f60329e47f8b31d9261c0ef46c09780f9d8194.tar.gz px4-firmware-81f60329e47f8b31d9261c0ef46c09780f9d8194.tar.bz2 px4-firmware-81f60329e47f8b31d9261c0ef46c09780f9d8194.zip |
Remove last reference to mtecs enabled param
Diffstat (limited to 'src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp')
-rw-r--r-- | src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp index 1fcab2069..5894aeb0b 100644 --- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp +++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp @@ -756,10 +756,8 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi if (!_was_pos_control_mode) { /* reset integrators */ - if (_mTecs.getEnabled()) { - _mTecs.resetIntegrators(); - _mTecs.resetDerivatives(_airspeed.true_airspeed_m_s); - } + _mTecs.resetIntegrators(); + _mTecs.resetDerivatives(_airspeed.true_airspeed_m_s); } _was_pos_control_mode = true; |