> For the complete documentation index, see [llms.txt](https://docs.gremsy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gremsy.com/payloads/general/gremsy-payload-sdk/mavlink-command-list-v2.1.0.md).

# Mavlink Command List v2.1.0

09 Nov2026

## Payload mavlink target

| Encode a command\_long struct | Values | Description                      |
| ----------------------------- | ------ | -------------------------------- |
| target\_system                | 1      |                                  |
| target\_component             | 191    | MAV\_COMP\_ID\_ONBOARD\_COMPUTER |
| chan                          | 0      | MAVLink channel                  |

## Command mavlink list

### Set camera running mode

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                            | Description                                |
| ----------------- | --------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                 | System ID                                  |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_SET\_CAMERA\_MODE (530) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                 |                                            |
| param2            | float     | 0 / 1                             | Photo mode / Video mode                    |

### Set camera record source

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                      |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                        |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting       |
| param\_id         | char\[16]  | "C\_V\_REC"                       |                                                  |
| param\_value      | char\[128] | "0" / "1" / "2" / "5"             | Record both / Record EO / Record IR / Record OSD |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                            |

### Set camera view source

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_SOURCE"                       |                                            |
| param\_value      | char\[128] | "0" / "1" / "2" / "3" / "4"       | EO/IR / Only EO / Only IR / IR/EO / Sync   |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set OSD mode

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "OSD\_MODE"                       |                                            |
| param\_value      | char\[128] | "0" / "1" / "2" / "3"             | Off / Debug / Status / Custom              |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Setting target

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "SETTING\_TARGET"                 |                                            |
| param\_value      | char\[128] | "0" / "1" / "2"                   | EO / IR / GIMBAL                           |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set EO camera zoom mode

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_ZM\_MODE"                  |                                            |
| param\_value      | char\[128] | "0" / "2"                         | Combine / Super Resolution                 |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set EO camera zoom - Super Resolution

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                                                                                                                     |
| ----------------- | ---------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| target\_system    | uint8\_t   | 1                                 | System ID                                                                                                                                       |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting                                                                                                      |
| param\_id         | char\[16]  | "C\_V\_ZM\_SR\_LV"                |                                                                                                                                                 |
| param\_value      | char\[128] | "0"–"15"                          | "0"=1X, "1"=2X, "2"=4X, "3"=6X, "4"=8X, "5"=10X, "6"=12X, "7"=14X, "8"=16X, "9"=18X, "10"=20X, "11"=22X, "12"=24X, "13"=26X, "14"=28X, "15"=30X |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                                                                                                                           |

### Set EO camera index zoom - Combine

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                                  | Description                                |
| ----------------- | ---------- | --------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                       | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)            | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_ZM\_CB\_LV"                      |                                            |
| param\_value      | char\[128] | "0" / "1" / "2" / "3" / "4" / "5" / "6" | 1X / 10X / 20X / 40X / 80X / 120X / 240X   |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32)       | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera zoom target - Combine

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description               |
| ----------------- | --------- | ------------------------- | ------------------------- |
| target\_system    | uint8\_t  | 1                         | System ID                 |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013) | MAV\_CMD                  |
| confirmation      | uint8\_t  | 1                         |                           |
| param1            | float     | 2                         |                           |
| param2            | float     | 0                         |                           |
| param3            | float     | "4"                       | Zoom position             |
| param4            | float     | 1...300                   | 1x to 300x                |

### Set EO camera zoom speed

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                     |
| ----------------- | ---------- | --------------------------------- | ----------------------------------------------- |
| target\_system    | uint8\_t   | 1                                 | System ID                                       |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting      |
| param\_id         | char\[16]  | "C\_V\_ZOOM\_SPEED"               |                                                 |
| param\_value      | char\[128] | "0"                               | Zoom speed value can be set from 0 to 7, step 1 |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                           |

### Set camera zoom type

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                                                                                          | Description                                                                                                     |
| ----------------- | --------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| target\_system    | uint8\_t  | 1                                                                                                               | System ID                                                                                                       |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)                                                                                    | MAVLINK Camera Component ID on Web setting                                                                      |
| command           | uint16\_t | MAV\_CMD\_SET\_CAMERA\_ZOOM (531)                                                                               | MAV\_CMD                                                                                                        |
| confirmation      | uint8\_t  | 1                                                                                                               |                                                                                                                 |
| param1            | float     | 0 / 1 / 2                                                                                                       | ZOOM\_TYPE\_STEP / ZOOM\_TYPE\_CONTINUOUS / ZOOM\_TYPE\_RANGE                                                   |
| param2            | float     | -1 for wide, 1 for tele / -1 for wide, 1 for tele, 0 to stop zooming / A percentage value between 0.0 and 100.0 | Zoom one step increment / Continuous zoom up/down until stopped / Zoom value as proportion of full camera range |

