mavlink_receiver: revert blanket command rejection by frame enum (#26626)

This commit is contained in:
Matthias Grob 2026-03-03 22:09:47 +01:00 committed by GitHub
parent defab5114d
commit 18a07d2d7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;