mirror of https://github.com/ArduPilot/ardupilot
Rover: removed use of mavlink_check_target()
This commit is contained in:
parent
e73f8b8e40
commit
41a5f79046
|
@ -789,7 +789,6 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
// decode
|
||||
mavlink_command_long_t packet;
|
||||
mavlink_msg_command_long_decode(msg, &packet);
|
||||
if (mavlink_check_target(packet.target_system, packet.target_component)) break;
|
||||
|
||||
uint8_t result = MAV_RESULT_UNSUPPORTED;
|
||||
|
||||
|
@ -1019,10 +1018,6 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
int16_t v[8];
|
||||
mavlink_msg_rc_channels_override_decode(msg, &packet);
|
||||
|
||||
// exit immediately if this command is not meant for this vehicle
|
||||
if (mavlink_check_target(packet.target_system,packet.target_component))
|
||||
break;
|
||||
|
||||
v[0] = packet.chan1_raw;
|
||||
v[1] = packet.chan2_raw;
|
||||
v[2] = packet.chan3_raw;
|
||||
|
|
Loading…
Reference in New Issue