Altitude Property
Returns the current GPS reported altitude.
Syntax
Visual Basic
object.Altitude
Visual C++
object.GetAltitude()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim altitude As Double
'Get altitude
altitude = myGPSToolKit.Altitude
Visual C++
_variant_t vtAltitude;
// Get altitude
vtAltitude = m_myGPSToolKit.GetAltitude();
double alt = (double)vtAltitude;
Remarks
Altitude is returned in the units defined in the
AltitudeUnits property.
Default
Empty (VT_EMPTY)
Returns
A VARIANT (type VT_R8/double) containing the last reported altitude value.
If no altitude data is reported the variable will be empty (type VT_EMPTY).
Errors
None
See Also
Latitude property, Longitude property, FixUpdate event
|