diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-02-17 19:48:45 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-02-17 20:45:05 +0100 |
commit | acf680389e95c82d2e0df1253f16842d320f3504 (patch) | |
tree | 3306566b97aae41ea080fd5e33b2ce6609b2e81b /src/modules/fw_pos_control_l1 | |
parent | 838290fa63cf5592e5c9d7590d0f359f5f81aac3 (diff) | |
download | px4-firmware-acf680389e95c82d2e0df1253f16842d320f3504.tar.gz px4-firmware-acf680389e95c82d2e0df1253f16842d320f3504.tar.bz2 px4-firmware-acf680389e95c82d2e0df1253f16842d320f3504.zip |
launchdetector: add reset, #663
Diffstat (limited to 'src/modules/fw_pos_control_l1')
-rw-r--r-- | src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | 1 |
1 files changed, 1 insertions, 0 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 45fdaa355..a4142266b 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 @@ -1055,6 +1055,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi if (pos_sp_triplet.current.type != SETPOINT_TYPE_TAKEOFF) { launch_detected = false; usePreTakeoffThrust = false; + launchDetector.reset(); } if (was_circle_mode && !_l1_control.circle_mode()) { |