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