Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsToolsCE

Class
NmeaParser

Properties
PortEnabled
BaudRate
ComPort
GpsDatum
NoEvents
MultiThreading
AllEventsGeneric
ChecksumMandatory

Events
OnGpsFix
OnSatellites
OnMovement
OnQuality
OnComStatus

Generic
GGA
GLL
RMC

Methods
EventInterval
Parse
GetGpsFix
GetSatellites
GetMovement
GetQuality
GetComStatus
WriteData

NmeaParser.GetMovement GpsTools v1.31 and later

Get speed and heading. This happens when a valid RMC command has been received.

If Timeout is set to a value different from 0 GetMovement will not return until a new value is received from the GPS or the method times out.

(v1.34 and later) If Timeout is set to 0 GetMovement returns immediately with the latest speed and heading information. If no information has been received or the connection to the GPS is no longer valid Nothing is returned. Note that event though ComStatus.ValidNmea might be True indicating that the GPS is up and running, it does not mean the GPS has made a sent any information to GpsTools (yet).

NmeaParser.NoEvents must be set to True.

Another way of getting a Movement object is by using events.
See NmeaParser.OnMovement for more details.

Visual Basic Example:
' Time out after 3 seconds if no valid info received
Set objMove = objParser.GetMovement(3000)

If objMove Is Nothing Then
  ' Error! No valid fix received.
  ' GPS is turned off, not connected
  ' or cannot receive enough signals from the satellites.

Else
  ' OK!
End If

JavaScript Example:
// 3000 ms time out
objMove = objParser.GetMovement(3000, 3);
if(objMove == null)
{
  // Error!
}
else
{
  // OK!
}

Syntax
objMovement = object.GetMovement(TimeOut)

Part Type Description
object GpsToolsCE.NmeaParser An object that evaluates to an GpsToolsCE.NmeaParser object.
objMovement GpsToolsCE.Movement (Variant)
Received collection of satellites.
TimeOut Long (Variant) Time in milliseconds before this function times out. If it times out Nothing is returned.



Pocket PC
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login