About GPS ToolKit.NET Mobile
Introduction
Purchasing GPS ToolKit.NET
Redistributing GPS ToolKit.NET
License Agreement
Support
Getting Started
Getting Started
Setting up the GPS
Basic Concepts
GPS ToolKit Sample Projects
About GPS ToolKit Errors
Reference
GPSToolKit Class
Properties
BaudRate
ExtendedFixData
IsGPSConnected
IsPortOpen
LastPositionUpdateTime
NavigationData
PortName
Protocol
Position
Satellites
Speed
TrueCourse
Methods
AddRoute
AddTrack
AddWaypoint
AutoDetectGPS
Close
GetAvailableSystemPorts
GetGPSInfo
GetRoutes
GetSystemPorts
GetTracks
GetWaypoints
Open
ShutOffGPS
WriteRawBinaryToGPS
WriteRawToGPS
Events
GPSConnected
GPSDisconnected
NavigationUpdate
PositionUpdate
RawDataReceived
SatelliteUpdate
Supporting Classes
Altitude
Angle
Distance
ExtendedFixData
Properties
DGPSRefStationID
EstimatedHorizontalError
EstimatedPositionError
EstimatedVerticalError
FixMode
GeoidHeightAboveWGS84
HDOP
MagneticVariation
NumSatellitesInView
PDOP
TimeSinceLastDGPSUpdate
VDOP
GPSInfo
Latitude
Methods
ToDecimalDegreesString
ToDegreesMinutesString
ToDegreesMinutesSecondsString
Longitude
Methods
ToDecimalDegreesString
ToDegreesMinutesString
ToDegreesMinutesSecondsString
NavData
Properties
ActiveRoute
ArrivedAtDest
CrossTrackError
DestWptName
DestWptPosition
IsValid
MagBearingFromOriginToDest
OriginWptName
TrueBearingFromOriginToDest
TrueBearingToDestWpt
VelocityTowardDestWpt
Position
Methods
BearingFrom
BearingTo
DistanceTo
Route
Properties
Name
Waypoints
Satellite
Speed
Track
Properties
Color
DisplayTrack
Name
TrackPoints
TrackPoint
Waypoint
Collections
RouteCollection
SatelliteCollection
TrackCollection
TrackPointCollection
WaypointCollection

NavData.MagBearingFromOriginToDest Property

The magnetic bearing from the current origin waypoint to the current destination waypoint.

Syntax

[Visual Basic]
object.MagBearingFromOriginToDest

[C#]
object.MagBearingFromOriginToDest

[C++]
object->MagBearingFromOriginToDest

Parameters

object

An object expression that evaluates to a NavData object.

Return Value

An Angle object containing the magnetic bearing from the currently selected GPS origin waypoint to the destination waypoint.

Remarks

  • This value is not the magnetic bearing from the current position to the destination waypoint, rather the magnetic bearing from either the origin waypoint, or from the position of the GPS at the moment the destination waypoint was selected.

  • If no magnetic bearing data is reported, the IsValid property of the Angle object is false.

Errors

None

Example

[Visual Basic]
Dim magBearing As Angle

'Get magnetic bearing from origin to destination
magBearing = myGPSToolKit.NavigationData.MagBearingFromOriginToDest


[C#]
// Get magnetic bearing from origin to destination
Angle magBearing = myGPSToolKit.NavigationData.MagBearingFromOriginToDest;



[C++]
// Get magnetic bearing from origin to destination
Angle *magBearing = myGPSToolKit.NavigationData.MagBearingFromOriginToDest;

See Also

TrueCourse property, TrueBearingToDest property, TrueBearingFromOriginToDest property