Camera Protocol v1: Camera Triggering

The MAVLink Camera Protocol v1 defines a set of commands for configuring a camera to capture images at a particular time or distance interval, and to start/stop/pause/reset triggering. It also includes commands to configure/control a video camera.

This API has been superseded by Camera Protocol v2, which provides a more natural set of commands for using a camera, along with a comprehensive API for querying camera capabilities. This API is used by some older MAVLink cameras, and can be supported in parallel with the new protocol.

The protocol can be used to control cameras attached to autopilot outputs or standalone MAVLink cameras that support this protocol

A standalone MAVLink camera that needs to interact with a ground station must be able to send and recieve MAVLink messages from the ground station. If the GCS and Camera are connected to the flight stack on different MAVLink channels then the flight stack will need to forward messages between them.

If the MAVLink camera does not emit the CAMERA_TRIGGER message on image capture then the flight stack may need to do this on its behalf.

When processing a mission, the flight stack should re-emit camera command items using the command protocol (in order to trigger a connected MAVLink camera). The commands should be addressed to the same system ID as the autopilot, and with MAV_COMP_ID_ALL as the component ID. This ensures that any and all MAVLink cameras associated with the system will be triggered.

Note that setting the component ID to MAV_COMP_ID_CAMERA is not recommended, as a camera does not have to use this component ID.

Flight Controller Connected Cameras

The commands can be used to control a camera attached to autopilot outputs.

A GCS should address the commands to the autopilot component, which will need to trigger the connected camera appropriately. The flight stack will also need to trigger the camera when the commands are found in a mission.

Note that a flight stack implementation can generally trigger attached cameras and emit a MAVLink command in missions. If a connected camera and MAVLink camera are connected, both with be triggered.

Message/Command Summary

Image Capture

CommandDescription
MAV_CMD_DO_SET_CAM_TRIGG_INTERVALSet time interval between captures.
MAV_CMD_DO_SET_CAM_TRIGG_DISTSet distance between image captures (or trigger once, immediately).
MAV_CMD_DO_TRIGGER_CONTROLStart/stop capturing images (using distance or time, as defined using above messages).
MAV_CMD_OBLIQUE_SURVEYStart/stop/configure an camera mount pivoting oblique survey.
MessageDescription
CAMERA_TRIGGERCamera-IMU triggering and synchronisation message. Should be emitted when an image is captured. Depending on the camera integration this might be when the camera is commanded to capture an image and or when the camera provides feedback that it has been triggered.

Video Capture

CommandDescription
MAV_CMD_DO_DIGICAM_CONFIGUREConfigure digital camera features such as ISO, aperture, etc. Replaced by Camera Definition Files in Camera Protocol v2.
MAV_CMD_DO_DIGICAM_CONTROLControl digital camera features such as zoom, focus, shooting. Replaced by basic camera commands and Camera Definition Files in Camera Protocol v2.

results matching ""

    No results matching ""