mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 23:23:33 +08:00
Revert "Remove last reference to mtecs enabled param"
This reverts commit 81f60329e4.
This commit is contained in:
@@ -756,8 +756,10 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
|||||||
|
|
||||||
if (!_was_pos_control_mode) {
|
if (!_was_pos_control_mode) {
|
||||||
/* reset integrators */
|
/* reset integrators */
|
||||||
_mTecs.resetIntegrators();
|
if (_mTecs.getEnabled()) {
|
||||||
_mTecs.resetDerivatives(_airspeed.true_airspeed_m_s);
|
_mTecs.resetIntegrators();
|
||||||
|
_mTecs.resetDerivatives(_airspeed.true_airspeed_m_s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_was_pos_control_mode = true;
|
_was_pos_control_mode = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user