Skip to content

Commit

Permalink
GCS_MAVLink: HACK: interpret all GIMBAL_REPORT as intended for APM
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Apr 10, 2015
1 parent cabca8d commit 10a102e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/GCS_MAVLink/MAVLink_routing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ void MAVLink_routing::get_targets(const mavlink_message_t* msg, int16_t &sysid,
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);
sysid = mavlink_system.sysid;//mavlink_msg_gimbal_report_get_target_system(msg);
compid = mavlink_system.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);
Expand Down

0 comments on commit 10a102e

Please sign in to comment.