Post · 3 min read· pp. 445–447

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)

Summary

TypeDefinedIncluded
Messages2235
Enums1159
Commands0171

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 NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID (Normally 134 for an LED Strip Controller).
modeuint8_tLED_CONFIG_MODEHow to configure LEDs.
indexuint8_tSet LEDs starting from this index.
lengthuint8_tThe number of LEDs to set (up to 8).
iduint8_tWhich strip to configure. UINT8_MAX for all strips.
colorsuint32_t[8]Array of 32-bit color values (0xWWRRGGBB).

LED_STRIP_STATE (52601)

Current LED State. Can be emitted by LED Strip Controller.

Field NameTypeDescription
lengthuint8_tHow many LEDs are being reported in this message.
indexuint8_tIndex of first LED being reported.
iduint8_tWhich strip is being reported.
following_flight_modeuint8_tAre the LED colors changing according to the flight mode (1) or not (0).
colorsuint32_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).
ValueNameDescription
0LED_CONFIG_MODE_ALLSet all LEDs in the target strip to the first color in our colors array.
1LED_CONFIG_MODE_INDEXSet up to 8 consecutive LEDs, starting from the given index, to the colors provided in the colors array.
2LED_CONFIG_MODE_FOLLOW_FLIGHT_MODESet all LEDs in target strip to change color according to the flight mode.
3LED_CONFIG_MODE_CLEARSet all LEDs in the target strip to black (turn off).

Commands (MAV_CMD)