mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 06:24:07 +08:00
commander: put unsupported warning back in place
This commit is contained in:
parent
f17c0b1335
commit
a4a12dab33
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user