OrigToDestMagBearing Property
Returns the magnetic bearing from the current origin waypoint to the current destination waypoint.
Syntax
Visual Basic
object.OrigToDestMagBearing
Visual C++
object.GetOrigToDestMagBearing()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim magBearing As Double
'Get magnetic bearing to from origin to destination waypoint
magBearing = myGPSToolKit.OrigToDestMagBearing
Visual C++
_variant_t vtMagBearing;
// Get magnetic bearing from origin to destination waypoint
vtMagBearing = m_myGPSToolKit.GetOrigToDestMagBearing();
double magBearing = (double)vtMagBearing;
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.
Default
Empty (VT_EMPTY)
Returns
A VARIANT (type VT_R8/double) containing the last reported magnetic bearing value in degrees.
If no magnetic bearing data is reported the variable will be empty (type VT_EMPTY).
Errors
None
See Also
TrueCourse property, TrueBearingToDest property, OrigToDestTrueBearing property
|