mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 13:11:36 +08:00
MAVLink command feedback: Do only report command status and not additional string
This commit is contained in:
@@ -3356,23 +3356,18 @@ void answer_command(struct vehicle_command_s &cmd, unsigned result,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case vehicle_command_s::VEHICLE_CMD_RESULT_DENIED:
|
case vehicle_command_s::VEHICLE_CMD_RESULT_DENIED:
|
||||||
mavlink_log_critical(&mavlink_log_pub, "command denied: %u", cmd.command);
|
|
||||||
tune_negative(true);
|
tune_negative(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case vehicle_command_s::VEHICLE_CMD_RESULT_FAILED:
|
case vehicle_command_s::VEHICLE_CMD_RESULT_FAILED:
|
||||||
mavlink_log_critical(&mavlink_log_pub, "command failed: %u", cmd.command);
|
|
||||||
tune_negative(true);
|
tune_negative(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case vehicle_command_s::VEHICLE_CMD_RESULT_TEMPORARILY_REJECTED:
|
case vehicle_command_s::VEHICLE_CMD_RESULT_TEMPORARILY_REJECTED:
|
||||||
/* this needs additional hints to the user - so let other messages pass and be spoken */
|
|
||||||
mavlink_log_critical(&mavlink_log_pub, "command temporarily rejected: %u", cmd.command);
|
|
||||||
tune_negative(true);
|
tune_negative(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case vehicle_command_s::VEHICLE_CMD_RESULT_UNSUPPORTED:
|
case vehicle_command_s::VEHICLE_CMD_RESULT_UNSUPPORTED:
|
||||||
mavlink_log_critical(&mavlink_log_pub, "command unsupported: %u", cmd.command);
|
|
||||||
tune_negative(true);
|
tune_negative(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user