launchdetection: add mavlink text output

This commit is contained in:
Thomas Gubler
2013-12-30 22:21:53 +01:00
parent 9cc1fc1cb5
commit 080ecf56ca
@@ -991,7 +991,7 @@ FixedwingPositionControl::control_position(const math::Vector2f &current_positio
launchDetector.update(_sensor_combined.accelerometer_m_s2[0]); launchDetector.update(_sensor_combined.accelerometer_m_s2[0]);
if (launchDetector.getLaunchDetected()) { if (launchDetector.getLaunchDetected()) {
launch_detected = true; launch_detected = true;
warnx("Launch detected. Taking off!"); mavlink_log_info(_mavlink_fd, "#audio: Takeoff");
} }
} else { } else {
/* no takeoff detection --> fly */ /* no takeoff detection --> fly */