From ac3b5a44005d6686c12ce05fd36dc4b9315949f4 Mon Sep 17 00:00:00 2001 From: Jonathan Challinger Date: Mon, 4 Jan 2016 21:21:31 -0800 Subject: [PATCH] GCS_MAVLink: add messages to routing switch statement --- libraries/GCS_MAVLink/MAVLink_routing.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libraries/GCS_MAVLink/MAVLink_routing.cpp b/libraries/GCS_MAVLink/MAVLink_routing.cpp index f8c7b28959..720748f22b 100644 --- a/libraries/GCS_MAVLink/MAVLink_routing.cpp +++ b/libraries/GCS_MAVLink/MAVLink_routing.cpp @@ -493,6 +493,18 @@ void MAVLink_routing::get_targets(const mavlink_message_t* msg, int16_t &sysid, sysid = mavlink_msg_gimbal_control_get_target_system(msg); compid = mavlink_msg_gimbal_control_get_target_component(msg); break; + case MAVLINK_MSG_ID_GIMBAL_TORQUE_CMD_REPORT: + sysid = mavlink_msg_gimbal_torque_cmd_report_get_target_system(msg); + compid = mavlink_msg_gimbal_torque_cmd_report_get_target_component(msg); + break; + case MAVLINK_MSG_ID_REMOTE_LOG_DATA_BLOCK: + sysid = mavlink_msg_remote_log_data_block_get_target_system(msg); + compid = mavlink_msg_remote_log_data_block_get_target_component(msg); + break; + case MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS: + sysid = mavlink_msg_remote_log_block_status_get_target_system(msg); + compid = mavlink_msg_remote_log_block_status_get_target_component(msg); + break; } }