### Set IR zoom

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                                        | Description                                |
| ----------------- | ---------- | --------------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                             | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)                  | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_T\_ZOOM"                                  |                                            |
| param\_value      | char\[128] | "0" / "1" / "2" / "3" / "4" / "5" / "6" / "7" | 1X / 2X / 3X / 4X / 5X / 6X / 7X / 8X      |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32)             | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera EO freeze

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_FREEZE"                    |                                            |
| param\_value      | char\[128] | "2" / "3"                         | On / Off                                   |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera EO high sensitivity

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_HS"                        |                                            |
| param\_value      | char\[128] | "2" / "3"                         | On / Off                                   |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera focus type

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                    | Description                                 |
| ----------------- | --------- | ----------------------------------------- | ------------------------------------------- |
| target\_system    | uint8\_t  | 1                                         | System ID                                   |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)              | MAVLINK Camera Component ID on Web setting  |
| command           | uint16\_t | MAV\_CMD\_SET\_CAMERA\_FOCUS (532)        | MAV\_CMD                                    |
| confirmation      | uint8\_t  | 1                                         |                                             |
| param1            | float     | 1 / 4                                     | FOCUS\_TYPE\_CONTINUOUS / FOCUS\_TYPE\_AUTO |
| param2            | float     | -1: focusing in, 1: focusing out, 0: stop | Continuous focus up/down until stopped      |

### Set camera EO focus mode

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_FM"                        |                                            |
| param\_value      | char\[128] | "0" / "1" / "2"                   | Manual / Auto focus / Auto focus onepush   |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera EO focus manual value

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                                  |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                                    |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting                   |
| param\_id         | char\[16]  | "C\_V\_FV"                        |                                                              |
| param\_value      | char\[128] | "0"                               | Manual Focus manual value can be set from 0 to 53248, step 1 |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                                        |

### Set camera EO focus speed

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 | System ID                                  |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_F\_SPD"                    |                                            |
| param\_value      | char\[128] | "0"                               | Focus speed can be set from 0 to 7, step 1 |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera IR palette

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                                                                                                                                                                                                                                                               |
| ----------------- | ---------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| target\_system    | uint8\_t   | 1                                 | System ID                                                                                                                                                                                                                                                                                 |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting                                                                                                                                                                                                                                                |
| param\_id         | char\[16]  | "C\_T\_PALETTE"                   |                                                                                                                                                                                                                                                                                           |
| param\_value      | char\[128] | "0"–"9"                           | F1: WhiteHot ; G1: WhiteHot / F1: BlackHot ; G1: Fulgurite / F1: Rainbow ; G1: IronRed / F1: RainbowHC ; G1: HotIron / F1: Ironbow ; G1: Medical / F1: Lava ; G1: Arctic / F1: Arctic ; G1: Rainbow1 / F1: Globow ; G1: Rainbow2 / F1: Gradedfire ; G1: Tint / F1: Hottest ; G1: BlackHot |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                                                                                                                                                                                                                                                                     |

### Set camera SpotAE display

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description               |
| ----------------- | --------- | ------------------------- | ------------------------- |
| target\_system    | uint8\_t  | 1                         | System ID                 |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013) | MAV\_CMD                  |
| confirmation      | uint8\_t  | 1                         |                           |
| param1            | float     | 4                         |                           |
| param2            | float     | 5                         |                           |
| param3            | float     | 0                         |                           |
| param4            | float     | "0" / "1"                 | Off / On                  |
| param5            | float     | 0                         |                           |
| param6            | float     | 0                         |                           |
| param7            | float     | 0                         |                           |

### Set camera SpotAE mode

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description               |
| ----------------- | --------- | ------------------------- | ------------------------- |
| target\_system    | uint8\_t  | 1                         | System ID                 |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013) | MAV\_CMD                  |
| confirmation      | uint8\_t  | 1                         |                           |
| param1            | float     | 4                         |                           |
| param2            | float     | 5                         |                           |
| param3            | float     | 1                         |                           |
| param4            | float     | "2" / "3"                 | On / Off                  |
| param5            | float     | 0                         |                           |
| param6            | float     | 0                         |                           |
| param7            | float     | 0                         |                           |

