gnss-converters 0.3.5 → 0.3.6
raw patch · 2 files changed
+5/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
gnss-converters.cabal view
@@ -1,5 +1,5 @@ name: gnss-converters-version: 0.3.5+version: 0.3.6 cabal-version: >=1.22 build-type: Simple license: BSD3
src/Data/RTCM3/SBP/Observations.hs view
@@ -97,12 +97,12 @@ -- | GLONASS L1 carrier-phase unit. -- glonassL1CarrierPhase :: Word8 -> Double-glonassL1CarrierPhase fcn = 1.602e9 + fromIntegral fcn * 0.5625e6+glonassL1CarrierPhase fcn = 1.602e9 + (fromIntegral fcn - 7) * 0.5625e6 -- | GLONASS L2 carrier-phase unit. -- glonassL2CarrierPhase :: Word8 -> Double-glonassL2CarrierPhase fcn = 1.246e9 + fromIntegral fcn * 0.4375e6+glonassL2CarrierPhase fcn = 1.246e9 + (fromIntegral fcn - 7) * 0.4375e6 -- | Convert to SBP carrier-phase measurement. --@@ -163,7 +163,7 @@ -- glonassL1Signal :: Word8 -> Bool -> Maybe GnssSignal16 glonassL1Signal sat code- | code = Nothing+ | code = Just $ GnssSignal16 sat 3 | otherwise = Just $ GnssSignal16 sat 3 -- | Map GLONASS L2 signal.@@ -171,7 +171,7 @@ glonassL2Signal :: Word8 -> Word8 -> Maybe GnssSignal16 glonassL2Signal sat code | code == 0 = Just $ GnssSignal16 sat 4- | otherwise = Nothing+ | otherwise = Just $ GnssSignal16 sat 4 -- | Max GPS satellite number. --