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",
|
{ "id": "gpsrec",
|
||||||
"name": "GPS Recorder",
|
"name": "GPS Recorder",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version":"0.12",
|
"version":"0.13",
|
||||||
"interface": "interface.html",
|
"interface": "interface.html",
|
||||||
"description": "Application that allows you to record a GPS track. Can run in background",
|
"description": "Application that allows you to record a GPS track. Can run in background",
|
||||||
"tags": "tool,outdoors,gps,widget",
|
"tags": "tool,outdoors,gps,widget",
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,5 @@
|
||||||
0.10: Can now graph altitude & speed
|
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.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.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': {
|
'Time Period': {
|
||||||
value: settings.period||1,
|
value: settings.period||10,
|
||||||
min: 1,
|
min: 1,
|
||||||
max: 60,
|
max: 120,
|
||||||
step: 1,
|
step: 1,
|
||||||
onchange: v => {
|
onchange: v => {
|
||||||
settings.recording = false;
|
settings.recording = false;
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,8 @@
|
||||||
periodCtr = settings.period;
|
periodCtr = settings.period;
|
||||||
if (gpsTrack) gpsTrack.write([
|
if (gpsTrack) gpsTrack.write([
|
||||||
fix.time.getTime(),
|
fix.time.getTime(),
|
||||||
fix.lat.toFixed(5),
|
fix.lat.toFixed(6),
|
||||||
fix.lon.toFixed(5),
|
fix.lon.toFixed(6),
|
||||||
fix.alt
|
fix.alt
|
||||||
].join(",")+"\n");
|
].join(",")+"\n");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue