sbp 4.3.3 → 4.4.0
raw patch · 3 files changed
+38/−38 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- SwiftNav.SBP: SBPMsgGpsLeapSecond :: MsgGpsLeapSecond -> Msg -> SBPMsg
- SwiftNav.SBP: SBPMsgItrf :: MsgItrf -> Msg -> SBPMsg
- SwiftNav.SBP: _SBPMsgGpsLeapSecond :: Prism' SBPMsg (MsgGpsLeapSecond, Msg)
- SwiftNav.SBP: _SBPMsgItrf :: Prism' SBPMsg (MsgItrf, Msg)
- SwiftNav.SBP.Navigation: MsgGpsLeapSecond :: ![Word8] -> MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: MsgItrf :: ![Word8] -> MsgItrf
- SwiftNav.SBP.Navigation: [_msgGpsLeapSecond_stub] :: MsgGpsLeapSecond -> ![Word8]
- SwiftNav.SBP.Navigation: [_msgItrf_stub] :: MsgItrf -> ![Word8]
- SwiftNav.SBP.Navigation: data MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: data MsgItrf
- SwiftNav.SBP.Navigation: instance Data.Aeson.Types.FromJSON.FromJSON SwiftNav.SBP.Navigation.MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: instance Data.Aeson.Types.FromJSON.FromJSON SwiftNav.SBP.Navigation.MsgItrf
- SwiftNav.SBP.Navigation: instance Data.Aeson.Types.ToJSON.ToJSON SwiftNav.SBP.Navigation.MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: instance Data.Aeson.Types.ToJSON.ToJSON SwiftNav.SBP.Navigation.MsgItrf
- SwiftNav.SBP.Navigation: instance Data.Binary.Class.Binary SwiftNav.SBP.Navigation.MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: instance Data.Binary.Class.Binary SwiftNav.SBP.Navigation.MsgItrf
- SwiftNav.SBP.Navigation: instance GHC.Classes.Eq SwiftNav.SBP.Navigation.MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: instance GHC.Classes.Eq SwiftNav.SBP.Navigation.MsgItrf
- SwiftNav.SBP.Navigation: instance GHC.Read.Read SwiftNav.SBP.Navigation.MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: instance GHC.Read.Read SwiftNav.SBP.Navigation.MsgItrf
- SwiftNav.SBP.Navigation: instance GHC.Show.Show SwiftNav.SBP.Navigation.MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: instance GHC.Show.Show SwiftNav.SBP.Navigation.MsgItrf
- SwiftNav.SBP.Navigation: instance SwiftNav.SBP.Types.ToSBP SwiftNav.SBP.Navigation.MsgGpsLeapSecond
- SwiftNav.SBP.Navigation: instance SwiftNav.SBP.Types.ToSBP SwiftNav.SBP.Navigation.MsgItrf
- SwiftNav.SBP.Navigation: msgGpsLeapSecond :: Word16
- SwiftNav.SBP.Navigation: msgGpsLeapSecond_stub :: Iso' MsgGpsLeapSecond [Word8]
- SwiftNav.SBP.Navigation: msgItrf :: Word16
- SwiftNav.SBP.Navigation: msgItrf_stub :: Iso' MsgItrf [Word8]
+ SwiftNav.SBP: SBPMsgReferenceFrameParam :: MsgReferenceFrameParam -> Msg -> SBPMsg
+ SwiftNav.SBP: SBPMsgUtcLeapSecond :: MsgUtcLeapSecond -> Msg -> SBPMsg
+ SwiftNav.SBP: _SBPMsgReferenceFrameParam :: Prism' SBPMsg (MsgReferenceFrameParam, Msg)
+ SwiftNav.SBP: _SBPMsgUtcLeapSecond :: Prism' SBPMsg (MsgUtcLeapSecond, Msg)
+ SwiftNav.SBP.Navigation: MsgReferenceFrameParam :: ![Word8] -> MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: MsgUtcLeapSecond :: ![Word8] -> MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: [_msgReferenceFrameParam_stub] :: MsgReferenceFrameParam -> ![Word8]
+ SwiftNav.SBP.Navigation: [_msgUtcLeapSecond_stub] :: MsgUtcLeapSecond -> ![Word8]
+ SwiftNav.SBP.Navigation: data MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: data MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: instance Data.Aeson.Types.FromJSON.FromJSON SwiftNav.SBP.Navigation.MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: instance Data.Aeson.Types.FromJSON.FromJSON SwiftNav.SBP.Navigation.MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: instance Data.Aeson.Types.ToJSON.ToJSON SwiftNav.SBP.Navigation.MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: instance Data.Aeson.Types.ToJSON.ToJSON SwiftNav.SBP.Navigation.MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: instance Data.Binary.Class.Binary SwiftNav.SBP.Navigation.MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: instance Data.Binary.Class.Binary SwiftNav.SBP.Navigation.MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: instance GHC.Classes.Eq SwiftNav.SBP.Navigation.MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: instance GHC.Classes.Eq SwiftNav.SBP.Navigation.MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: instance GHC.Read.Read SwiftNav.SBP.Navigation.MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: instance GHC.Read.Read SwiftNav.SBP.Navigation.MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: instance GHC.Show.Show SwiftNav.SBP.Navigation.MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: instance GHC.Show.Show SwiftNav.SBP.Navigation.MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: instance SwiftNav.SBP.Types.ToSBP SwiftNav.SBP.Navigation.MsgReferenceFrameParam
+ SwiftNav.SBP.Navigation: instance SwiftNav.SBP.Types.ToSBP SwiftNav.SBP.Navigation.MsgUtcLeapSecond
+ SwiftNav.SBP.Navigation: msgReferenceFrameParam :: Word16
+ SwiftNav.SBP.Navigation: msgReferenceFrameParam_stub :: Iso' MsgReferenceFrameParam [Word8]
+ SwiftNav.SBP.Navigation: msgUtcLeapSecond :: Word16
+ SwiftNav.SBP.Navigation: msgUtcLeapSecond_stub :: Iso' MsgUtcLeapSecond [Word8]
Files
- sbp.cabal +1/−1
- src/SwiftNav/SBP/Msg.hs +12/−12
- src/SwiftNav/SBP/Navigation.hs +25/−25
sbp.cabal view
@@ -1,5 +1,5 @@ name: sbp-version: 4.3.3+version: 4.4.0 synopsis: SwiftNav's SBP Library homepage: https://github.com/swift-nav/libsbp license: MIT
@@ -132,7 +132,6 @@ | SBPMsgGloBiases MsgGloBiases Msg | SBPMsgGnssCapb MsgGnssCapb Msg | SBPMsgGnssTimeOffset MsgGnssTimeOffset Msg- | SBPMsgGpsLeapSecond MsgGpsLeapSecond Msg | SBPMsgGpsTime MsgGpsTime Msg | SBPMsgGpsTimeDepA MsgGpsTimeDepA Msg | SBPMsgGpsTimeGnss MsgGpsTimeGnss Msg@@ -148,7 +147,6 @@ | SBPMsgInsStatus MsgInsStatus Msg | SBPMsgInsUpdates MsgInsUpdates Msg | SBPMsgIono MsgIono Msg- | SBPMsgItrf MsgItrf Msg | SBPMsgLinuxCpuState MsgLinuxCpuState Msg | SBPMsgLinuxCpuStateDepA MsgLinuxCpuStateDepA Msg | SBPMsgLinuxMemState MsgLinuxMemState Msg@@ -195,6 +193,7 @@ | SBPMsgPrintDep MsgPrintDep Msg | SBPMsgProtectionLevel MsgProtectionLevel Msg | SBPMsgProtectionLevelDepA MsgProtectionLevelDepA Msg+ | SBPMsgReferenceFrameParam MsgReferenceFrameParam Msg | SBPMsgReset MsgReset Msg | SBPMsgResetDep MsgResetDep Msg | SBPMsgResetFilters MsgResetFilters Msg@@ -260,6 +259,7 @@ | SBPMsgUartState MsgUartState Msg | SBPMsgUartStateDepa MsgUartStateDepa Msg | SBPMsgUserData MsgUserData Msg+ | SBPMsgUtcLeapSecond MsgUtcLeapSecond Msg | SBPMsgUtcTime MsgUtcTime Msg | SBPMsgUtcTimeGnss MsgUtcTimeGnss Msg | SBPMsgVelBody MsgVelBody Msg@@ -364,7 +364,6 @@ | _msgSBPType == msgGloBiases = SBPMsgGloBiases (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgGnssCapb = SBPMsgGnssCapb (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgGnssTimeOffset = SBPMsgGnssTimeOffset (decode (fromStrict (unBytes _msgSBPPayload))) m- | _msgSBPType == msgGpsLeapSecond = SBPMsgGpsLeapSecond (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgGpsTime = SBPMsgGpsTime (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgGpsTimeDepA = SBPMsgGpsTimeDepA (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgGpsTimeGnss = SBPMsgGpsTimeGnss (decode (fromStrict (unBytes _msgSBPPayload))) m@@ -380,7 +379,6 @@ | _msgSBPType == msgInsStatus = SBPMsgInsStatus (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgInsUpdates = SBPMsgInsUpdates (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgIono = SBPMsgIono (decode (fromStrict (unBytes _msgSBPPayload))) m- | _msgSBPType == msgItrf = SBPMsgItrf (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgLinuxCpuState = SBPMsgLinuxCpuState (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgLinuxCpuStateDepA = SBPMsgLinuxCpuStateDepA (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgLinuxMemState = SBPMsgLinuxMemState (decode (fromStrict (unBytes _msgSBPPayload))) m@@ -427,6 +425,7 @@ | _msgSBPType == msgPrintDep = SBPMsgPrintDep (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgProtectionLevel = SBPMsgProtectionLevel (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgProtectionLevelDepA = SBPMsgProtectionLevelDepA (decode (fromStrict (unBytes _msgSBPPayload))) m+ | _msgSBPType == msgReferenceFrameParam = SBPMsgReferenceFrameParam (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgReset = SBPMsgReset (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgResetDep = SBPMsgResetDep (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgResetFilters = SBPMsgResetFilters (decode (fromStrict (unBytes _msgSBPPayload))) m@@ -492,6 +491,7 @@ | _msgSBPType == msgUartState = SBPMsgUartState (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgUartStateDepa = SBPMsgUartStateDepa (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgUserData = SBPMsgUserData (decode (fromStrict (unBytes _msgSBPPayload))) m+ | _msgSBPType == msgUtcLeapSecond = SBPMsgUtcLeapSecond (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgUtcTime = SBPMsgUtcTime (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgUtcTimeGnss = SBPMsgUtcTimeGnss (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgVelBody = SBPMsgVelBody (decode (fromStrict (unBytes _msgSBPPayload))) m@@ -588,7 +588,6 @@ encoder (SBPMsgGloBiases _ m) = put m encoder (SBPMsgGnssCapb _ m) = put m encoder (SBPMsgGnssTimeOffset _ m) = put m- encoder (SBPMsgGpsLeapSecond _ m) = put m encoder (SBPMsgGpsTime _ m) = put m encoder (SBPMsgGpsTimeDepA _ m) = put m encoder (SBPMsgGpsTimeGnss _ m) = put m@@ -604,7 +603,6 @@ encoder (SBPMsgInsStatus _ m) = put m encoder (SBPMsgInsUpdates _ m) = put m encoder (SBPMsgIono _ m) = put m- encoder (SBPMsgItrf _ m) = put m encoder (SBPMsgLinuxCpuState _ m) = put m encoder (SBPMsgLinuxCpuStateDepA _ m) = put m encoder (SBPMsgLinuxMemState _ m) = put m@@ -651,6 +649,7 @@ encoder (SBPMsgPrintDep _ m) = put m encoder (SBPMsgProtectionLevel _ m) = put m encoder (SBPMsgProtectionLevelDepA _ m) = put m+ encoder (SBPMsgReferenceFrameParam _ m) = put m encoder (SBPMsgReset _ m) = put m encoder (SBPMsgResetDep _ m) = put m encoder (SBPMsgResetFilters _ m) = put m@@ -716,6 +715,7 @@ encoder (SBPMsgUartState _ m) = put m encoder (SBPMsgUartStateDepa _ m) = put m encoder (SBPMsgUserData _ m) = put m+ encoder (SBPMsgUtcLeapSecond _ m) = put m encoder (SBPMsgUtcTime _ m) = put m encoder (SBPMsgUtcTimeGnss _ m) = put m encoder (SBPMsgVelBody _ m) = put m@@ -816,7 +816,6 @@ | msgType == msgGloBiases = SBPMsgGloBiases <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgGnssCapb = SBPMsgGnssCapb <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgGnssTimeOffset = SBPMsgGnssTimeOffset <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj- | msgType == msgGpsLeapSecond = SBPMsgGpsLeapSecond <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgGpsTime = SBPMsgGpsTime <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgGpsTimeDepA = SBPMsgGpsTimeDepA <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgGpsTimeGnss = SBPMsgGpsTimeGnss <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj@@ -832,7 +831,6 @@ | msgType == msgInsStatus = SBPMsgInsStatus <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgInsUpdates = SBPMsgInsUpdates <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgIono = SBPMsgIono <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj- | msgType == msgItrf = SBPMsgItrf <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgLinuxCpuState = SBPMsgLinuxCpuState <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgLinuxCpuStateDepA = SBPMsgLinuxCpuStateDepA <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgLinuxMemState = SBPMsgLinuxMemState <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj@@ -879,6 +877,7 @@ | msgType == msgPrintDep = SBPMsgPrintDep <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgProtectionLevel = SBPMsgProtectionLevel <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgProtectionLevelDepA = SBPMsgProtectionLevelDepA <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj+ | msgType == msgReferenceFrameParam = SBPMsgReferenceFrameParam <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgReset = SBPMsgReset <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgResetDep = SBPMsgResetDep <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgResetFilters = SBPMsgResetFilters <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj@@ -944,6 +943,7 @@ | msgType == msgUartState = SBPMsgUartState <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgUartStateDepa = SBPMsgUartStateDepa <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgUserData = SBPMsgUserData <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj+ | msgType == msgUtcLeapSecond = SBPMsgUtcLeapSecond <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgUtcTime = SBPMsgUtcTime <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgUtcTimeGnss = SBPMsgUtcTimeGnss <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgVelBody = SBPMsgVelBody <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj@@ -1045,7 +1045,6 @@ toJSON (SBPMsgGloBiases n m) = toJSON n <<>> toJSON m toJSON (SBPMsgGnssCapb n m) = toJSON n <<>> toJSON m toJSON (SBPMsgGnssTimeOffset n m) = toJSON n <<>> toJSON m- toJSON (SBPMsgGpsLeapSecond n m) = toJSON n <<>> toJSON m toJSON (SBPMsgGpsTime n m) = toJSON n <<>> toJSON m toJSON (SBPMsgGpsTimeDepA n m) = toJSON n <<>> toJSON m toJSON (SBPMsgGpsTimeGnss n m) = toJSON n <<>> toJSON m@@ -1061,7 +1060,6 @@ toJSON (SBPMsgInsStatus n m) = toJSON n <<>> toJSON m toJSON (SBPMsgInsUpdates n m) = toJSON n <<>> toJSON m toJSON (SBPMsgIono n m) = toJSON n <<>> toJSON m- toJSON (SBPMsgItrf n m) = toJSON n <<>> toJSON m toJSON (SBPMsgLinuxCpuState n m) = toJSON n <<>> toJSON m toJSON (SBPMsgLinuxCpuStateDepA n m) = toJSON n <<>> toJSON m toJSON (SBPMsgLinuxMemState n m) = toJSON n <<>> toJSON m@@ -1108,6 +1106,7 @@ toJSON (SBPMsgPrintDep n m) = toJSON n <<>> toJSON m toJSON (SBPMsgProtectionLevel n m) = toJSON n <<>> toJSON m toJSON (SBPMsgProtectionLevelDepA n m) = toJSON n <<>> toJSON m+ toJSON (SBPMsgReferenceFrameParam n m) = toJSON n <<>> toJSON m toJSON (SBPMsgReset n m) = toJSON n <<>> toJSON m toJSON (SBPMsgResetDep _ m) = toJSON m toJSON (SBPMsgResetFilters n m) = toJSON n <<>> toJSON m@@ -1173,6 +1172,7 @@ toJSON (SBPMsgUartState n m) = toJSON n <<>> toJSON m toJSON (SBPMsgUartStateDepa n m) = toJSON n <<>> toJSON m toJSON (SBPMsgUserData n m) = toJSON n <<>> toJSON m+ toJSON (SBPMsgUtcLeapSecond n m) = toJSON n <<>> toJSON m toJSON (SBPMsgUtcTime n m) = toJSON n <<>> toJSON m toJSON (SBPMsgUtcTimeGnss n m) = toJSON n <<>> toJSON m toJSON (SBPMsgVelBody n m) = toJSON n <<>> toJSON m@@ -1268,7 +1268,6 @@ msg f (SBPMsgGloBiases n m) = SBPMsgGloBiases n <$> f m msg f (SBPMsgGnssCapb n m) = SBPMsgGnssCapb n <$> f m msg f (SBPMsgGnssTimeOffset n m) = SBPMsgGnssTimeOffset n <$> f m- msg f (SBPMsgGpsLeapSecond n m) = SBPMsgGpsLeapSecond n <$> f m msg f (SBPMsgGpsTime n m) = SBPMsgGpsTime n <$> f m msg f (SBPMsgGpsTimeDepA n m) = SBPMsgGpsTimeDepA n <$> f m msg f (SBPMsgGpsTimeGnss n m) = SBPMsgGpsTimeGnss n <$> f m@@ -1284,7 +1283,6 @@ msg f (SBPMsgInsStatus n m) = SBPMsgInsStatus n <$> f m msg f (SBPMsgInsUpdates n m) = SBPMsgInsUpdates n <$> f m msg f (SBPMsgIono n m) = SBPMsgIono n <$> f m- msg f (SBPMsgItrf n m) = SBPMsgItrf n <$> f m msg f (SBPMsgLinuxCpuState n m) = SBPMsgLinuxCpuState n <$> f m msg f (SBPMsgLinuxCpuStateDepA n m) = SBPMsgLinuxCpuStateDepA n <$> f m msg f (SBPMsgLinuxMemState n m) = SBPMsgLinuxMemState n <$> f m@@ -1331,6 +1329,7 @@ msg f (SBPMsgPrintDep n m) = SBPMsgPrintDep n <$> f m msg f (SBPMsgProtectionLevel n m) = SBPMsgProtectionLevel n <$> f m msg f (SBPMsgProtectionLevelDepA n m) = SBPMsgProtectionLevelDepA n <$> f m+ msg f (SBPMsgReferenceFrameParam n m) = SBPMsgReferenceFrameParam n <$> f m msg f (SBPMsgReset n m) = SBPMsgReset n <$> f m msg f (SBPMsgResetDep n m) = SBPMsgResetDep n <$> f m msg f (SBPMsgResetFilters n m) = SBPMsgResetFilters n <$> f m@@ -1396,6 +1395,7 @@ msg f (SBPMsgUartState n m) = SBPMsgUartState n <$> f m msg f (SBPMsgUartStateDepa n m) = SBPMsgUartStateDepa n <$> f m msg f (SBPMsgUserData n m) = SBPMsgUserData n <$> f m+ msg f (SBPMsgUtcLeapSecond n m) = SBPMsgUtcLeapSecond n <$> f m msg f (SBPMsgUtcTime n m) = SBPMsgUtcTime n <$> f m msg f (SBPMsgUtcTimeGnss n m) = SBPMsgUtcTimeGnss n <$> f m msg f (SBPMsgVelBody n m) = SBPMsgVelBody n <$> f m
@@ -2304,44 +2304,44 @@ $(makeJSON "_msgProtectionLevel_" ''MsgProtectionLevel) $(makeLenses ''MsgProtectionLevel) -msgGpsLeapSecond :: Word16-msgGpsLeapSecond = 0x023A+msgUtcLeapSecond :: Word16+msgUtcLeapSecond = 0x023A --- | SBP class for message MSG_GPS_LEAP_SECOND (0x023A).+-- | SBP class for message MSG_UTC_LEAP_SECOND (0x023A). -- -- Emulates the GPS CNAV message, reserving bytes for future broadcast of the -- drift model parameters.-data MsgGpsLeapSecond = MsgGpsLeapSecond- { _msgGpsLeapSecond_stub :: ![Word8]+data MsgUtcLeapSecond = MsgUtcLeapSecond+ { _msgUtcLeapSecond_stub :: ![Word8] } deriving ( Show, Read, Eq ) -instance Binary MsgGpsLeapSecond where+instance Binary MsgUtcLeapSecond where get = do- _msgGpsLeapSecond_stub <- whileM (not <$> isEmpty) getWord8- pure MsgGpsLeapSecond {..}+ _msgUtcLeapSecond_stub <- whileM (not <$> isEmpty) getWord8+ pure MsgUtcLeapSecond {..} - put MsgGpsLeapSecond {..} = do- mapM_ putWord8 _msgGpsLeapSecond_stub+ put MsgUtcLeapSecond {..} = do+ mapM_ putWord8 _msgUtcLeapSecond_stub -$(makeSBP 'msgGpsLeapSecond ''MsgGpsLeapSecond)-$(makeJSON "_msgGpsLeapSecond_" ''MsgGpsLeapSecond)-$(makeLenses ''MsgGpsLeapSecond)+$(makeSBP 'msgUtcLeapSecond ''MsgUtcLeapSecond)+$(makeJSON "_msgUtcLeapSecond_" ''MsgUtcLeapSecond)+$(makeLenses ''MsgUtcLeapSecond) -msgItrf :: Word16-msgItrf = 0x0244+msgReferenceFrameParam :: Word16+msgReferenceFrameParam = 0x0244 -data MsgItrf = MsgItrf- { _msgItrf_stub :: ![Word8]+data MsgReferenceFrameParam = MsgReferenceFrameParam+ { _msgReferenceFrameParam_stub :: ![Word8] } deriving ( Show, Read, Eq ) -instance Binary MsgItrf where+instance Binary MsgReferenceFrameParam where get = do- _msgItrf_stub <- whileM (not <$> isEmpty) getWord8- pure MsgItrf {..}+ _msgReferenceFrameParam_stub <- whileM (not <$> isEmpty) getWord8+ pure MsgReferenceFrameParam {..} - put MsgItrf {..} = do- mapM_ putWord8 _msgItrf_stub+ put MsgReferenceFrameParam {..} = do+ mapM_ putWord8 _msgReferenceFrameParam_stub -$(makeSBP 'msgItrf ''MsgItrf)-$(makeJSON "_msgItrf_" ''MsgItrf)-$(makeLenses ''MsgItrf)+$(makeSBP 'msgReferenceFrameParam ''MsgReferenceFrameParam)+$(makeJSON "_msgReferenceFrameParam_" ''MsgReferenceFrameParam)+$(makeLenses ''MsgReferenceFrameParam)