North Biased Compass Control

Download NorthCompass.ocx Visual Studio Control

Unlike a compass in the real world, a north-biased compass has a fixed card and a moving needle. Therefore this control is useful for showing bearings instead of headings. You may set the control's Properties to change the colors of the tick marks, the length of the tick marks, the style of the indicator (line or dot), and of course also use the Night Property or Twilight Property.

The IndicatorStyle Property may be used to change the indicator from a line (Value "0") to a dot (Value "1"). The IndicatorColor Property sets the color of the indicator.
The Night Property color scheme matches the same as the other crontrols in the control suite, as does the Twilight Property. You may also remove the bearing label with the ShowPrimaryLabel Property to False , or change the font size with the PrimaryFontSize Property.
There are two ways to set the bearing: by using the cHeading Property and/or the HDT Method. Degrees may be added that are greater than 359, and the control will modulus the sum (for example, a heading of 370 will reduce to a heading of 10).

Several NMEA devices provide True Heading ($..HDT) sentences. (For example many GPS receivers will send $GPHDT sentences.) You may pass these sentences to the Compass Control via the HDT Method.

Events:

Resize
CompassError
Click
DblClick

Methods:

HDT
ResetDefaults

Properties:

cHeading
Night
Twilight
Appearance
BackColor
FontColor
BorderStyle
ErrorNumber
ErrorDescription
ScaleTicks
ShowFiveTick
ShowTenTick
ShowCardinals
IndicatorColor
IndicatorStyle
FiveTickColor
TenTickColor
CardinalFontSize
ShowMajorCards
ShowMinorCards
PrimaryFontSize
ShowPrimaryLabel

Error Codes

0 - No Current Error
1 - Tick scaling must be from 1% to 1,000%
2 - NMEA sentence appears malformed. $..HDT sentences are valid.
3 - Indicator style must be 0 (needle) or 1 (dot).
4 -
5 - BorderStyle must be 0 or 1
6 - Appearance must be 0 or 1
NMEA Sage Home Page

The Banded Compass Control
The Compass Control
The North Biased Compass Control
The Goto Control
Course and Speed (Ground)
The Position Control
Engine RPM Control
The Rudder Control
The GPS Satellite Health Control
The GPS Satellite Elevation Control
Set and Drift control
The NMEA Talker Control
Depth and Water Temperature Control
The Wind Control
The Cross Track Alarm Control
The Pilot Control
Waypoint Plotter Control
Radar Control
Goto Simple Control