GCS_Mavlink: Add routing for GoPro heartbeat

This commit is contained in:
Matt Lawrence 2020-02-09 00:29:41 -05:00 committed by Randy Mackay
parent 5fe19911bf
commit 0bef5bd9dd

View File

@ -3076,12 +3076,13 @@ void GCS_MAVLINK::handle_common_message(const mavlink_message_t &msg)
break;
case MAVLINK_MSG_ID_DIGICAM_CONTROL:
case MAVLINK_MSG_ID_GOPRO_HEARTBEAT: // heartbeat from a GoPro in Solo gimbal
{
AP_Camera *camera = AP::camera();
if (camera == nullptr) {
return;
}
camera->control_msg(msg);
camera->handle_message(chan, msg);
}
break;