Assisted GPS now changes the GPS output format since new Bangle.js 2 don't seem to have it set by default: https://github.com/espruino/Espruino/issues/2354
parent
4c51cd29d8
commit
2f084b4c8a
|
|
@ -3,3 +3,4 @@
|
||||||
0.03: Select GNSS systems to use for Bangle.js 2
|
0.03: Select GNSS systems to use for Bangle.js 2
|
||||||
0.04: Now turns GPS off after upload
|
0.04: Now turns GPS off after upload
|
||||||
0.05: Fix regression in 0.04 that caused AGPS data not to get loaded
|
0.05: Fix regression in 0.04 that caused AGPS data not to get loaded
|
||||||
|
0.06: Auto-set GPS output sentences - newer Bangle.js 2 don't include RMC (GPS direction + time) by default
|
||||||
|
|
@ -147,7 +147,10 @@
|
||||||
for (var i=0; i<radios.length; i++)
|
for (var i=0; i<radios.length; i++)
|
||||||
if (radios[i].checked)
|
if (radios[i].checked)
|
||||||
gnss_select=radios[i].value;
|
gnss_select=radios[i].value;
|
||||||
|
js += `\x10var t=getTime()+0.5;while (getTime()<t);\n`; // This is nasty - but we just wait here until the GPS has had time to boot
|
||||||
js += `\x10Serial1.println("${CASIC_CHECKSUM("$PCAS04,"+gnss_select)}")\n`; // set GNSS mode
|
js += `\x10Serial1.println("${CASIC_CHECKSUM("$PCAS04,"+gnss_select)}")\n`; // set GNSS mode
|
||||||
|
js += `\x10Serial1.println("${CASIC_CHECKSUM("$PCAS03,1,0,0,1,1,0,0,0")}")\n`; // enable GGA,GSV,RMC packets (new Bangle.js 2 GPS firmwares don't include RMC by default!)
|
||||||
|
// Serial1.println("$PCAS06,0*1B") gets the current firmware version
|
||||||
// What about:
|
// What about:
|
||||||
// NAV-TIMEUTC (0x01 0x10)
|
// NAV-TIMEUTC (0x01 0x10)
|
||||||
// NAV-PV (0x01 0x03)
|
// NAV-PV (0x01 0x03)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "assistedgps",
|
"id": "assistedgps",
|
||||||
"name": "Assisted GPS Updater (AGPS)",
|
"name": "Assisted GPS Updater (AGPS)",
|
||||||
"shortName": "AGPS",
|
"shortName": "AGPS",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "Downloads assisted GPS (AGPS) data to Bangle.js for faster GPS startup and more accurate fixes. **No app will be installed**, this just uploads new data to the GPS chip.",
|
"description": "Downloads assisted GPS (AGPS) data to Bangle.js for faster GPS startup and more accurate fixes. **No app will be installed**, this just uploads new data to the GPS chip.",
|
||||||
"sortorder": -1,
|
"sortorder": -1,
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue