mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavlink_receiver: revert blanket command rejection by frame enum (#26626)
This commit is contained in:
parent
defab5114d
commit
18a07d2d7c
@ -521,13 +521,6 @@ MavlinkReceiver::handle_message_command_int(mavlink_message_t *msg)
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd_mavlink.frame != MAV_FRAME_GLOBAL_INT) {
|
||||
// PX4 only supports global frame.
|
||||
PX4_ERR("frame invalid for command %" PRIu16, cmd_mavlink.command);
|
||||
acknowledge(msg->sysid, msg->compid, cmd_mavlink.command, vehicle_command_ack_s::VEHICLE_CMD_RESULT_UNSUPPORTED_MAV_FRAME);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Copy the content of mavlink_command_int_t cmd_mavlink into command_t cmd */
|
||||
vcmd.param1 = cmd_mavlink.param1;
|
||||
vcmd.param2 = cmd_mavlink.param2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user