### Set camera SpotAE position

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description               |
| ----------------- | --------- | ------------------------- | ------------------------- |
| target\_system    | uint8\_t  | 1                         | System ID                 |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013) | MAV\_CMD                  |
| confirmation      | uint8\_t  | 1                         |                           |
| param1            | float     | 4                         |                           |
| param2            | float     | 5                         |                           |
| param3            | float     | 2                         |                           |
| param4            | float     | "x"                       | pos\_x                    |
| param5            | float     | "y"                       | pos\_y                    |
| param6            | float     | "w"                       | width                     |
| param7            | float     | "h"                       | height                    |

### Set payload camera start capture image

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                 | Description                                                        |
| ----------------- | --------- | -------------------------------------- | ------------------------------------------------------------------ |
| target\_system    | uint8\_t  | 1                                      | System ID                                                          |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)           | MAVLINK Camera Component ID on Web setting                         |
| command           | uint16\_t | MAV\_CMD\_IMAGE\_START\_CAPTURE (2000) | MAV\_CMD                                                           |
| confirmation      | uint8\_t  | 1                                      |                                                                    |
| param2            | int       | Default, min: 0                        | Desired elapsed time between two consecutive pictures (in seconds) |

### Set payload camera stop capture image

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                | Description                                |
| ----------------- | --------- | ------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                     | System ID                                  |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)          | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_IMAGE\_STOP\_CAPTURE (2001) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                     |                                            |

### Set payload camera start record video

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                 | Description                                |
| ----------------- | --------- | -------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                      | System ID                                  |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)           | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_VIDEO\_START\_CAPTURE (2500) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                      |                                            |

### Set payload camera stop record video

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                | Description                                |
| ----------------- | --------- | ------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                     | System ID                                  |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)          | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_VIDEO\_STOP\_CAPTURE (2501) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                     |                                            |

### Set payload stream bitrate

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description               |
| ----------------- | --------- | ------------------------- | ------------------------- |
| target\_system    | uint8\_t  | 1                         |                           |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013) | MAV\_CMD                  |
| confirmation      | uint8\_t  | 1                         |                           |
| param1            | float     | 4                         |                           |
| param2            | float     | 2                         |                           |
| param3            | float     | "1" / "2"                 | EO / IR                   |
| param4            | float     | 0                         |                           |
| param5            | float     | 512000 … 16000000         | from 512 kbps to 16 Mbps  |

### Set payload stream resolution

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                      | Description                                                                                                             |
| ----------------- | --------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| target\_system    | uint8\_t  | 1                           |                                                                                                                         |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2)   | MAVLINK User Component ID                                                                                               |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013)   | MAV\_CMD                                                                                                                |
| confirmation      | uint8\_t  | 1                           |                                                                                                                         |
| param1            | float     | 4                           |                                                                                                                         |
| param2            | float     | 2                           |                                                                                                                         |
| param3            | float     | "1" / "2"                   | EO / IR                                                                                                                 |
| param4            | float     | 1                           |                                                                                                                         |
| param5            | float     | "0" / "1" / "2" / "3" / "4" | 1920x1080 (EO)/ 1208x1024 (IR) / 1208x720 (EO)/ 640x512 (IR) / 960x540 (EO)/ 480x384 (IR) / 320x256 (IR) / 160x128 (IR) |

### Set payload standby mode

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description               |
| ----------------- | --------- | ------------------------- | ------------------------- |
| target\_system    | uint8\_t  | 1                         |                           |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013) | MAV\_CMD                  |
| confirmation      | uint8\_t  | 1                         |                           |
| param1            | float     | 4                         |                           |
| param2            | float     | 3                         |                           |
| param3            | float     | 0                         |                           |
| param4            | float     | "0" / "1"                 | Off / On                  |

### Set payload restart apps

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                            | Description                                                                           |
| ----------------- | --------- | --------------------------------- | ------------------------------------------------------------------------------------- |
| target\_system    | uint8\_t  | 1                                 |                                                                                       |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2)         | MAVLINK User Component ID                                                             |
| command           | uint16\_t | MAV\_CMD\_USER\_4 (31013)         | MAV\_CMD                                                                              |
| confirmation      | uint8\_t  | 1                                 |                                                                                       |
| param1            | float     | 4                                 |                                                                                       |
| param2            | float     | 4                                 |                                                                                       |
| param3            | float     | "0" / "1" / "2" / "3" / "4" / "5" | Payload app / Streaming app / Tracking app / Web UI app / Gimbal app / Reboot payload |
| param4            | float     | 0                                 |                                                                                       |
| param5            | float     | 0                                 |                                                                                       |
| param6            | float     | 0                                 |                                                                                       |
| param7            | float     | 0                                 |                                                                                       |

