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",
|
||||||
|
|
@ -2431,4 +2431,4 @@
|
||||||
{"name":"pipe.img","url":"pipe.js","evaluate":true}
|
{"name":"pipe.img","url":"pipe.js","evaluate":true}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -226,7 +226,7 @@ function plotTrack(info) {
|
||||||
g.drawString("N",2,40);
|
g.drawString("N",2,40);
|
||||||
g.setColor(1,1,1);
|
g.setColor(1,1,1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var map = s.readJSON("openstmap.json");
|
var map = s.readJSON("openstmap.json");
|
||||||
map.center = Bangle.project({lat:map.lat,lon:map.lon});
|
map.center = Bangle.project({lat:map.lat,lon:map.lon});
|
||||||
var clat = (info.minLat+info.maxLat)/2;
|
var clat = (info.minLat+info.maxLat)/2;
|
||||||
|
|
|
||||||
|
|
@ -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