GCS_MAVLink: added GIMBAL msgs to routing

This commit is contained in:
Andrew Tridgell 2015-01-29 20:00:41 +11:00
parent 01325b701a
commit a1536d575b

View File

@ -420,6 +420,14 @@ void MAVLink_routing::get_targets(const mavlink_message_t* msg, int16_t &sysid,
sysid = mavlink_msg_v2_extension_get_target_system(msg);
compid = mavlink_msg_v2_extension_get_target_component(msg);
break;
case MAVLINK_MSG_ID_GIMBAL_REPORT:
sysid = mavlink_msg_gimbal_report_get_target_system(msg);
compid = mavlink_msg_gimbal_report_get_target_component(msg);
break;
case MAVLINK_MSG_ID_GIMBAL_CONTROL:
sysid = mavlink_msg_gimbal_control_get_target_system(msg);
compid = mavlink_msg_gimbal_control_get_target_component(msg);
break;
}
}