diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-22 13:28:53 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-22 13:28:53 +0200 |
commit | 3a26708203cbdc5ca8dd0e6b00435f204b9fd2e8 (patch) | |
tree | 317863d434ede4f62c813ab3bcda7d08babcc6a6 /apps/commander/commander.c | |
parent | 3932bad137dcb908c4b4b563a996a7205a844b3f (diff) | |
download | px4-firmware-3a26708203cbdc5ca8dd0e6b00435f204b9fd2e8.tar.gz px4-firmware-3a26708203cbdc5ca8dd0e6b00435f204b9fd2e8.tar.bz2 px4-firmware-3a26708203cbdc5ca8dd0e6b00435f204b9fd2e8.zip |
Resolved wrong TX drop display
Diffstat (limited to 'apps/commander/commander.c')
-rw-r--r-- | apps/commander/commander.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/commander/commander.c b/apps/commander/commander.c index ef508e759..50d0a7f13 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -728,6 +728,9 @@ void handle_command(int status_pub, struct vehicle_status_s *current_vehicle_sta /* result of the command */ uint8_t result = MAV_RESULT_UNSUPPORTED; + /* announce command handling */ + ioctl(buzzer, TONE_SET_ALARM, 1); + /* supported command handling start */ @@ -907,6 +910,9 @@ void handle_command(int status_pub, struct vehicle_status_s *current_vehicle_sta default: { mavlink_log_critical(mavlink_fd, "[commander] refusing unsupported command"); result = MAV_RESULT_UNSUPPORTED; + usleep(200000); + /* announce command rejection */ + ioctl(buzzer, TONE_SET_ALARM, 4); } break; } |