-
public final class GpsNavigationMessageStoreGPS Navigation Message Parser
Parses raw GPS navigation message bytes to extract ephemeris and ionospheric parameters. Based on ICD-GPS-200 specification and Google's GPS Tools implementation.
GPS navigation messages are transmitted in 5 subframes:
Subframe 1: Clock parameters, week number, satellite health
Subframe 2: Ephemeris data (part 1)
Subframe 3: Ephemeris data (part 2)
Subframe 4: Ionospheric parameters, almanac
Subframe 5: Almanac data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGpsNavigationMessageStore.Companion
-
Constructor Summary
Constructors Constructor Description GpsNavigationMessageStore()
-
Method Summary
Modifier and Type Method Description final UnitonNavMessageReported(Integer prn, Integer type, Integer submessageId, ByteArray rawData)Process a received GPS navigation message. final List<GpsEphemerisProto>getDecodedEphemerides()Get all fully decoded ephemerides. final GpsEphemerisProtogetEphemerisForSatellite(Integer prn)Get ephemeris for a specific satellite. final GpsNavMessageProtocreateDecodedNavMessage()Create a complete navigation message proto with all available data. -
-
Method Detail
-
onNavMessageReported
final Unit onNavMessageReported(Integer prn, Integer type, Integer submessageId, ByteArray rawData)
Process a received GPS navigation message.
- Parameters:
prn- PRN number (1-32)type- Message type (1 for L1 C/A)submessageId- Subframe ID (1-5)rawData- Raw message bytes (40 bytes for L1 C/A)
-
getDecodedEphemerides
final List<GpsEphemerisProto> getDecodedEphemerides()
Get all fully decoded ephemerides.
-
getEphemerisForSatellite
final GpsEphemerisProto getEphemerisForSatellite(Integer prn)
Get ephemeris for a specific satellite.
-
createDecodedNavMessage
final GpsNavMessageProto createDecodedNavMessage()
Create a complete navigation message proto with all available data.
-
-
-
-