Copyright | Copyright (C) 2015-2021 Swift Navigation Inc. |
---|---|
License | MIT |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
SwiftNav.SBP.System
Description
< 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.
Constructors
MsgStartup | |
Fields
|
Instances
FromJSON MsgStartup Source # | |
Defined in SwiftNav.SBP.System | |
ToJSON MsgStartup Source # | |
Defined in SwiftNav.SBP.System Methods toJSON :: MsgStartup -> Value # toEncoding :: MsgStartup -> Encoding # toJSONList :: [MsgStartup] -> Value # toEncodingList :: [MsgStartup] -> Encoding # omitField :: MsgStartup -> Bool # | |
Read MsgStartup Source # | |
Defined in SwiftNav.SBP.System Methods readsPrec :: Int -> ReadS MsgStartup # readList :: ReadS [MsgStartup] # readPrec :: ReadPrec MsgStartup # readListPrec :: ReadPrec [MsgStartup] # | |
Show MsgStartup Source # | |
Defined in SwiftNav.SBP.System Methods showsPrec :: Int -> MsgStartup -> ShowS # show :: MsgStartup -> String # showList :: [MsgStartup] -> ShowS # | |
Binary MsgStartup Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgStartup Source # | |
Defined in SwiftNav.SBP.System | |
ToSBP MsgStartup Source # | |
Defined in SwiftNav.SBP.System |
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.
Constructors
MsgDgnssStatus | |
Fields
|
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.
Constructors
MsgHeartbeat | |
Fields
|
Instances
FromJSON MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System | |
ToJSON MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System Methods toJSON :: MsgHeartbeat -> Value # toEncoding :: MsgHeartbeat -> Encoding # toJSONList :: [MsgHeartbeat] -> Value # toEncodingList :: [MsgHeartbeat] -> Encoding # omitField :: MsgHeartbeat -> Bool # | |
Read MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System Methods readsPrec :: Int -> ReadS MsgHeartbeat # readList :: ReadS [MsgHeartbeat] # | |
Show MsgHeartbeat Source # | |
Defined in SwiftNav.SBP.System Methods 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 | |
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.
Constructors
SubSystemReport | |
Fields
|
Instances
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.
Constructors
MsgStatusReport | |
Fields
|
Instances
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.
Constructors
StatusJournalItem | |
Fields
|
Instances
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.
Constructors
MsgStatusJournal | |
Fields
|
Instances
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.
Constructors
MsgInsStatus | |
Fields
|
Instances
FromJSON MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System | |
ToJSON MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System Methods toJSON :: MsgInsStatus -> Value # toEncoding :: MsgInsStatus -> Encoding # toJSONList :: [MsgInsStatus] -> Value # toEncodingList :: [MsgInsStatus] -> Encoding # omitField :: MsgInsStatus -> Bool # | |
Read MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System Methods readsPrec :: Int -> ReadS MsgInsStatus # readList :: ReadS [MsgInsStatus] # | |
Show MsgInsStatus Source # | |
Defined in SwiftNav.SBP.System Methods 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 | |
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.
Constructors
MsgCsacTelemetry | |
Fields
|
Instances
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.
Constructors
MsgCsacTelemetryLabels | |
Fields
|
Instances
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.
Constructors
MsgInsUpdates | |
Fields
|
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.
Constructors
MsgGnssTimeOffset | |
Fields
|
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.
Constructors
MsgPpsTime | |
Fields
|
Instances
FromJSON MsgPpsTime Source # | |
Defined in SwiftNav.SBP.System | |
ToJSON MsgPpsTime Source # | |
Defined in SwiftNav.SBP.System Methods toJSON :: MsgPpsTime -> Value # toEncoding :: MsgPpsTime -> Encoding # toJSONList :: [MsgPpsTime] -> Value # toEncodingList :: [MsgPpsTime] -> Encoding # omitField :: MsgPpsTime -> Bool # | |
Read MsgPpsTime Source # | |
Defined in SwiftNav.SBP.System Methods readsPrec :: Int -> ReadS MsgPpsTime # readList :: ReadS [MsgPpsTime] # readPrec :: ReadPrec MsgPpsTime # readListPrec :: ReadPrec [MsgPpsTime] # | |
Show MsgPpsTime Source # | |
Defined in SwiftNav.SBP.System Methods showsPrec :: Int -> MsgPpsTime -> ShowS # show :: MsgPpsTime -> String # showList :: [MsgPpsTime] -> ShowS # | |
Binary MsgPpsTime Source # | |
Defined in SwiftNav.SBP.System | |
Eq MsgPpsTime Source # | |
Defined in SwiftNav.SBP.System | |
ToSBP MsgPpsTime Source # | |
Defined in SwiftNav.SBP.System |
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.
Constructors
MsgSensorAidEvent | |
Fields
|
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.
Constructors
MsgGroupMeta | |
Fields
|
Instances
FromJSON MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System | |
ToJSON MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System Methods toJSON :: MsgGroupMeta -> Value # toEncoding :: MsgGroupMeta -> Encoding # toJSONList :: [MsgGroupMeta] -> Value # toEncodingList :: [MsgGroupMeta] -> Encoding # omitField :: MsgGroupMeta -> Bool # | |
Read MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System Methods readsPrec :: Int -> ReadS MsgGroupMeta # readList :: ReadS [MsgGroupMeta] # | |
Show MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System Methods 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 | |
ToSBP MsgGroupMeta Source # | |
Defined in SwiftNav.SBP.System |
msgStartup :: Word16 Source #
msgPpsTime :: Word16 Source #