https://github.com/swift-nav/labsat
Haskell wrapper for the LabSat3 Wideband TCP interface
https://github.com/swift-nav/labsat
gnss gps haskell
Last synced: 3 months ago
JSON representation
Haskell wrapper for the LabSat3 Wideband TCP interface
- Host: GitHub
- URL: https://github.com/swift-nav/labsat
- Owner: swift-nav
- License: mit
- Created: 2018-02-21T08:36:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-03T18:39:49.000Z (over 4 years ago)
- Last Synced: 2025-10-02T04:51:32.287Z (3 months ago)
- Topics: gnss, gps, haskell
- Language: Haskell
- Homepage:
- Size: 43.9 KB
- Stars: 5
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LabSat TCP Wrapper
[](https://github.com/swift-nav/labsat/actions/workflows/ci.yaml)
This package provides a wrapper around the LabSat3 Wideband TCP interface. It is tested against
LabSat3 Wideband Firmware 1.0.260 FPGA 33.
[LabSat 3 Wideband Documentation](https://racelogic.support/03LabSat_GPS_Simulators/LabSat_3_Wideband)
## Usage
Run the `help` command:
```
λ: runCtx $ runStatsCtx $ testCommand $ help
HelpCommands ["HELP","TYPE","FIND","MON","PLAY","REC","ATTN","CONF","MEDIA","MUTE"]
```
Run the `info` command:
```
λ: runCtx $ runStatsCtx $ testCommand $ info
Info ["Labsat Wideband","Serial 57082 ","Firmware 1.0.260","FPGA 33","IP 10.1.22.44","Battery not connected","TCXO-0x7b7f"]
```
Run the play command, check status, stop playing, check status:
```
λ: runCtx $ runStatsCtx $ testCommand $ play "File_001"
"File_001"
λ: runCtx $ runStatsCtx $ testCommand $ playStatus
Playing "File_001" "00:00:03"
λ: runCtx $ runStatsCtx $ testCommand $ playStop
"OK"
λ: runCtx $ runStatsCtx $ testCommand $ playStatus
PlayIdle
```
## Development
`labsat` has a shakefile/makefile to provide convenience around building and testing:
# build the project's libraries, executables, and tests
$ ./Shakefile.hs build-tests-error
# test the project
$ ./Shakefile.hs tests-error
# start an interpreter with the project's libraries, executables, and tests loaded
$ ./Shakefile.hs ghci-tests
# install the project's executables
$ ./Shakefile.hs install
# clean the project
$ ./Shakefile.hs clean
# lint the project source code
$ ./Shakefile.hs lint
## Dependencies
To build, install, run, and test `labsat`, the following dependencies may be required:
+ [stack][stack]
## LICENSE
Copyright © 2018 Swift Navigation
Distributed under MIT License. See [LICENSE](LICENSE)
[stack]: https://docs.haskellstack.org/en/stable/README/#how-to-install