QtIndustrialWidgets 2.3.0
Modern, High-Performance Industrial Instruments & SCADA Widgets for Qt
Loading...
Searching...
No Matches
QtIndustrialWidgets::Compass Class Reference

Marine gyrocompass and aeronautical heading indicator instrument. More...

#include <Compass.h>

Inheritance diagram for QtIndustrialWidgets::Compass:

Detailed Description

Marine gyrocompass and aeronautical heading indicator instrument.

Compass provides an authentic 360° directional navigation instrument for maritime vessels, avionics systems, autonomous vehicles (UAV/ROV), and industrial positioning test benches.

Features include:

  • Dual operating modes:
    • HeadingUp: Rotating compass card where current vessel/aircraft heading is at 12 o'clock (lubber line).
    • NorthUp: Fixed compass rose with 360° rotating dual-tone magnetic needle (Red North / Silver South).
  • Target Heading Bug: Adjustable course/autopilot heading index with interactive mouse drag.
  • Course Deviation Indicator (CDI): Instantaneous computation of angular deviation from target course.
  • 360° graduation marks with cardinal (N, E, S, W) and intercardinal (NE, SE, SW, NW) indices.
  • High-visibility 12 o'clock lubber reference marker.
  • Recessed central digital readout pod with 3-digit padded heading angle (e.g. 045°).
  • High-DPI cached circular card pixmap: a heading change redraws only the moving parts.

Fonts: the texts use the family, weight and style of the widget font (setFont(), style sheets); their sizes come from the widget geometry and do not follow the size of the widget font, because the layout does not yet make room for larger text.

auto *compass = new qiw::Compass(parent);
compass->setDisplayMode(qiw::Compass::DisplayMode::HeadingUp);
compass->setHeading(45.0); // 045° North-East
compass->setTargetHeading(90.0); // Target East (090°)
compass->setHeadingBugVisible(true);
Marine gyrocompass and aeronautical heading indicator instrument.
Definition Compass.h:49

The documentation for this class was generated from the following file: