GCS_MAVLink: pass camera-information messages to AP_Camera

This commit is contained in:
Randy Mackay 2023-03-06 14:38:45 +09:00
parent ce1e0c3782
commit ae4d1ae0af

View File

@ -3812,6 +3812,7 @@ void GCS_MAVLINK::handle_common_message(const mavlink_message_t &msg)
#if AP_CAMERA_ENABLED
case MAVLINK_MSG_ID_DIGICAM_CONTROL:
case MAVLINK_MSG_ID_GOPRO_HEARTBEAT: // heartbeat from a GoPro in Solo gimbal
case MAVLINK_MSG_ID_CAMERA_INFORMATION:
{
AP_Camera *camera = AP::camera();
if (camera == nullptr) {