diff --git a/libraries/AP_Camera/AP_Camera_Mount.cpp b/libraries/AP_Camera/AP_Camera_Mount.cpp index e81327fb58..775ac53146 100644 --- a/libraries/AP_Camera/AP_Camera_Mount.cpp +++ b/libraries/AP_Camera/AP_Camera_Mount.cpp @@ -88,4 +88,13 @@ void AP_Camera_Mount::send_camera_settings(mavlink_channel_t chan) const } } +// send camera capture status message to GCS +void AP_Camera_Mount::send_camera_capture_status(mavlink_channel_t chan) const +{ + AP_Mount* mount = AP::mount(); + if (mount != nullptr) { + return mount->send_camera_capture_status(get_mount_instance(), chan); + } +} + #endif // AP_CAMERA_MOUNT_ENABLED diff --git a/libraries/AP_Camera/AP_Camera_Mount.h b/libraries/AP_Camera/AP_Camera_Mount.h index fa53057295..c453b96cdd 100644 --- a/libraries/AP_Camera/AP_Camera_Mount.h +++ b/libraries/AP_Camera/AP_Camera_Mount.h @@ -59,6 +59,9 @@ public: // send camera settings message to GCS void send_camera_settings(mavlink_channel_t chan) const override; + + // send camera capture status message to GCS + void send_camera_capture_status(mavlink_channel_t chan) const override; }; #endif // AP_CAMERA_MOUNT_ENABLED