### Set camera video flip

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 |                                            |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_FLIP"                      |                                            |
| param\_value      | char\[128] | "2" / "3"                         | On / Off                                   |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera video defog

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 |                                            |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_DEFOG"                     |                                            |
| param\_value      | char\[128] | "0" / "1"                         | Off / On                                   |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera video defog level

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 |                                            |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_DEFOG\_LV"                 |                                            |
| param\_value      | char\[128] | "0" / "1" / "2" / "3"             | Lowest / Low / Mid / High                  |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera video auto exposure

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 |                                            |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "C\_V\_AE"                        |                                            |
| param\_value      | char\[128] | "0" / "3" / "10" / "11" / "13"    | Auto / Manual / Shutter / Iris / Bright    |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set camera video shutter speed

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                                                              | Description                                                                   |
| ----------------- | ---------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| target\_system    | uint8\_t   | 1                                                                   |                                                                               |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)                                        | MAVLINK Camera Component ID on Web setting                                    |
| param\_id         | char\[16]  | "C\_V\_SP"                                                          |                                                                               |
| param\_value      | char\[128] | "13" / "14" / "17" / "20" / "21" / "25" / "26" / "27" / "28" / "30" | 1/10 / 1/20 / 1/50 / 1/100 / 1/125 / 1/500 / 1/725 / 1/1000 / 1/1500 / 1/2000 |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32)                                   | MAV\_PARAM\_EXT\_TYPE                                                         |

### Set camera video aperture value

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                    |
| ----------------- | ---------- | --------------------------------- | ---------------------------------------------- |
| target\_system    | uint8\_t   | 1                                 |                                                |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting     |
| param\_id         | char\[16]  | "C\_V\_IrP"                       |                                                |
| param\_value      | char\[128] | 0                                 | Aperture value can be set from 0 to 25, step 1 |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                          |

### Set camera video bright value

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                  |
| ----------------- | ---------- | --------------------------------- | -------------------------------------------- |
| target\_system    | uint8\_t   | 1                                 |                                              |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting   |
| param\_id         | char\[16]  | "C\_V\_BrP"                       |                                              |
| param\_value      | char\[128] | 0                                 | Bright value can be set from 0 to 41, step 1 |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                        |

### Set camera video white balance

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                       |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------------- |
| target\_system    | uint8\_t   | 1                                 |                                                   |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting        |
| param\_id         | char\[16]  | "C\_V\_WB"                        |                                                   |
| param\_value      | char\[128] | "0" / "1" / "2" / "3" / "4" / "5" | Auto / Indoor / Outdoor / One push / ATW / Manual |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                             |

### Set gimbal mode

{% hint style="warning" %}
Note: For Software Package v307 and later, PARAM\_EXT\_SET must not be used to configure the gimbal mode. Use MAVLINK\_MSG\_ID\_GIMBAL\_DEVICE\_SET\_ATTITUDE (Message ID: 284) instead.
{% endhint %}

Message: MAVLINK\_MSG\_ID\_GIMBAL\_DEVICE\_SET\_ATTITUDE (284)

| Field Name           | Type      | Values                                | Description                                                                           |
| -------------------- | --------- | ------------------------------------- | ------------------------------------------------------------------------------------- |
| target\_system       | uint8\_t  | 1                                     |                                                                                       |
| target\_component    | uint8\_t  | 154 (MAV\_COMP\_ID\_GIMBAL)           | Gimbal Components ID                                                                  |
| flags                | uint16\_t | 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 | Bitmask for configuring Gimbal modes. Multiple flags can be combined using bitwise OR |
| q                    | float\[4] | NaN                                   | Quaternion components, w, x, y, z                                                     |
| angular\_velocity\_x | float     | 0                                     | X component of angular velocity (Roll)                                                |
| angular\_velocity\_y | float     | 0                                     | Y component of angular velocity (Pitch)                                               |
| angular\_velocity\_z | float     | 0                                     | Z component of angular velocity (Yaw)                                                 |

### Set gimbal forward flag

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                 |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------- |
| target\_system    | uint8\_t   | 1                                 |                                             |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting  |
| param\_id         | char\[16]  | "GB\_FW\_FLAG"                    |                                             |
| param\_value      | char\[128] | "0" / "1" / "2"                   | Autopilot / Onboard computer / SBUS Convert |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                       |

### Set gimbal RC mode

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 |                                            |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "RC\_MODE"                        |                                            |
| param\_value      | char\[128] | "0" / "1"                         | Gremsy / Standard                          |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set gimbal move to angle

Message: GIMBAL\_DEVICE\_SET\_ATTITUDE (284)

| Field Name           | Type      | Values                                              | Description                             |
| -------------------- | --------- | --------------------------------------------------- | --------------------------------------- |
| target\_system       | uint8\_t  | 1                                                   |                                         |
| target\_component    | uint8\_t  | 154 (MAV\_COMP\_ID\_GIMBAL)                         | Gimbal Components ID                    |
| q                    | float\[4] | mavlink\_euler\_to\_quaternion(roll, pitch, yaw, q) | Quaternion components, w, x, y, z       |
| angular\_velocity\_x | float     | NaN                                                 | X component of angular velocity (Roll)  |
| angular\_velocity\_y | float     | NaN                                                 | Y component of angular velocity (Pitch) |
| angular\_velocity\_z | float     | NaN                                                 | Z component of angular velocity (Yaw)   |

### Set gimbal move by speed

Message: GIMBAL\_DEVICE\_SET\_ATTITUDE (284)

| Field Name           | Type      | Values                      | Description                             |
| -------------------- | --------- | --------------------------- | --------------------------------------- |
| target\_system       | uint8\_t  | 1                           |                                         |
| target\_component    | uint8\_t  | 154 (MAV\_COMP\_ID\_GIMBAL) | Gimbal Components ID                    |
| q                    | float\[4] | NaN                         | Quaternion components, w, x, y, z       |
| angular\_velocity\_x | float     | Speed roll                  | X component of angular velocity (Roll)  |
| angular\_velocity\_y | float     | Speed pitch                 | Y component of angular velocity (Pitch) |
| angular\_velocity\_z | float     | Speed yaw                   | Z component of angular velocity (Yaw)   |

### Do gimbal calib gyro

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                               | Description          |
| ----------------- | --------- | ---------------------------------------------------- | -------------------- |
| target\_system    | uint8\_t  | 1                                                    |                      |
| target\_component | uint8\_t  | 154 (MAV\_COMP\_ID\_GIMBAL)                          | Gimbal Components ID |
| command           | uint16\_t | MAV\_CMD\_GIMBAL\_REQUEST\_AXIS\_CALIBRATION (42503) | Command ID           |
| confirmation      | uint8\_t  | 1                                                    |                      |
| param7            | float     | 1                                                    |                      |

### Do gimbal auto tune

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                      | Description          |
| ----------------- | --------- | --------------------------- | -------------------- |
| target\_system    | uint8\_t  | 1                           |                      |
| target\_component | uint8\_t  | 154 (MAV\_COMP\_ID\_GIMBAL) | Gimbal Components ID |
| command           | uint16\_t | 31012 (MAV\_CMD\_USER\_3)   | Command ID           |
| confirmation      | uint8\_t  | 1                           |                      |
| param7            | float     | 1                           |                      |

### Set LRF mode

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 |                                            |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "LRF\_MODE"                       |                                            |
| param\_value      | char\[128] | "0" / "1" / "2" / "3"             | 1Hz / 4Hz / 10Hz / Off                     |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Set payload object tracking mode

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description                                 |
| ----------------- | --------- | ------------------------- | ------------------------------------------- |
| target\_system    | uint8\_t  | 1                         |                                             |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID                   |
| command           | uint16\_t | 31013 (MAV\_CMD\_USER\_4) | Command ID (of command to send)             |
| confirmation      | uint8\_t  | 1                         |                                             |
| param1            | float     | 4                         |                                             |
| param2            | float     | 0                         |                                             |
| param3            | float     | 0                         |                                             |
| param4            | float     | "0" / "1" / "2"           | Track stop / Track active / Track eagleeyes |
| param5            | float     | 0                         |                                             |
| param6            | float     | 0                         |                                             |
| param7            | float     | 0                         |                                             |

### Set payload object tracking position

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                    | Description                     |
| ----------------- | --------- | ------------------------- | ------------------------------- |
| target\_system    | uint8\_t  | 1                         |                                 |
| target\_component | uint8\_t  | 26 (MAV\_COMP\_ID\_USER2) | MAVLINK User Component ID       |
| command           | uint16\_t | 31013 (MAV\_CMD\_USER\_4) | Command ID (of command to send) |
| confirmation      | uint8\_t  | 1                         |                                 |
| param1            | float     | 4                         |                                 |
| param2            | float     | 0                         |                                 |
| param3            | float     | 1                         |                                 |
| param4            | float     | "x"                       | pos\_x                          |
| param5            | float     | "y"                       | pos\_y                          |
| param6            | float     | "w"                       | width                           |
| param7            | float     | "h"                       | height                          |

