gpsrec: Increase GPS recording accuracy by one decimal place

Ensure default time period is 10

from http://forum.espruino.com/conversations/356940
master
Gordon Williams 2020-11-25 09:06:40 +00:00
parent 4517f202b1
commit b3e35726c5
4 changed files with 9 additions and 7 deletions

View File

@ -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",

View File

@ -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

View File

@ -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;

View File

@ -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");
}