mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
Play warning tune
This commit is contained in:
@@ -49,6 +49,7 @@
|
|||||||
#include <mavlink/mavlink_log.h>
|
#include <mavlink/mavlink_log.h>
|
||||||
|
|
||||||
#include "state_machine_helper.h"
|
#include "state_machine_helper.h"
|
||||||
|
#include "commander.h"
|
||||||
|
|
||||||
static const char *system_state_txt[] = {
|
static const char *system_state_txt[] = {
|
||||||
"SYSTEM_STATE_PREFLIGHT",
|
"SYSTEM_STATE_PREFLIGHT",
|
||||||
@@ -539,6 +540,9 @@ void update_state_machine_arm(int status_pub, struct vehicle_status_s *current_s
|
|||||||
/* safety is in safe position, disallow arming */
|
/* safety is in safe position, disallow arming */
|
||||||
if (current_status->flag_safety_safe) {
|
if (current_status->flag_safety_safe) {
|
||||||
mavlink_log_critical(mavlink_fd, "DISENGAGE SAFETY BEFORE ARMING!");
|
mavlink_log_critical(mavlink_fd, "DISENGAGE SAFETY BEFORE ARMING!");
|
||||||
|
|
||||||
|
/* play warning tune */
|
||||||
|
tune_error();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user