gpsrec: Increase GPS recording accuracy by one decimal place
Ensure default time period is 10 from http://forum.espruino.com/conversations/356940master
parent
4517f202b1
commit
b3e35726c5
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue