diff --git a/apps.json b/apps.json index 2d8701cc8..959f1afc8 100644 --- a/apps.json +++ b/apps.json @@ -362,7 +362,7 @@ { "id": "gpsrec", "name": "GPS Recorder", "icon": "app.png", - "version":"0.12", + "version":"0.13", "interface": "interface.html", "description": "Application that allows you to record a GPS track. Can run in background", "tags": "tool,outdoors,gps,widget", @@ -2431,4 +2431,4 @@ {"name":"pipe.img","url":"pipe.js","evaluate":true} ] } -] \ No newline at end of file +] diff --git a/apps/gpsrec/ChangeLog b/apps/gpsrec/ChangeLog index b002e9914..01788e08f 100644 --- a/apps/gpsrec/ChangeLog +++ b/apps/gpsrec/ChangeLog @@ -13,3 +13,5 @@ 0.10: Can now graph altitude & speed 0.11: Ensure we don't turn GPS off if it was previously on (eg from another app/widget) 0.12: Add option to plot on top of OpenStreetMap tiles (when they are installed on the watch) +0.13: Increase GPS recording accuracy by one decimal place + Ensure default time period is 10 diff --git a/apps/gpsrec/app.js b/apps/gpsrec/app.js index 7b01786a5..c7de29d32 100644 --- a/apps/gpsrec/app.js +++ b/apps/gpsrec/app.js @@ -37,9 +37,9 @@ function showMainMenu() { } }, 'Time Period': { - value: settings.period||1, + value: settings.period||10, min: 1, - max: 60, + max: 120, step: 1, onchange: v => { settings.recording = false; @@ -226,7 +226,7 @@ function plotTrack(info) { g.drawString("N",2,40); g.setColor(1,1,1); } - else { + else { var map = s.readJSON("openstmap.json"); map.center = Bangle.project({lat:map.lat,lon:map.lon}); var clat = (info.minLat+info.maxLat)/2; diff --git a/apps/gpsrec/widget.js b/apps/gpsrec/widget.js index 3d110f500..f07c9e43a 100644 --- a/apps/gpsrec/widget.js +++ b/apps/gpsrec/widget.js @@ -31,8 +31,8 @@ periodCtr = settings.period; if (gpsTrack) gpsTrack.write([ fix.time.getTime(), - fix.lat.toFixed(5), - fix.lon.toFixed(5), + fix.lat.toFixed(6), + fix.lon.toFixed(6), fix.alt ].join(",")+"\n"); }