Copyright | Copyright (C) 2016 Swift Navigation Inc. |
---|---|
License | LGPL-3 |
Maintainer | Swift Navigation <dev@swiftnav.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
SBP GPS Time helpers.
- gpsLeapMillis :: Integer
- hourMillis :: Integer
- dayMillis :: Integer
- weekMillis :: Integer
- toWn :: UTCTime -> Word16
- toStartDate :: (Integer, Int, Int) -> (Integer, Int, Int)
- toTow :: UTCTime -> Word32
- currentGpsTime :: MonadIO m => m GpsTime
- rolloverTowGpsTime :: Word32 -> GpsTime -> GpsTime
- rolloverEpochGpsTime :: Word32 -> GpsTime -> GpsTime
Documentation
gpsLeapMillis :: Integer Source #
Number of GPS leap milliseconds.
hourMillis :: Integer Source #
Hour milliseconds
weekMillis :: Integer Source #
Number of milliseconds in a week.
toStartDate :: (Integer, Int, Int) -> (Integer, Int, Int) Source #
Find the start of the GPS week, which is Sunday.
currentGpsTime :: MonadIO m => m GpsTime Source #
Get current GPS time.
rolloverTowGpsTime :: Word32 -> GpsTime -> GpsTime Source #
Update GPS time based on GPS time of week, handling week rollover.
rolloverEpochGpsTime :: Word32 -> GpsTime -> GpsTime Source #
Update GPS time based on GLONASS epoch, handling week rollover.