GetSatellitesData
Previous Top Next

Retrieves the satellites status information.
GetSatellitesData returns a structured array containing the following information:
ID - A number representing each satellite.
SignalStrength - The signal strength. Actual values may change between different GPS devices. However higher values are better.
Azimuth - Satellite azimuth in degrees.
Elevation - Satellite elevation in degrees.
Used - True if the GPS currently uses this satellite and false otherwise.

This method is updated after each call to GetGPSData. An empty array will be returned if data is not valid.

Syntax: GetSatellitesData As String(,)

Example:
Sub Globals
      Private Type (ID, SignalStrength, Azimuth, Elevation, Used) sats(0)
End Sub

Public Sub UpdateSatellites
      Table1.Clear
      sats() = Main.gps.GetSatellitesData
      For i = 0 To ArrayLen(sats())-1
            If sats(i).ID > 0 Then
                  Table1.AddRow(sats(i).ID, sats(i).SignalStrength, sats(i).Azimuth, sats(i).Elevation, sats(i).Used)
            End If
      Next
End Sub