diff --git a/docs/assets/camera/airpixel_tag_e/qgc_camera_settings.png b/docs/assets/camera/airpixel_tag_e/qgc_camera_settings.png new file mode 100644 index 00000000000..9ce53aad4bd Binary files /dev/null and b/docs/assets/camera/airpixel_tag_e/qgc_camera_settings.png differ diff --git a/docs/assets/camera/airpixel_tag_e/tag_e_with_coin.png b/docs/assets/camera/airpixel_tag_e/tag_e_with_coin.png new file mode 100644 index 00000000000..79c7de4a852 Binary files /dev/null and b/docs/assets/camera/airpixel_tag_e/tag_e_with_coin.png differ diff --git a/docs/en/SUMMARY.md b/docs/en/SUMMARY.md index d07508984d6..28a71e8c7af 100644 --- a/docs/en/SUMMARY.md +++ b/docs/en/SUMMARY.md @@ -387,6 +387,7 @@ - [MAVLink Camera (v2 protocol)](camera/mavlink_v2_camera.md) - [MAVLink Camera (v1 protocol)](camera/mavlink_v1_camera.md) - [Camera Connected to FC Outputs](camera/fc_connected_camera.md) + - [AirPixel TAG-E (Sony ILX-LR1)](camera/airpixel_tag_e.md) - [Gimbal \(Mount\) Configuration](advanced/gimbal_control.md) - [Grippers](peripherals/gripper.md) - [Servo Gripper](peripherals/gripper_servo.md) diff --git a/docs/en/camera/airpixel_tag_e.md b/docs/en/camera/airpixel_tag_e.md new file mode 100644 index 00000000000..b47264c13a9 --- /dev/null +++ b/docs/en/camera/airpixel_tag_e.md @@ -0,0 +1,68 @@ +# AirPixel TAG-E (Sony ILX-LR1 Camera Control and Geotagging) + +The [AirPixel TAG-E](https://airpixel.cz/) is a camera controller and EXIF/XMP geotagger for the Sony ILX-LR1. +It connects to the camera with a single USB-C cable and to PX4 over MAVLink, and acts as a [MAVLink camera](../camera/mavlink_v2_camera.md) using [Camera Protocol v2](https://mavlink.io/en/services/camera.html). + +_QGroundControl_ detects the camera automatically and shows its shutter, video, exposure and configuration controls. +TAG-E writes position, altitude and camera attitude into the EXIF and XMP of every photo on the camera's SD card during the flight, so no log-based geotagging is needed afterwards. + +![AirPixel TAG-E](../../assets/camera/airpixel_tag_e/tag_e_with_coin.png) + +## Key Features + +- Full MAVLink Camera Protocol v2 control of the Sony ILX-LR1 (ISO, aperture, shutter speed, exposure compensation, exposure mode, AF mode, photo/video). +- Automatic EXIF and XMP geotagging with position, altitude and camera roll/pitch/yaw, at the camera's full trigger rate. +- Clock synchronisation with the flight controller using the MAVLink [TIMESYNC](https://mavlink.io/en/services/timesync.html) protocol. +- Lever-arm correction from antenna-to-camera offsets, optional rangefinder, GPS/IMU accuracy and custom label tags, PPK output, and video geotagging via subtitles. +- Camera clock set automatically from GPS time. + +## Wiring + +Connect TAG-E's IO-B connector to an unused serial port on the flight controller, such as `TELEM2`, and TAG-E's USB-C port to the camera. +TAG-E needs a 5V supply able to deliver at least 2A. + +Pinouts are in the [TAG-E pinout manual](https://airpixel.cz/docs/tag-e-pinouts/). + +## PX4 Configuration + +TAG-E uses the component ID `MAV_COMP_ID_CAMERA` (100). +Configure an unused MAVLink instance for the port it is connected to. +The table below shows the settings for `TELEM2` using the `MAV_1_*` parameters (if using another port or instance, set the corresponding unused `MAV_n_*` parameters and the baud rate parameter for that port): + +| Parameter | Value | +| ------------------------------------------------------------------------ | --------- | +| [MAV_1_CONFIG](../advanced_config/parameter_reference.md#MAV_1_CONFIG) | `TELEM 2` | +| [SER_TEL2_BAUD](../advanced_config/parameter_reference.md#SER_TEL2_BAUD) | `921600` | +| [MAV_1_MODE](../advanced_config/parameter_reference.md#MAV_1_MODE) | `Onboard` | +| [MAV_1_RATE](../advanced_config/parameter_reference.md#MAV_1_RATE) | `0` | +| [MAV_1_FORWARD](../advanced_config/parameter_reference.md#MAV_1_FORWARD) | `Enabled` | + +Reboot the flight controller. +When the camera is online, the TAG-E LED turns green and the camera panel appears in _QGroundControl_. + +TAG-E requests the messages it needs using [MAV_CMD_SET_MESSAGE_INTERVAL](https://mavlink.io/en/messages/common.html#MAV_CMD_SET_MESSAGE_INTERVAL): `SYSTEM_TIME` at 1Hz, `ATTITUDE` at 10Hz, and `GPS_RAW_INT` and `GLOBAL_POSITION_INT` at a rate that depends on its configuration. +It also uses the `TIMESYNC` protocol to synchronise its clock with the flight controller. + +:::tip +TAG-E units with firmware older than `0_193` use 230400 baud. +See the manufacturer's [PX4 connection manual](https://airpixel.cz/docs/tag-e-mavlink-connection-px4/) for changing the baud rate, and the [GPS delay calculation](https://airpixel.cz/docs/gps-delay-calculation/) for the best geotag accuracy. +::: + +## Camera Control in QGroundControl + +When the camera is online, _QGroundControl_ shows the camera panel on the right of the Fly view: the shutter button, a photo/video switch, and the photo count or recording time. +The gear icon under the shutter button opens the camera settings: exposure mode, aperture, shutter speed, ISO, focus mode and image resolution, plus TAG-E functions such as remote SD card format, a custom EXIF label, landing detection and photo mode. + +![QGroundControl camera settings for the Sony ILX-LR1 with TAG-E](../../assets/camera/airpixel_tag_e/qgc_camera_settings.png) + +## Triggering + +PX4 re-emits the image and video capture commands in missions (`MAV_CMD_IMAGE_START_CAPTURE`, `MAV_CMD_IMAGE_STOP_CAPTURE`, `MAV_CMD_VIDEO_START_CAPTURE`, `MAV_CMD_VIDEO_STOP_CAPTURE`) to `MAV_COMP_ID_CAMERA`, so they reach TAG-E directly. +The camera can also be triggered from the _QGroundControl_ camera panel. + +## Further Information + +- [TAG-E product page](https://airpixel.cz/) +- [PX4 camera control guide for the ILX-LR1](https://airpixel.cz/nw/guides/px4-ilx-lr1-camera-control/) (AirPixel) +- [TAG-E documentation](https://airpixel.cz/docs-tag-e/) +- [MAVLink Cameras (Camera Protocol v2)](../camera/mavlink_v2_camera.md) diff --git a/docs/en/camera/mavlink_v2_camera.md b/docs/en/camera/mavlink_v2_camera.md index 8fe24a69a2d..054cd77c660 100644 --- a/docs/en/camera/mavlink_v2_camera.md +++ b/docs/en/camera/mavlink_v2_camera.md @@ -59,17 +59,18 @@ PX4 allows the following subset of [Camera Protocol v2](https://mavlink.io/en/se - [MAV_CMD_SET_CAMERA_MODE](https://mavlink.io/en/messages/common.html#MAV_CMD_SET_CAMERA_MODE) - [MAV_CMD_SET_CAMERA_ZOOM](https://mavlink.io/en/messages/common.html#MAV_CMD_SET_CAMERA_ZOOM) - [MAV_CMD_SET_CAMERA_FOCUS](https://mavlink.io/en/messages/common.html#MAV_CMD_SET_CAMERA_FOCUS) +- [MAV_CMD_SET_CAMERA_SOURCE](https://mavlink.io/en/messages/common.html#MAV_CMD_SET_CAMERA_SOURCE) PX4 re-emits the camera commands found in missions as MAVLink commands. The system id of the emitted commands is the same as the ID of the autopilot. -The component id of the commands can vary. -The first four commands are addressed to [MAV_COMP_ID_CAMERA (100)](https://mavlink.io/en/messages/common.html#MAV_COMP_ID_CAMERA) (if a camera has this component ID, it will execute the indicated command). -The camera mode, zoom, and focus, commands are sent to a component with id of [MAV_COMP_ID_ALL](https://mavlink.io/en/messages/common.html#MAV_COMP_ID_ALL). +The component ID of the commands can vary. -:::info -PX4 currently ignores the target camera `id` in [MAV_CMD_IMAGE_START_CAPTURE](https://mavlink.io/en/messages/common.html#MAV_CMD_IMAGE_START_CAPTURE) and other camera messages. -See [PX4-Autopilot#23083](https://github.com/PX4/PX4-Autopilot/issues/23083). -::: +PX4 v1.16 respects the target camera `id` param in missions for the following commands (falling back to a component ID of `MAV_COMP_ID_CAMERA` (100) if it is not set): `MAV_CMD_IMAGE_START_CAPTURE`, `MAV_CMD_IMAGE_STOP_CAPTURE`, `MAV_CMD_SET_CAMERA_MODE`, `MAV_CMD_SET_CAMERA_SOURCE`. + +The value is ignored for other commands: + +- `MAV_CMD_VIDEO_START_CAPTURE` and `MAV_CMD_VIDEO_STOP_CAPTURE`: sent unconditionally to the component with ID of `MAV_COMP_ID_CAMERA` (the camera ID param is ignored) +- `MAV_CMD_SET_CAMERA_ZOOM` and `MAV_CMD_SET_CAMERA_FOCUS`: sent unconditionally to [MAV_COMP_ID_ALL](https://mavlink.io/en/messages/common.html#MAV_COMP_ID_ALL) (the camera ID param is ignored)