diff options
Diffstat (limited to 'recipes-navigation')
-rw-r--r--[-rwxr-xr-x] | recipes-navigation/gpsd/gpsd/gpsd-default | 12 | ||||
-rw-r--r-- | recipes-navigation/gpsd/gpsd_3.20.bb | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default index f6995fc..edd7b08 100755..100644 --- a/recipes-navigation/gpsd/gpsd/gpsd-default +++ b/recipes-navigation/gpsd/gpsd/gpsd-default @@ -53,18 +53,18 @@ GPSFIX="3" # function SET_GPS_SPEED { -((maxtries = 10)) +((maxtries = 20)) if [[ $(cat /run/config/gpstype) == u-blox ]] ; then - while ((maxtries > 0)) ; do + while ((maxtries >= 0)) ; do ((maxtries--)) - if ((maxtries == 5)) ; then + if ((maxtries % 5 == 0)) ; then # Not going well, so reset the GPS. logger -s -t 'gpsd info' -p daemon.alert "u-blox is unresponsive, so reset it" + # reset tty to defaults + stty -F "$GPS_LINE" '500:5:cbd:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0' mts-io-sysfs store gnss-reset 0 - usleep 50 + usleep 100 mts-io-sysfs store gnss-reset 1 - # Reset terminal to defaults - stty -F "$GPS_LINE" '500:5:cbd:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0' sleep 5 fi # Reset at maxtries == 5 diff --git a/recipes-navigation/gpsd/gpsd_3.20.bb b/recipes-navigation/gpsd/gpsd_3.20.bb index 514ca0a..0e78417 100644 --- a/recipes-navigation/gpsd/gpsd_3.20.bb +++ b/recipes-navigation/gpsd/gpsd_3.20.bb @@ -4,7 +4,7 @@ LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=01764c35ae34d9521944bb6ab312af53" DEPENDS = "dbus dbus-glib ncurses python3 libusb1 chrpath-replacement-native pps-tools" PROVIDES = "virtual/gpsd" -PR="m7" +PR="m8" #TODO #the recipe generates python2 pygps package for Atmel based devices and python3 pygps package for TI based devices. |