Skip to content

Commit

Permalink
GCS_MAVLink: fix copter/mount yaw control for MOUNT_CONTROL messages
Browse files Browse the repository at this point in the history
This is required for the new version of cable-cam (which uses MOUNT_CONTROL instead of ROI).
  • Loading branch information
arthurbenemann authored and jschall committed May 23, 2015
1 parent 2aebb88 commit 8d3d103
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ArduCopter/GCS_Mavlink.pde
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)

case MAVLINK_MSG_ID_MOUNT_CONTROL:
camera_mount.control_msg(msg);
// check if mount type requires us to rotate the quad
if(!camera_mount.has_pan_control()) {
set_auto_yaw_look_at_heading(mavlink_msg_mount_control_get_input_c(msg)/100.0f, 0.0f, 0, 0);
}
break;
#endif // MOUNT == ENABLED

Expand Down

0 comments on commit 8d3d103

Please sign in to comment.