Dialect: stemstudios
WARNING
This topic documents the version of the dialect file in the mavlink/mavlink Github repository, which may not be up to date with the file in the source repository (it is up to the dialect owner to push changes when needed). The source repo should be listed in the comments at the top of the XML definition file listed below (but may not be).
This topic is a human-readable form of the XML definition file: stemstudios.xml.
INFO
- MAVLink 2 extension fields are displayed in blue.
- Entities from dialects are displayed only as headings (with link to original)
MAVLink Include Files
Summary
| Type | Defined | Included |
|---|---|---|
| Messages | 2 | 232 |
| Enums | 1 | 152 |
| Commands | 166 | 0 |
The following sections list all entities in the dialect (both included and defined in this file).
Messages
LED_STRIP_CONFIG (52600)
Set the colors on an LED strip. The mode field determines how the colors are set. We can:
- Set all LEDs to the first color in our colors array.
- Set up to 8 consecutive LEDs, starting from a given index, to colors provided in an array.
- Set the LED colors to change according to the flight mode.
- Turn all LEDs off (clear). Which LED strip to configure is specified by the id field. The colors field is an array of up to 8 colors, each represented as a 32-bit integer in the format 0xWWRRGGBB where WW is white, RR is the intensity of the red color channel, GG is green, and BB is blue.
| Field Name | Type | Values | Description |
|---|---|---|---|
| target_system | uint8_t | System ID. | |
| target_component | uint8_t | Component ID (Normally 134 for an LED Strip Controller). | |
| mode | uint8_t | LED_CONFIG_MODE | How to configure LEDs. |
| index | uint8_t | Set LEDs starting from this index. | |
| length | uint8_t | The number of LEDs to set (up to 8). | |
| id | uint8_t | Which strip to configure. UINT8_MAX for all strips. | |
| colors | uint32_t[8] | Array of 32-bit color values (0xWWRRGGBB). |
LED_STRIP_STATE (52601)
Current LED State. Can be emitted by LED Strip Controller.
| Field Name | Type | Description |
|---|---|---|
| length | uint8_t | How many LEDs are being reported in this message. |
| index | uint8_t | Index of first LED being reported. |
| id | uint8_t | Which strip is being reported. |
| following_flight_mode | uint8_t | Are the LED colors changing according to the flight mode (1) or not (0). |
| colors | uint32_t[8] | Array of 32-bit color values (0xWWRRGGBB). |
Enumerated Types
LED_CONFIG_MODE
How to configure LEDs. We can:
- Set all LEDs to the first color in our colors array.
- Set up to 8 consecutive LEDs, starting from a given index, to colors provided in an array.
- Set the LED colors to change according to the flight mode.
- Turn all LEDs off (clear).
| Value | Name | Description |
|---|---|---|
| 0 | LED_CONFIG_MODE_ALL | Set all LEDs in the target strip to the first color in our colors array. |
| 1 | LED_CONFIG_MODE_INDEX | Set up to 8 consecutive LEDs, starting from the given index, to the colors provided in the colors array. |
| 2 | LED_CONFIG_MODE_FOLLOW_FLIGHT_MODE | Set all LEDs in target strip to change color according to the flight mode. |
| 3 | LED_CONFIG_MODE_CLEAR | Set all LEDs in the target strip to black (turn off). |

