aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2014-04-07 21:42:19 +0200
committerJulian Oes <julian@oes.ch>2014-04-18 22:05:45 +0200
commit3dd64086e49192aabc020b50f48d68233bad392f (patch)
treea4774c2c4d898dc886454e2fbd212b0a7ce877db /src/modules/commander
parenta66dcbf7e92a1028765f6c5c9a545945ce1a5dc3 (diff)
downloadpx4-firmware-3dd64086e49192aabc020b50f48d68233bad392f.tar.gz
px4-firmware-3dd64086e49192aabc020b50f48d68233bad392f.tar.bz2
px4-firmware-3dd64086e49192aabc020b50f48d68233bad392f.zip
commander: put unsupported warning back in place
Diffstat (limited to 'src/modules/commander')
-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 27d5e4260..662b98b35 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -587,15 +587,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) {