Skip to content

Commit

Permalink
AP_Camera: Add Camera_Mount handler for CAMERA_CAPTURE_STATUS request
Browse files Browse the repository at this point in the history
  • Loading branch information
nexton-winjeel committed Nov 8, 2023
1 parent 8faecaf commit 2e66347
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/AP_Camera/AP_Camera_Mount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions libraries/AP_Camera/AP_Camera_Mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class AP_Camera_Mount : public AP_Camera_Backend

// 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

0 comments on commit 2e66347

Please sign in to comment.