From e6a3375000d23acf01437e0866ecd6888bb6bd07 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 11 Jul 2021 19:25:45 -0400 Subject: [PATCH] try 5 packets --- gpsd/gps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsd/gps.sh b/gpsd/gps.sh index 22251b4f..6f873d77 100755 --- a/gpsd/gps.sh +++ b/gpsd/gps.sh @@ -2,9 +2,9 @@ # from https://stackoverflow.com/questions/28387230/use-gpsd-or-cgps-to-return-latitude-and-longitude-then-quit -x=$(gpspipe -w -n 10 |grep lon|tail -n1|cut -d":" -f9|cut -d"," -f1) -y=$(gpspipe -w -n 10 |grep lon|tail -n1|cut -d":" -f10|cut -d"," -f1) -a=$(gpspipe -w -n 10 |grep lon|tail -n1|cut -d":" -f11|cut -d"," -f1) +x=$(gpspipe -w -n 5 |grep lon|tail -n1|cut -d":" -f9|cut -d"," -f1) +y=$(gpspipe -w -n 5 |grep lon|tail -n1|cut -d":" -f10|cut -d"," -f1) +a=$(gpspipe -w -n 5 |grep lon|tail -n1|cut -d":" -f11|cut -d"," -f1) echo "$x $y $a"