aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2014-04-03 21:13:03 +0200
committerJulian Oes <julian@oes.ch>2014-04-03 21:13:03 +0200
commited7b97c0203fd1a16768222cad6c6f49b0534bd2 (patch)
tree8bd6b0c415babaf436eb8aee635f009108838d88 /src/modules/commander
parent87af70b07a27f8eadd672582563e19be0cafe951 (diff)
downloadpx4-firmware-ed7b97c0203fd1a16768222cad6c6f49b0534bd2.tar.gz
px4-firmware-ed7b97c0203fd1a16768222cad6c6f49b0534bd2.tar.bz2
px4-firmware-ed7b97c0203fd1a16768222cad6c6f49b0534bd2.zip
commander: don't beep if message is not understood
Diffstat (limited to 'src/modules/commander')
-rw-r--r--src/modules/commander/commander.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index cf7ba757e..58995fcec 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -592,11 +592,11 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
answer_command(*cmd, VEHICLE_CMD_RESULT_UNSUPPORTED);
break;
}
-
- if (result != VEHICLE_CMD_RESULT_UNSUPPORTED) {
- /* already warned about unsupported commands in "default" case */
- answer_command(*cmd, result);
- }
+ /* silently ignore unsupported commands, maybe they are passed on over mavlink */
+// if (result != VEHICLE_CMD_RESULT_UNSUPPORTED) {
+// /* already warned about unsupported commands in "default" case */
+// answer_command(*cmd, result);
+// }
/* send any requested ACKs */
if (cmd->confirmation > 0 && result != VEHICLE_CMD_RESULT_UNSUPPORTED) {