GpsTools v1.31 and later|
Get satellite information.
This happens when a set of GSV commands has been received.
If Timeout is set to a value different from 0 GetSatellites
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 GetSatellites returns immediately with
the latest satellite values. If no values 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 sent any
NmeaParser.NoEvents must be set to True.
Another way of getting a Satellites object is by using events.
See NmeaParser.OnSatellites for more details.
Visual Basic Example:
' Time out after 3 seconds if no valid information received|
Set objSats = objParser.GetSatellites(3000)
If objSats Is Nothing Then
' Error! No valid fix received.
' GPS is turned off, not connected
' or cannot receive enough signals from the satellites.
// 3000 ms time out|
objStas = objParser.GetSatellites(3000);
if(objSats == null)
objSatellites = object.GetSatellites(TimeOut)
||An object that evaluates to an GpsToolsNET.NmeaParser object.
||Received collection of satellites.
||Time in milliseconds before this function times out. If it times out
Nothing is returned.