### Do object detection

Message: PARAM\_EXT\_SET (323)

| Field Name        | Type       | Values                            | Description                                |
| ----------------- | ---------- | --------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t   | 1                                 |                                            |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2)      | MAVLINK Camera Component ID on Web setting |
| param\_id         | char\[16]  | "TRACK\_MODE"                     |                                            |
| param\_value      | char\[128] | "0" / "1"                         | Disable / Enable                           |
| param\_type       | uint8\_t   | 5 (MAV\_PARAM\_EXT\_TYPE\_UINT32) | MAV\_PARAM\_EXT\_TYPE                      |

### Get payload camera information

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                       | Description                                |
| ----------------- | --------- | -------------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                            |                                            |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)                 | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_REQUEST\_CAMERA\_INFORMATION (521) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                            |                                            |

### Get payload camera streaming information

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                               | Description                                |
| ----------------- | --------- | ---------------------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                                    |                                            |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)                         | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_REQUEST\_VIDEO\_STREAM\_INFORMATION (2504) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                                    |                                            |

### Get payload storage

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                        | Description                                |
| ----------------- | --------- | --------------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                             |                                            |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)                  | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_REQUEST\_STORAGE\_INFORMATION (525) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                             |                                            |

### Get payload capture status

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                           | Description                                |
| ----------------- | --------- | ------------------------------------------------ | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                                |                                            |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)                     | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_REQUEST\_CAMERA\_CAPTURE\_STATUS (527) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                                |                                            |

### Get payload camera mode

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                    | Description                                |
| ----------------- | --------- | ----------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                         |                                            |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)              | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_REQUEST\_CAMERA\_SETTINGS (522) | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                         |                                            |

### Get payload camera FOV status

Message: COMMAND\_LONG (76)

| Field Name        | Type      | Values                                      | Description                                |
| ----------------- | --------- | ------------------------------------------- | ------------------------------------------ |
| target\_system    | uint8\_t  | 1                                           |                                            |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2)                | MAVLINK Camera Component ID on Web setting |
| command           | uint16\_t | MAV\_CMD\_REQUEST\_MESSAGE (512)            | MAV\_CMD                                   |
| confirmation      | uint8\_t  | 1                                           |                                            |
| param1            | float     | MAVLINK\_MSG\_ID\_CAMERA\_FOV\_STATUS (271) |                                            |
| param2            | float     | "0" / "1"                                   | Camera EO / Camera IR                      |

## Version history

| Version | Publish date | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1.0.0   | 06 Jan 2023  | Add example to do Connect payload; Add example to do Load payload settings; Add example to do Set payload settings; Add example to do Image capture with the payload; Add example to do Video record with the payload; Add example to do Get video streaming from payload                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| 1.0.1   | 25 May 2023  | Included Gremsy gSDK to communicate and control gimbal; Add examples to move gimbal in Angle mode and Angular rate mode using Mavlink Gimbal Protocol v2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| v1.1.0  | 30 July 2024 | Add some examples; Get LRF status for VIO; Payload define                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| v2.0.0  | 16 Aug 2024  | Replace gSDK by MAVLINK interface; Provide MAVLINK command list; Publish resource                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| v2.1.0  | 09 Nov 2026  | Add camera settings commands: Set OSD mode, Set setting target, Set EO camera zoom speed, Set IR zoom, Set camera EO freeze, Set camera EO high sensitivity, Set camera EO focus mode, Set camera EO focus manual value, Set camera EO focus speed; Add Set camera zoom target - Combine command; Add Set camera SpotAE display / mode / position commands; Add Set payload stream bitrate / resolution commands; Add Set payload standby mode and Set payload restart apps commands; Add set gimbal forward flag command; Add Do gimbal calib gyro and Do gimbal auto tune commands; Add Set LRF mode command; Add Get payload camera FOV status command; Change Do object tracking to Set payload object tracking mode and Set payload object tracking position (new parameter layout); Modify target component of Set gimbal move to angle / by speed (101 to 154); Modify Set gimbal mode command |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.gremsy.com/payloads/general/gremsy-payload-sdk/mavlink-command-list-v2.1.0.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
