Skip to main content
Category: Display · Reads data: yes (heading) · Sends commands: no

Mental model

A Compass is a compass. Push a heading (0–360°) and the needle points that way — for vehicles, vessels, drones, or any bearing.

When to use it

  • Show heading / bearing / wind direction

Settings

Style

  • Compass size / color
  • Needle color / length / width / style
  • Show cardinal directions · direction labels · value

Example

device.updateWidget(targetId, "heading", (float)bearingDegrees);

Script API example

The same interactions from a dashboard script:
ws.onMessage((msg) => {
  if (typeof msg.heading === 'number') widget.setValue('heading', msg.heading);
});

Attitude Indicator

For roll/pitch instead of heading.