launchdetector: add reset, #663

This commit is contained in:
Thomas Gubler
2014-02-17 20:45:05 +01:00
parent 838290fa63
commit acf680389e
6 changed files with 17 additions and 3 deletions
@@ -1055,6 +1055,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> &current_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()) {