# CAMERA COMMAND LIST

### **1. Connect Payload** <a href="#bkmrk-1.-connect-payload" id="bkmrk-1.-connect-payload"></a>

* **System id: 1**
* **Component id: 191 (MAV\_COMP\_ID\_ONBOARD\_COMPUTER)**

### **2. Command List** <a href="#bkmrk-2.-command-list" id="bkmrk-2.-command-list"></a>

***2.1 MAVLINK\_MSG\_ID\_PARAM\_EXT\_REQUEST\_LIST (321)***

Request all parameters of this Payload. All parameters should be emitted in response as ***PARAM\_EXT\_VALUE***

| **Field Name**    | **Type** | **Values**                   | **Description** |
| ----------------- | -------- | ---------------------------- | --------------- |
| target\_system    | uint8\_t | 1                            | System ID       |
| target\_component | uint8\_t | 101 (MAV\_COMP\_ID\_CAMERA2) | Component ID    |

***2.2 MAVLINK\_MSG\_ID\_PARAM\_EXT\_SET (323)***

Set a parameter value to Payload

| **Field Name**    | **Type**   | **Values**                   | **Description** |
| ----------------- | ---------- | ---------------------------- | --------------- |
| target\_system    | uint8\_t   | 1                            | System ID       |
| target\_component | uint8\_t   | 101 (MAV\_COMP\_ID\_CAMERA2) | Component ID    |
| param\_id         | char\[16]  |                              | Param ID        |
| param\_value      | char\[128] |                              | Param value     |
| param\_type       | uint8\_t   |                              | Param type      |

***

### ***Command long*** <a href="#bkmrk-command-long" id="bkmrk-command-long"></a>

| **Field Name**    | **Type**  | **Values**                   | **Description**                 |
| ----------------- | --------- | ---------------------------- | ------------------------------- |
| target\_system    | uint8\_t  | 1                            | System ID                       |
| target\_component | uint8\_t  | 101 (MAV\_COMP\_ID\_CAMERA2) | Component ID                    |
| command           | uint16\_t |                              | Command ID (of command to send) |
| confirmation      | uint8\_t  | 1                            |                                 |
| param1            | float     | For the specific command     | Parameter 1                     |
| param2            | float     | For the specific command     | Parameter 2                     |
| param3            | float     | For the specific command     | Parameter 3                     |
| param4            | float     | For the specific command     | Parameter 4                     |
| param5            | float     | For the specific command     | Parameter 5                     |
| param6            | float     | For the specific command     | Parameter 6                     |
| param7            | float     | For the specific command     | Parameter 7                     |

#### Command ID: <a href="#bkmrk-command-id-3a" id="bkmrk-command-id-3a"></a>

***2.3 MAV\_CMD\_REQUEST\_CAMERA\_INFORMATION (521)***

Request camera information (**CAMERA\_INFORMATION**).

| **Param**       | **Description** | **Payload use Values**     |
| --------------- | --------------- | -------------------------- |
| 1: Capabilities | not use         | Payload not use this param |

***2.4 MAV\_CMD\_REQUEST\_CAMERA\_SETTINGS (522)***

Request camera settings (**CAMERA\_SETTINGS**).

| **Param**   | **Description** | **Payload use Values**     |
| ----------- | --------------- | -------------------------- |
| 1: Settings | not use         | Payload not use this param |

***2.5 MAV\_CMD\_REQUEST\_STORAGE\_INFORMATION (525)***

Request storage information (**STORAGE\_INFORMATION**). Use the command's target\_component to target a specific component's storage.

| **Param**      | **Description** | **Payload use Values**     |
| -------------- | --------------- | -------------------------- |
| 1: Storage ID  | not use         | Payload not use this param |
| 2: Information | not use         | Payload not use this param |

***2.6 MAV\_CMD\_REQUEST\_CAMERA\_CAPTURE\_STATUS (527)***

Request camera capture status (**CAMERA\_CAPTURE\_STATUS**)

| **Param**         | **Description** | **Payload use Values**     |
| ----------------- | --------------- | -------------------------- |
| 1: Capture Status | not use         | Payload not use this param |

***2.7 MAV\_CMD\_SET\_CAMERA\_MODE (530)***

Set camera running mode

| **Param**      | **Description** | **Payload use Values**                         |
| -------------- | --------------- | ---------------------------------------------- |
| 1              | Reserved        |                                                |
| 2: Camera Mode | Camera mode     | 0: CAMERA\_MODE\_IMAGE, 1: CAMERA\_MODE\_VIDEO |

***2.8 MAV\_CMD\_SET\_CAMERA\_ZOOM (531)***

Set camera zoom. Current only support ZOOM\_TYPE\_CONTINUOUS

| **Param**     | **Description**                             | **Payload use Values**                     |
| ------------- | ------------------------------------------- | ------------------------------------------ |
| 1: Zoom Type  | Payload only support ZOOM\_TYPE\_CONTINUOUS | 1: ZOOM\_TYPE\_CONTINUOUS (only support)   |
| 2: Zoom Value | Zoom value                                  | -1 for wide, 1 for tele, 0 to stop zooming |

***2.9 MAV\_CMD\_SET\_CAMERA\_FOCUS (532)***

Set camera focus. Current support FOCUS\_TYPE\_CONTINUOUS

| **Param**      | **Description**                                               | **Payload use Values**                                                                            |
| -------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| 1: Focus Type  | Payload support FOCUS\_TYPE\_CONTINUOUS and FOCUS\_TYPE\_AUTO | <p>1: FOCUS\_TYPE\_CONTINUOUS<br>4: FOCUS\_TYPE\_AUTO</p>                                         |
| 2: Focus Value | Focus value                                                   | With focus\_type = 1: -1 for focusing in, 1 for focusing out towards infinity, 0 to stop focusing |

***2.10 MAV\_CMD\_IMAGE\_START\_CAPTURE (2000)***

Start image capture

| **Param**          | **Description**                                                    | **Payload use Values**                |
| ------------------ | ------------------------------------------------------------------ | ------------------------------------- |
| 1: ID              | not use                                                            | Payload not use this param            |
| 2: Interval        | Desired elapsed time between two consecutive pictures (in seconds) | 0: Single shoot, 1-?: second interval |
| 3: Total Images    | not use                                                            | Payload not use this param            |
| 4: Sequence Number | not use                                                            | Payload not use this param            |

***2.11 MAV\_CMD\_IMAGE\_STOP\_CAPTURE (2001)***

Stop image capture. Use when capture interval

| **Param** | **Description** | **Payload use Values**     |
| --------- | --------------- | -------------------------- |
| 1: ID     | not use         | Payload not use this param |

***2.12 MAV\_CMD\_VIDEO\_START\_CAPTURE (2500)***

Starts video capture (recording)

| **Param**           | **Description** | **Payload use Values**     |
| ------------------- | --------------- | -------------------------- |
| 1: Stream ID        | not use         | Payload not use this param |
| 2: Status Frequency | not use         | Payload not use this param |

***2.13 MAV\_CMD\_VIDEO\_STOP\_CAPTURE (2501)***

Stop the current video capture (recording)

| **Param**    | **Description** | **Payload use Values**     |
| ------------ | --------------- | -------------------------- |
| 1: Stream ID | not use         | Payload not use this param |

***2.14 MAV\_CMD\_REQUEST\_VIDEO\_STREAM\_INFORMATION (2504)***

Request video stream information (**VIDEO\_STREAM\_INFORMATION**)

| **Param**    | **Description** | **Payload use Values**     |
| ------------ | --------------- | -------------------------- |
| 1: Stream ID | not use         | Payload not use this param |

<br>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gremsy.com/payloads/vio/gremsy-payloadsdk/camera-command-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
