About GPS ToolKit
Introduction
Purchasing GPS ToolKit
Redistributing GPS ToolKit
License Agreement
Support
Getting Started
How to Use GPS ToolKit
Adding GPS ToolKit to a Visual Basic Project
Adding GPS ToolKit to a Visual C++ Project
Adding GPS ToolKit to an Excel Worksheet
Setting up the GPS
How to Use Events
Handling Events in Visual Basic
Handling Events in Visual C++
Handling Events in Microsoft Excel
GPS ToolKit Sample Projects
Handling GPS ToolKit Errors
Reference
Properties
Altitude
AltitudeUnits
ArrivedAtDest
AutomaticOperation
BaudRate
CrossTrackError
DegLabel
DestClosingVelocity
DestWptID
DestWptLatitude
DestWptLongitude
DistUnits
DGPSRefStationID
FixDateTime
FixGood
FixQuality
FixSatellitePRNs
GeoidHeightAboveWGS84Ellipsoid
HDOP
Latitude
LatLonFormat
Longitude
MagVariation
MinLabel
ModeIndicator
NumSatellitesInFix
NumSatellitesInView
OperationMode
OrigToDestMagBearing
OrigToDestTrueBearing
OriginWptID
PDOP
PortHandle
PortName
RangeToDest
RouteContainsAllWpts
RouteName
SatelliteInViewPRNs
SecLabel
Speed
SpeedUnits
TimeSinceLastDGPSUpdate
TrueBearingToDest
TrueCourse
VDOP
WptsInRoute
Methods
Close
GetSatelliteInfo
GetWptLocation
Open
OpenFile
Events
FixUpdate
FileComplete
NavUpdate
RawDataReceived
SatelliteUpdate

AltitudeUnits Property

Sets/gets the units in which altitude data is to be returned.

Syntax

Visual Basic

object.AltitudeUnits [ = value ]

Visual C++

object.GetAltitudeUnits()

object.SetAltitudeUnits(value)

Part Description
object An object expression that evaluates to a GPS ToolKit object.
value A short integer indicating the units in which altitude data is to be returned.

Example

Visual Basic

'Set altitude units
myGPSToolKit.AltitudeUnits = 1	' feet

'Get altitude units
Dim altUnits As Integer
altUnits = myGPSToolKit.AltitudeUnits

Visual C++

// Set altitude units
_variant_t vtAltUnits((short)1);   // feet
m_myGPSToolKit.SetAltitudeUnits(vtAltUnits);

// Get altitude units
vtAltUnits = m_myGPSToolKit.GetAltitudeUnits();
short altUnits = (short)vtAltUnits;

Remarks

This property affects the units of the Altitude and GeoidHeightAboveWGS84ellipsoid properties, as well as the altitude data supplied by the FixUpdate event.

Valid AltitudeUnits values are as follows:
Setting Description
0 Meters (Default)
1 Feet

Default

0 (meters)

Returns

A VARIANT (type VT_I2/short) containing the units in which altitude is to be returned.

Errors

Attempting to set AltitudeUnits to an invalid value will cause GPS ToolKit to throw an "Invalid argument" exception.

See Also

Altitude property, GeoidHeightAboveWGS84ellipsoid property, FixUpdate event, SpeedUnits property