diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-09 14:12:17 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-09 14:12:17 +0200 |
commit | 8b67f88331a9dc65e5c947da177701317d77f8bd (patch) | |
tree | c43d34e2b8ddf4f5280287878238ee854eac9ed5 /src/modules/commander | |
parent | 1deced7629e7d140a931c42657f75da512696c7e (diff) | |
download | px4-firmware-8b67f88331a9dc65e5c947da177701317d77f8bd.tar.gz px4-firmware-8b67f88331a9dc65e5c947da177701317d77f8bd.tar.bz2 px4-firmware-8b67f88331a9dc65e5c947da177701317d77f8bd.zip |
Play warning tune
Diffstat (limited to 'src/modules/commander')
-rw-r--r-- | src/modules/commander/state_machine_helper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/commander/state_machine_helper.c b/src/modules/commander/state_machine_helper.c index ac603abfd..e18c0edc3 100644 --- a/src/modules/commander/state_machine_helper.c +++ b/src/modules/commander/state_machine_helper.c @@ -49,6 +49,7 @@ #include <mavlink/mavlink_log.h> #include "state_machine_helper.h" +#include "commander.h" static const char *system_state_txt[] = { "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 */ if (current_status->flag_safety_safe) { mavlink_log_critical(mavlink_fd, "DISENGAGE SAFETY BEFORE ARMING!"); + + /* play warning tune */ + tune_error(); } } |