mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 08:43:34 +08:00
launchdetection: add mavlink text output
This commit is contained in:
@@ -991,7 +991,7 @@ FixedwingPositionControl::control_position(const math::Vector2f ¤t_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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user