diff options
author | John Klug <john.klug@multitech.com> | 2019-05-22 13:44:38 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-05-22 13:44:38 -0500 |
commit | 066eabf3dc9ec218f16fd988fd2ce2e18cb88c33 (patch) | |
tree | 7eac7c4008d77585575e369edcc299abee6ce5cd /recipes-navigation/gpsd/gpsd | |
parent | a3287995c52c3d3d7ea70180a6e23492fc645863 (diff) | |
download | meta-mlinux-066eabf3dc9ec218f16fd988fd2ce2e18cb88c33.tar.gz meta-mlinux-066eabf3dc9ec218f16fd988fd2ce2e18cb88c33.tar.bz2 meta-mlinux-066eabf3dc9ec218f16fd988fd2ce2e18cb88c33.zip |
Add MTHS u-blox initialization to mLinux 5
Diffstat (limited to 'recipes-navigation/gpsd/gpsd')
-rw-r--r-- | recipes-navigation/gpsd/gpsd/gpsd-default | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default index 7dd5372..fa67fd1 100644 --- a/recipes-navigation/gpsd/gpsd/gpsd-default +++ b/recipes-navigation/gpsd/gpsd/gpsd-default @@ -52,6 +52,14 @@ GPSFIX="3" # should not need to change the baud rate. # function SET_GPS_SPEED { +if [[ $(mts-io-sysfs show hw-version) =~ ^MTHS- ]] ; then + if gpsctl -t 'u-blox' -D 5 -x '\x06\x41\x00\x00\x03\x1F\x90\x47\x4F\xB1\xFF\xFF\xEA\xFF' $GPS_LINE ; then + logger -s -t 'gpsd info' -p daemon.info "GPS LNA set high" + else + logger -s -t 'gpsd info' -p daemon.alert "ERROR: GPS LNA not set" + fi +fi + if [[ $(cat /run/config/gpstype) == u-blox ]] ; then # Set the baud rate. Works better with ntp at a higher baud rate. if ! gpsctl -T 20 -t 'u-blox' -s $GPS_BAUD -b -f $GPS_LINE ; then |