Skip to content

Compass / Heading Indicator ​

The compass shows heading angles (heading or yaw), such as the direction of a ship, drone, or gimbal. Each channel has its own dial, so one compass can show several headings at the same time.

Data Requirements ​

  • In text split mode, the number of values must be at least the number of channels. The first value goes to the first channel, and so on.
  • Values are angles in degrees and can be any real number. Angles outside 0° to 360° are normalized automatically. See Angle Handling below.
  • In variable mode, the number of channels equals the number of checked variables, so the number of values in the received text does not matter.

Data Source ​

The plugin has two data sources. They are mutually exclusive: turning on one turns the other off. For the general rules on prefix, separator, and refresh, see the Plugins Overview. This page covers only what is specific to the compass.

Text Split (Default) ​

On by default. In the Text split settings popup, you can set the Prefix and Separator. The separator defaults to the English comma ,.

  • If there are fewer values than channels, the whole data item is ignored, and all dials keep their previous display.
  • If there are more values than channels, the extra values are ignored.
  • A value that cannot be converted to a number is a missing value. Its dial keeps its previous display, and the other channels still update.

Example: the prefix is empty and the separator is ,. With one channel, receiving 270.5 shows 270.5°. With two channels, receiving 45,180 shows 45.0° on the first dial and 180.0° on the second.

Variable Rendering ​

In the Variable rendering settings popup, turn on Enable Variable Mode, then check numeric variables in the variable list. Boolean and string variables do not appear in the list.

  • Each checked variable gets one channel.
  • Channels follow the variable list from top to bottom, regardless of the order in which the variables were checked. Each channel name shows the variable name.
  • While variable mode is on, the variable list is locked. Turn variable mode off before you change the checked variables.
  • A variable value that cannot be converted to a number is a missing value. Its dial keeps its previous display.
  • Under Refresh Settings, there are two Refresh mode options:
    • Refresh on receive (default): Reads the variables each time data is received.
    • Timed refresh: Reads the variables at each Refresh interval. The interval ranges from 10 to 99999 ms, and the default is 100 ms. It can be changed only when Timed refresh is selected.
  • When you turn off variable mode, the refresh mode returns to Refresh on receive.
  • After you leave variable mode, the number of channels does not exceed the number before you entered variable mode. Channels removed when you entered variable mode are not restored automatically.

Channel Settings ​

By default, there is one channel named "Channel 1". Click the Channels button on the toolbar to open the Channel Settings popup.

  • In the Channel List, select a channel, then edit its Name, Unit, and Color. Check or uncheck Show this channel.
  • Click Add or Delete to change the number of channels. The range is 1 to 10.
  • When Show this channel is unchecked, the channel's dial is faded and stops receiving new values.
  • In variable mode, the Name field is read-only and shows the variable name. Add and Delete are disabled, but you can still change the color.

Display ​

The dial for each channel appears in the plugin's display area. The channel name is above the dial, and the angle readout is below it. When there are many channels, the dials are arranged side by side. Any part that does not fit the window can be scrolled sideways.

  • 0° is at the top, which is north. Angles increase clockwise: 90° is east, 180° is south, and 270° is west. The dial labels N, E, S, and W, and N is red.
  • The dial and its ticks stay fixed. Only the needle moves.
  • The red end of the needle points to the current heading. The gray-white end points the opposite way. Before the first value arrives, the needle is gray.
  • A tick appears every 10°. Every 30° is a major tick, and major ticks are longer and thicker than the others. The ticks at N, E, S, and W (every 90°) are red and thicker than other major ticks, but they have the same length.
  • The readout keeps one decimal place, for example 123.4°. It shows -- until the first valid value arrives.

Toolbar ​

IconButtonDescription
ChannelsChannelsOpens the Channel Settings popup, where you edit the name, color, and visibility of each channel. You can also add or delete channels.
VariableVariableOpens the Variable rendering settings popup, where you turn on variable mode, check numeric variables, and set the refresh mode. When the button is selected, variable mode is on. Clicking the button only opens the popup and does not switch the mode.
TextTextOpens the Text split settings popup, where you turn on text mode and set the Prefix and Separator. When the button is selected, text split is on. Clicking the button only opens the popup and does not switch the mode.
HelpHelpOpens this plugin's online help page in your browser.

Angle Handling ​

  • Input values can be any real number. The plugin normalizes them to the range 0° to 360°. For example, -90 is shown as 270°, and 370 is shown as 10°.
  • The needle takes the shortest path. When it moves from 359° to 1°, it passes north directly and does not turn the long way around.
  • The needle takes about 280 ms to turn. The first value received sets the needle position directly, without an animation.

Notes ​

  • The compass has no range setting, so angles always show from 0° to 360°. The Unit field can be filled in, but the compass does not display units.
  • Editing any channel setting (name, unit, color, or visibility), or turning variable mode on or off, rebuilds all dials. The needles return to the no-data state, and the readouts show -- until the next valid value arrives.
  • When Text Split and Variable Rendering are both off, the plugin splits received text by English commas.