Copyright | Copyright (C) 2015-2021 Swift Navigation Inc. |
---|---|
License | MIT |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
< Standardized system messages from Swift Navigation devices. >
Synopsis
- data MsgStartup = MsgStartup {}
- data MsgDgnssStatus = MsgDgnssStatus {}
- data MsgHeartbeat = MsgHeartbeat {}
- data SubSystemReport = SubSystemReport {}
- data MsgStatusReport = MsgStatusReport {}
- data StatusJournalItem = StatusJournalItem {}
- data MsgStatusJournal = MsgStatusJournal {}
- data MsgInsStatus = MsgInsStatus {}
- data MsgCsacTelemetry = MsgCsacTelemetry {}
- data MsgCsacTelemetryLabels = MsgCsacTelemetryLabels {}
- data MsgInsUpdates = MsgInsUpdates {}
- data MsgGnssTimeOffset = MsgGnssTimeOffset {}
- data MsgPpsTime = MsgPpsTime {}
- data MsgSensorAidEvent = MsgSensorAidEvent {
- _msgSensorAidEvent_time :: !Word32
- _msgSensorAidEvent_sensor_type :: !Word8
- _msgSensorAidEvent_sensor_id :: !Word16
- _msgSensorAidEvent_sensor_state :: !Word8
- _msgSensorAidEvent_n_available_meas :: !Word8
- _msgSensorAidEvent_n_attempted_meas :: !Word8
- _msgSensorAidEvent_n_accepted_meas :: !Word8
- _msgSensorAidEvent_flags :: !Word32
- data MsgGroupMeta = MsgGroupMeta {}
- msgStartup :: Word16
- msgDgnssStatus :: Word16
- msgHeartbeat :: Word16
- msgStatusReport :: Word16
- msgStatusJournal :: Word16
- msgInsStatus :: Word16
- msgCsacTelemetry :: Word16
- msgCsacTelemetryLabels :: Word16
- msgInsUpdates :: Word16
- msgGnssTimeOffset :: Word16
- msgPpsTime :: Word16
- msgSensorAidEvent :: Word16
- msgGroupMeta :: Word16
- msgStartup_cause :: Lens' MsgStartup Word8
- msgStartup_reserved :: Lens' MsgStartup Word16
- msgStartup_startup_type :: Lens' MsgStartup Word8
- msgDgnssStatus_flags :: Lens' MsgDgnssStatus Word8
- msgDgnssStatus_latency :: Lens' MsgDgnssStatus Word16
- msgDgnssStatus_num_signals :: Lens' MsgDgnssStatus Word8
- msgDgnssStatus_source :: Lens' MsgDgnssStatus Text
- msgHeartbeat_flags :: Iso' MsgHeartbeat Word32
- subSystemReport_component :: Lens' SubSystemReport Word16
- subSystemReport_generic :: Lens' SubSystemReport Word8
- subSystemReport_specific :: Lens' SubSystemReport Word8
- msgStatusReport_reporting_system :: Lens' MsgStatusReport Word16
- msgStatusReport_sbp_version :: Lens' MsgStatusReport Word16
- msgStatusReport_sequence :: Lens' MsgStatusReport Word32
- msgStatusReport_status :: Lens' MsgStatusReport [SubSystemReport]
- msgStatusReport_uptime :: Lens' MsgStatusReport Word32
- statusJournalItem_report :: Lens' StatusJournalItem SubSystemReport
- statusJournalItem_uptime :: Lens' StatusJournalItem Word32
- msgStatusJournal_journal :: Lens' MsgStatusJournal [StatusJournalItem]
- msgStatusJournal_reporting_system :: Lens' MsgStatusJournal Word16
- msgStatusJournal_sbp_version :: Lens' MsgStatusJournal Word16
- msgStatusJournal_sequence_descriptor :: Lens' MsgStatusJournal Word8
- msgStatusJournal_total_status_reports :: Lens' MsgStatusJournal Word32
- msgInsStatus_flags :: Iso' MsgInsStatus Word32
- msgCsacTelemetry_id :: Lens' MsgCsacTelemetry Word8
- msgCsacTelemetry_telemetry :: Lens' MsgCsacTelemetry Text
- msgCsacTelemetryLabels_id :: Lens' MsgCsacTelemetryLabels Word8
- msgCsacTelemetryLabels_telemetry_labels :: Lens' MsgCsacTelemetryLabels Text
- msgInsUpdates_gnsspos :: Lens' MsgInsUpdates Word8
- msgInsUpdates_gnssvel :: Lens' MsgInsUpdates Word8
- msgInsUpdates_nhc :: Lens' MsgInsUpdates Word8
- msgInsUpdates_speed :: Lens' MsgInsUpdates Word8
- msgInsUpdates_tow :: Lens' MsgInsUpdates Word32
- msgInsUpdates_wheelticks :: Lens' MsgInsUpdates Word8
- msgInsUpdates_zerovel :: Lens' MsgInsUpdates Word8
- msgGnssTimeOffset_flags :: Lens' MsgGnssTimeOffset Word8
- msgGnssTimeOffset_microseconds :: Lens' MsgGnssTimeOffset Int16
- msgGnssTimeOffset_milliseconds :: Lens' MsgGnssTimeOffset Int32
- msgGnssTimeOffset_weeks :: Lens' MsgGnssTimeOffset Int16
- msgPpsTime_flags :: Lens' MsgPpsTime Word8
- msgPpsTime_time :: Lens' MsgPpsTime Word64
- msgSensorAidEvent_flags :: Lens' MsgSensorAidEvent Word32
- msgSensorAidEvent_n_accepted_meas :: Lens' MsgSensorAidEvent Word8
- msgSensorAidEvent_n_attempted_meas :: Lens' MsgSensorAidEvent Word8
- msgSensorAidEvent_n_available_meas :: Lens' MsgSensorAidEvent Word8
- msgSensorAidEvent_sensor_id :: Lens' MsgSensorAidEvent Word16
- msgSensorAidEvent_sensor_state :: Lens' MsgSensorAidEvent Word8
- msgSensorAidEvent_sensor_type :: Lens' MsgSensorAidEvent Word8
- msgSensorAidEvent_time :: Lens' MsgSensorAidEvent Word32
- msgGroupMeta_flags :: Lens' MsgGroupMeta Word8
- msgGroupMeta_group_id :: Lens' MsgGroupMeta Word8
- msgGroupMeta_group_msgs :: Lens' MsgGroupMeta [Word16]
- msgGroupMeta_n_group_msgs :: Lens' MsgGroupMeta Word8
Documentation
data MsgStartup Source #
SBP class for message MSG_STARTUP (0xFF00).
The system start-up message is sent once on system start-up. It notifies the host or other attached devices that the system has started and is now ready to respond to commands or configuration requests.
MsgStartup | |
|
Instances
data MsgDgnssStatus Source #
SBP class for message MSG_DGNSS_STATUS (0xFF02).
This message provides information about the receipt of Differential corrections. It is expected to be sent with each receipt of a complete corrections packet.
MsgDgnssStatus | |
|
Instances
data MsgHeartbeat Source #
SBP class for message MSG_HEARTBEAT (0xFFFF).
The heartbeat message is sent periodically to inform the host or other attached devices that the system is running. It is used to monitor system malfunctions. It also contains status flags that indicate to the host the status of the system and whether it is operating correctly. Currently, the expected heartbeat interval is 1 sec.
The system error flag is used to indicate that an error has occurred in the system. To determine the source of the error, the remaining error flags should be inspected.
MsgHeartbeat | |
|
Instances
FromJSON MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System parseJSON :: Value -> Parser MsgHeartbeat # parseJSONList :: Value -> Parser [MsgHeartbeat] # | |
ToJSON MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System toJSON :: MsgHeartbeat -> Value # toEncoding :: MsgHeartbeat -> Encoding # toJSONList :: [MsgHeartbeat] -> Value # toEncodingList :: [MsgHeartbeat] -> Encoding # omitField :: MsgHeartbeat -> Bool # | |
Read MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System readsPrec :: Int -> ReadS MsgHeartbeat # readList :: ReadS [MsgHeartbeat] # | |
Show MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> MsgHeartbeat -> ShowS # show :: MsgHeartbeat -> String # showList :: [MsgHeartbeat] -> ShowS # | |
Binary MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System (==) :: MsgHeartbeat -> MsgHeartbeat -> Bool # (/=) :: MsgHeartbeat -> MsgHeartbeat -> Bool # | |
ToSBP MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System |
data SubSystemReport Source #
SubSystemReport.
Report the general and specific state of a subsystem. If the generic state is reported as initializing, the specific state should be ignored.
SubSystemReport | |
|
Instances
FromJSON SubSystemReport Source # | |
Defined in SwiftNav.SBP.System parseJSON :: Value -> Parser SubSystemReport # parseJSONList :: Value -> Parser [SubSystemReport] # | |
ToJSON SubSystemReport Source # | |
Defined in SwiftNav.SBP.System toJSON :: SubSystemReport -> Value # toEncoding :: SubSystemReport -> Encoding # toJSONList :: [SubSystemReport] -> Value # toEncodingList :: [SubSystemReport] -> Encoding # omitField :: SubSystemReport -> Bool # | |
Read SubSystemReport Source # | |
Defined in SwiftNav.SBP.System | |
Show SubSystemReport Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> SubSystemReport -> ShowS # show :: SubSystemReport -> String # showList :: [SubSystemReport] -> ShowS # | |
Binary SubSystemReport Source # | |
Defined in SwiftNav.SBP.System | |
Eq SubSystemReport Source # | |
Defined in SwiftNav.SBP.System (==) :: SubSystemReport -> SubSystemReport -> Bool # (/=) :: SubSystemReport -> SubSystemReport -> Bool # |
data MsgStatusReport Source #
SBP class for message MSG_STATUS_REPORT (0xFFFE).
The status report is sent periodically to inform the host or other attached devices that the system is running. It is used to monitor system malfunctions. It contains status reports that indicate to the host the status of each subsystem and whether it is operating correctly.
Interpretation of the subsystem specific status code is product dependent, but if the generic status code is initializing, it should be ignored. Refer to product documentation for details.
MsgStatusReport | |
|
Instances
FromJSON MsgStatusReport Source # | |
Defined in SwiftNav.SBP.System parseJSON :: Value -> Parser MsgStatusReport # parseJSONList :: Value -> Parser [MsgStatusReport] # | |
ToJSON MsgStatusReport Source # | |
Defined in SwiftNav.SBP.System toJSON :: MsgStatusReport -> Value # toEncoding :: MsgStatusReport -> Encoding # toJSONList :: [MsgStatusReport] -> Value # toEncodingList :: [MsgStatusReport] -> Encoding # omitField :: MsgStatusReport -> Bool # | |
Read MsgStatusReport Source # | |
Defined in SwiftNav.SBP.System | |
Show MsgStatusReport Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> MsgStatusReport -> ShowS # show :: MsgStatusReport -> String # showList :: [MsgStatusReport] -> ShowS # | |
Binary MsgStatusReport Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgStatusReport Source # | |
Defined in SwiftNav.SBP.System (==) :: MsgStatusReport -> MsgStatusReport -> Bool # (/=) :: MsgStatusReport -> MsgStatusReport -> Bool # | |
ToSBP MsgStatusReport Source # | |
Defined in SwiftNav.SBP.System |
data StatusJournalItem Source #
StatusJournalItem.
Reports the uptime and the state of a subsystem via generic and specific status codes. If the generic state is reported as initializing, the specific state should be ignored.
StatusJournalItem | |
|
Instances
FromJSON StatusJournalItem Source # | |
Defined in SwiftNav.SBP.System | |
ToJSON StatusJournalItem Source # | |
Defined in SwiftNav.SBP.System toJSON :: StatusJournalItem -> Value # toEncoding :: StatusJournalItem -> Encoding # toJSONList :: [StatusJournalItem] -> Value # toEncodingList :: [StatusJournalItem] -> Encoding # omitField :: StatusJournalItem -> Bool # | |
Read StatusJournalItem Source # | |
Defined in SwiftNav.SBP.System | |
Show StatusJournalItem Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> StatusJournalItem -> ShowS # show :: StatusJournalItem -> String # showList :: [StatusJournalItem] -> ShowS # | |
Binary StatusJournalItem Source # | |
Defined in SwiftNav.SBP.System put :: StatusJournalItem -> Put # get :: Get StatusJournalItem # putList :: [StatusJournalItem] -> Put # | |
Eq StatusJournalItem Source # | |
Defined in SwiftNav.SBP.System (==) :: StatusJournalItem -> StatusJournalItem -> Bool # (/=) :: StatusJournalItem -> StatusJournalItem -> Bool # |
data MsgStatusJournal Source #
SBP class for message MSG_STATUS_JOURNAL (0xFFFD).
The status journal message contains past status reports (see MSG_STATUS_REPORT) and functions as a error/event storage for telemetry purposes.
MsgStatusJournal | |
|
Instances
FromJSON MsgStatusJournal Source # | |
Defined in SwiftNav.SBP.System parseJSON :: Value -> Parser MsgStatusJournal # parseJSONList :: Value -> Parser [MsgStatusJournal] # | |
ToJSON MsgStatusJournal Source # | |
Defined in SwiftNav.SBP.System toJSON :: MsgStatusJournal -> Value # toEncoding :: MsgStatusJournal -> Encoding # toJSONList :: [MsgStatusJournal] -> Value # toEncodingList :: [MsgStatusJournal] -> Encoding # omitField :: MsgStatusJournal -> Bool # | |
Read MsgStatusJournal Source # | |
Defined in SwiftNav.SBP.System | |
Show MsgStatusJournal Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> MsgStatusJournal -> ShowS # show :: MsgStatusJournal -> String # showList :: [MsgStatusJournal] -> ShowS # | |
Binary MsgStatusJournal Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgStatusJournal Source # | |
Defined in SwiftNav.SBP.System (==) :: MsgStatusJournal -> MsgStatusJournal -> Bool # (/=) :: MsgStatusJournal -> MsgStatusJournal -> Bool # | |
ToSBP MsgStatusJournal Source # | |
Defined in SwiftNav.SBP.System |
data MsgInsStatus Source #
SBP class for message MSG_INS_STATUS (0xFF03).
The INS status message describes the state of the operation and initialization of the inertial navigation system.
MsgInsStatus | |
|
Instances
FromJSON MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System parseJSON :: Value -> Parser MsgInsStatus # parseJSONList :: Value -> Parser [MsgInsStatus] # | |
ToJSON MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System toJSON :: MsgInsStatus -> Value # toEncoding :: MsgInsStatus -> Encoding # toJSONList :: [MsgInsStatus] -> Value # toEncodingList :: [MsgInsStatus] -> Encoding # omitField :: MsgInsStatus -> Bool # | |
Read MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System readsPrec :: Int -> ReadS MsgInsStatus # readList :: ReadS [MsgInsStatus] # | |
Show MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> MsgInsStatus -> ShowS # show :: MsgInsStatus -> String # showList :: [MsgInsStatus] -> ShowS # | |
Binary MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System (==) :: MsgInsStatus -> MsgInsStatus -> Bool # (/=) :: MsgInsStatus -> MsgInsStatus -> Bool # | |
ToSBP MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System |
data MsgCsacTelemetry Source #
SBP class for message MSG_CSAC_TELEMETRY (0xFF04).
The CSAC telemetry message has an implementation defined telemetry string from a device. It is not produced or available on general Swift Products. It is intended to be a low rate message for status purposes.
MsgCsacTelemetry | |
|
Instances
FromJSON MsgCsacTelemetry Source # | |
Defined in SwiftNav.SBP.System parseJSON :: Value -> Parser MsgCsacTelemetry # parseJSONList :: Value -> Parser [MsgCsacTelemetry] # | |
ToJSON MsgCsacTelemetry Source # | |
Defined in SwiftNav.SBP.System toJSON :: MsgCsacTelemetry -> Value # toEncoding :: MsgCsacTelemetry -> Encoding # toJSONList :: [MsgCsacTelemetry] -> Value # toEncodingList :: [MsgCsacTelemetry] -> Encoding # omitField :: MsgCsacTelemetry -> Bool # | |
Read MsgCsacTelemetry Source # | |
Defined in SwiftNav.SBP.System | |
Show MsgCsacTelemetry Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> MsgCsacTelemetry -> ShowS # show :: MsgCsacTelemetry -> String # showList :: [MsgCsacTelemetry] -> ShowS # | |
Binary MsgCsacTelemetry Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgCsacTelemetry Source # | |
Defined in SwiftNav.SBP.System (==) :: MsgCsacTelemetry -> MsgCsacTelemetry -> Bool # (/=) :: MsgCsacTelemetry -> MsgCsacTelemetry -> Bool # | |
ToSBP MsgCsacTelemetry Source # | |
Defined in SwiftNav.SBP.System |
data MsgCsacTelemetryLabels Source #
SBP class for message MSG_CSAC_TELEMETRY_LABELS (0xFF05).
The CSAC telemetry message provides labels for each member of the string produced by MSG_CSAC_TELEMETRY. It should be provided by a device at a lower rate than the MSG_CSAC_TELEMETRY.
MsgCsacTelemetryLabels | |
|
Instances
FromJSON MsgCsacTelemetryLabels Source # | |
Defined in SwiftNav.SBP.System | |
ToJSON MsgCsacTelemetryLabels Source # | |
Defined in SwiftNav.SBP.System toJSON :: MsgCsacTelemetryLabels -> Value # toEncoding :: MsgCsacTelemetryLabels -> Encoding # toJSONList :: [MsgCsacTelemetryLabels] -> Value # toEncodingList :: [MsgCsacTelemetryLabels] -> Encoding # omitField :: MsgCsacTelemetryLabels -> Bool # | |
Read MsgCsacTelemetryLabels Source # | |
Show MsgCsacTelemetryLabels Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> MsgCsacTelemetryLabels -> ShowS # show :: MsgCsacTelemetryLabels -> String # showList :: [MsgCsacTelemetryLabels] -> ShowS # | |
Binary MsgCsacTelemetryLabels Source # | |
Defined in SwiftNav.SBP.System put :: MsgCsacTelemetryLabels -> Put # get :: Get MsgCsacTelemetryLabels # putList :: [MsgCsacTelemetryLabels] -> Put # | |
Eq MsgCsacTelemetryLabels Source # | |
Defined in SwiftNav.SBP.System | |
ToSBP MsgCsacTelemetryLabels Source # | |
Defined in SwiftNav.SBP.System |
data MsgInsUpdates Source #
SBP class for message MSG_INS_UPDATES (0xFF06).
The INS update status message contains information about executed and rejected INS updates. This message is expected to be extended in the future as new types of measurements are being added.
MsgInsUpdates | |
|
Instances
data MsgGnssTimeOffset Source #
SBP class for message MSG_GNSS_TIME_OFFSET (0xFF07).
The GNSS time offset message contains the information that is needed to translate messages tagged with a local timestamp (e.g. IMU or wheeltick messages) to GNSS time for the sender producing this message.
MsgGnssTimeOffset | |
|
Instances
data MsgPpsTime Source #
SBP class for message MSG_PPS_TIME (0xFF08).
The PPS time message contains the value of the sender's local time in microseconds at the moment a pulse is detected on the PPS input. This is to be used for synchronisation of sensor data sampled with a local timestamp (e.g. IMU or wheeltick messages) where GNSS time is unknown to the sender.
The local time used to timestamp the PPS pulse must be generated by the same clock which is used to timestamp the IMU/wheel sensor data and should follow the same roll-over rules (i.e. it should roll over to zero after 604800 seconds). A separate MSG_PPS_TIME message should be sent for each source of sensor data which uses local timestamping. The sender ID for each of these MSG_PPS_TIME messages should match the sender ID of the respective sensor data.
MsgPpsTime | |
|
Instances
data MsgSensorAidEvent Source #
SBP class for message MSG_SENSOR_AID_EVENT (0xFF09).
This diagnostic message contains state and update status information for all sensors that are being used by the fusion engine. This message will be generated asynchronously to the solution messages and will be emitted anytime a sensor update is being processed.
MsgSensorAidEvent | |
|
Instances
data MsgGroupMeta Source #
SBP class for message MSG_GROUP_META (0xFF0A).
This leading message lists the time metadata of the Solution Group. It also lists the atomic contents (i.e. types of messages included) of the Solution Group.
MsgGroupMeta | |
|
Instances
FromJSON MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System parseJSON :: Value -> Parser MsgGroupMeta # parseJSONList :: Value -> Parser [MsgGroupMeta] # | |
ToJSON MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System toJSON :: MsgGroupMeta -> Value # toEncoding :: MsgGroupMeta -> Encoding # toJSONList :: [MsgGroupMeta] -> Value # toEncodingList :: [MsgGroupMeta] -> Encoding # omitField :: MsgGroupMeta -> Bool # | |
Read MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System readsPrec :: Int -> ReadS MsgGroupMeta # readList :: ReadS [MsgGroupMeta] # | |
Show MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System showsPrec :: Int -> MsgGroupMeta -> ShowS # show :: MsgGroupMeta -> String # showList :: [MsgGroupMeta] -> ShowS # | |
Binary MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System (==) :: MsgGroupMeta -> MsgGroupMeta -> Bool # (/=) :: MsgGroupMeta -> MsgGroupMeta -> Bool # | |
ToSBP MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System |
msgStartup :: Word16 Source #
msgPpsTime :: Word16 Source #