summaryrefslogtreecommitdiff
path: root/gps_emu
diff options
context:
space:
mode:
Diffstat (limited to 'gps_emu')
-rwxr-xr-xgps_emu19
1 files changed, 19 insertions, 0 deletions
diff --git a/gps_emu b/gps_emu
new file mode 100755
index 00000000..f2eef3e5
--- /dev/null
+++ b/gps_emu
@@ -0,0 +1,19 @@
+#! /bin/bash
+function send_data
+{
+ trap send_data SIGPIPE
+ while read line
+ do
+ case $line in
+ \$GPVTG*)
+ echo "$line"
+ sleep 1
+ ;;
+ *)
+ echo "$line"
+ ;;
+ esac
+ done <track/all.txt >/tmp/gpsdata
+}
+
+send_data