aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/commander.cpp
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2014-04-07 21:42:19 +0200
committerJulian Oes <julian@oes.ch>2014-04-07 21:42:19 +0200
commita4a12dab337f132bfe51db2ad482273ecfdf0ce6 (patch)
tree963aa3c64c576cf95429299c7a8ad50a05ef7a53 /src/modules/commander/commander.cpp
parentf17c0b133559dc440a7789caa45767b95de84e7b (diff)
downloadpx4-firmware-a4a12dab337f132bfe51db2ad482273ecfdf0ce6.tar.gz
px4-firmware-a4a12dab337f132bfe51db2ad482273ecfdf0ce6.tar.bz2
px4-firmware-a4a12dab337f132bfe51db2ad482273ecfdf0ce6.zip
commander: put unsupported warning back in place
Diffstat (limited to 'src/modules/commander/commander.cpp')
-rw-r--r--src/modules/commander/commander.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index 58995fcec..06f7ae6cc 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -588,15 +588,15 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
break;
default:
- /* warn about unsupported commands */
+ /* Warn about unsupported commands, this makes sense because only commands
+ * to this component ID (or all) are passed by mavlink. */
answer_command(*cmd, VEHICLE_CMD_RESULT_UNSUPPORTED);
break;
}
- /* 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);
-// }
+ 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) {