Attitude Indicator
The attitude indicator (artificial horizon) shows roll and pitch angles. It is commonly used with drones, gimbals, and devices with an IMU. The display follows a flight instrument: the sky and ground rotate and shift with the attitude, while the yellow aircraft symbol in the center stays fixed to show the device's nose direction.
Data Requirements
The plugin always needs two values, in this order:
| Position | Meaning | Unit | Positive value means |
|---|---|---|---|
| 1st | Roll angle | Degrees | Right bank (right wing down) |
| 2nd | Pitch angle | Degrees | Nose up |
The roll angle is limited to -180° through 180°, and the pitch angle to -90° through 90°. Values outside these ranges are clamped to the nearest limit.
Data Source
The plugin has two data sources: Text Split and Variable Rendering. They are mutually exclusive, so at most one is on at a time. For how each source is turned on and the general rules for receiving data, see Plugins Overview.
Text Split (Default)
Text Split is the default data source, so it works without any changes.
- The received text must contain at least two values. If there are more than two, only the first two are used.
- The first value is the roll angle, and the second value is the pitch angle.
- If a value is a missing value (it cannot be converted to a number), only that component keeps its previous display. The other component still updates.
- If there are fewer than two values, the whole data item is ignored.
- When Prefix is empty, the plugin does not check for a prefix. When a prefix is set, only data that starts with it is processed, and other data is ignored.
- When Separator is empty, Text Split produces no values.
Example: leave Prefix empty, set Separator to ,, and receive 12.5,-3.2. The display shows Roll: 12.5° and Pitch: -3.2°.
If Prefix is set to $ATT,, only data such as $ATT,12.5,-3.2 is processed. Other data is ignored.
Variable Rendering
Check Enable variable mode in the Variable rendering settings popup to turn on Variable Rendering. Text Split turns off automatically.
- The variable list shows only numeric variables. Boolean and string variables are hidden.
- You cannot turn on Enable variable mode without a checked variable, and at least two checked variables are needed before the display updates. Among the checked variables, the first two in list order, from top to bottom, are used as the roll and pitch angles. If more than two are checked, only the first two are used.
- While variable mode is on, the variable list is locked. To change the checked variables, turn off Enable variable mode first.
- When Refresh mode is Refresh on receive (default), the plugin reads the variable values each time data is received. When it is Timed refresh, the plugin reads the values every refresh interval (in milliseconds, minimum 10 ms, default 100 ms). In this mode, the values do not update when data is received.
- While variable mode is on, the names in the bottom readout and in the Channel Settings list change to the selected variable names.
Channel Settings
The plugin always has two channels: roll and pitch. In the Channel Settings popup, Name and Color take effect. The name appears in the bottom readout. Unit and Show this channel have no effect on this plugin. The readout always uses degrees (°), and clearing Show this channel does not hide the channel. Add and Remove are disabled, so the channel count stays at two. The popup has no range settings.
Display
The display area shows a circular dial above a readout row.
- Sky and ground: The upper half is sky (blue) and the lower half is ground (brown). The line between them is the horizon.
- Pitch: When the pitch angle is positive, the horizon moves down and more sky is visible. When it is negative, the horizon moves up. A tick line appears every 10° on both sides of the horizon. The ±30° and ±60° ticks are longer and labeled with numbers.
- Roll: When the roll angle is positive, the sky and ground rotate counterclockwise. A fixed orange pointer at the top of the dial points to the current roll value on the roll scale. The roll scale runs from -60° to 60° and includes ±10°, ±20°, ±30°, ±45°, ±60°, and 0°. The 0°, ±30°, and ±60° ticks are longer major ticks, and the 0° tick is yellow.
- Aircraft symbol: The yellow aircraft symbol in the center stays fixed and represents the nose direction.
- Readout: The bottom row shows the current roll and pitch values, for example "Roll: 12.5°" and "Pitch: -3.2°". The text color is a darker shade of the channel color. Before the first valid value arrives, it shows "--". If the first valid data contains only one of the two values, the other value reads 0.0°.
Toolbar
| Icon | Button | Description |
|---|---|---|
| Channels | Opens the Channel Settings popup, where you can edit the names and colors of the roll and pitch channels. | |
| Variable | Opens the Variable rendering settings popup. In the popup, check Enable variable mode, and set Refresh mode to Refresh on receive (default) or Timed refresh. Timed refresh also uses the refresh interval. The button shows as selected while variable rendering is on. Clicking the button only opens the popup and does not switch the mode. | |
| Text | Opens the Text split settings popup. In the popup, check Enable text mode, and set the Prefix and Separator. The button shows as selected while text splitting is on, which is the default. Clicking the button only opens the popup and does not switch the mode. | |
| Help | Opens this plugin's online help page in your browser. |
Notes
- Angles are in degrees. The plugin does not convert units.
- When both Text Split and Variable Rendering are off, the plugin splits received text by English commas.
