diff options
author | Rod Whitby <rod@whitby.id.au> | 2008-08-15 14:17:02 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2008-08-15 14:17:02 +0000 |
commit | 8e490462d79d245bd05c110848479d321148b1d2 (patch) | |
tree | 0e75e05faaf90ee77e08d73a53ea43bcbd8a1637 /packages/tangogps/files/0004-Update-fix-timestamp-from-gypsy.patch | |
parent | e9570b88fa18c49a68b5f44bffd7e2abb101f499 (diff) |
tangogps-fso: Added a patch to set the gps fix timestamp based on the timestamps presented by the gypsy dbus signals
Diffstat (limited to 'packages/tangogps/files/0004-Update-fix-timestamp-from-gypsy.patch')
-rw-r--r-- | packages/tangogps/files/0004-Update-fix-timestamp-from-gypsy.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/tangogps/files/0004-Update-fix-timestamp-from-gypsy.patch b/packages/tangogps/files/0004-Update-fix-timestamp-from-gypsy.patch new file mode 100644 index 0000000000..d427108cc7 --- /dev/null +++ b/packages/tangogps/files/0004-Update-fix-timestamp-from-gypsy.patch @@ -0,0 +1,18 @@ +--- tangogps-0.9.2/src/gps_functions.c~ 2008-08-15 05:54:26.000000000 +0930 ++++ tangogps-0.9.2/src/gps_functions.c 2008-08-15 23:29:19.000000000 +0930 +@@ -649,6 +649,7 @@ + int timestamp, double latitude, double longitude, double altitude, void *user_data) + { + if (gpsdata->valid) { ++ gpsdata->fix.time = timestamp; + gpsdata->fix.latitude = latitude; + gpsdata->fix.longitude = longitude; + gpsdata->fix.altitude = altitude; +@@ -664,6 +665,7 @@ + static void on_course_changed(GypsyCourse *course, GypsyCourseFields fields_set, + int timestamp, double speed, double direction, double climb, void *user_data) + { ++ gpsdata->fix.time = timestamp; + gpsdata->fix.speed = speed/3.6; + gpsdata->fix.track = direction; + } |