Created
August 24, 2020 09:11
-
-
Save DmitriyKorchemkin/17eae72a974c3bbca158aa08ec4eaa31 to your computer and use it in GitHub Desktop.
Simple recording of rinex & raw data using gpsd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
interval=1 | |
hours=24 | |
seconds=$(( ${hours} * 3600 )) | |
n=$(( ${seconds} / ${interval} )) | |
tag=$( date +%Y-%m-%d_%H-%M-%S ) | |
gpsrinex -i ${interval} -n ${n} -f ${tag}.obs & | |
rinex_pid=$! | |
gpspipe -R | pv > ${tag}.ubx & | |
pipe_pid=$! | |
wait ${rinex_pid} | |
kill -SIGINT ${pipe_pid} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment