Select which GNSS system to use
fewer GNSS systems could decrease time to fix. This patch adds a checkbox for each choice.master
parent
910c3c0b5b
commit
fa07467c42
|
|
@ -1536,7 +1536,7 @@
|
||||||
{
|
{
|
||||||
"id": "assistedgps",
|
"id": "assistedgps",
|
||||||
"name": "Assisted GPS Update (AGPS)",
|
"name": "Assisted GPS Update (AGPS)",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"description": "Downloads assisted GPS (AGPS) data to Bangle.js 1 or 2 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 1 or 2 for faster GPS startup and more accurate fixes. **No app will be installed**, this just uploads new data to the GPS chip.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "RAM",
|
"type": "RAM",
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
0.02: Update to work with Bangle.js 2
|
0.02: Update to work with Bangle.js 2
|
||||||
|
0.03: Select GNSS systems to use for Bangle.js 2
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,31 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="banglejs2-info" style="display:none">
|
<div id="banglejs2-info" style="display:none">
|
||||||
|
<p>Using fewer GNSS systems may decrease the time to fix. (If unsure, select only GPS)</p>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">Select which GNSS system you want.</label>
|
||||||
|
<label class="form-radio">
|
||||||
|
<input type="radio" name="gnss_select" value="1" checked><i class="form-icon"></i> GPS
|
||||||
|
</label>
|
||||||
|
<label class="form-radio">
|
||||||
|
<input type="radio" name="gnss_select" value="2"><i class="form-icon"></i> BDS
|
||||||
|
</label>
|
||||||
|
<label class="form-radio">
|
||||||
|
<input type="radio" name="gnss_select" value="3"><i class="form-icon"></i> GPS+BDS
|
||||||
|
</label>
|
||||||
|
<label class="form-radio">
|
||||||
|
<input type="radio" name="gnss_select" value="4"><i class="form-icon"></i> GLONASS
|
||||||
|
</label>
|
||||||
|
<label class="form-radio">
|
||||||
|
<input type="radio" name="gnss_select" value="5"><i class="form-icon"></i> GPS+GLONASS
|
||||||
|
</label>
|
||||||
|
<label class="form-radio">
|
||||||
|
<input type="radio" name="gnss_select" value="6"><i class="form-icon"></i> BDS+GLONASS
|
||||||
|
</label>
|
||||||
|
<label class="form-radio">
|
||||||
|
<input type="radio" name="gnss_select" value="6"><i class="form-icon"></i> GPS+BDS+GLONASS
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p id="upload-wrap" style="display:none">Click <button id="upload" class="btn btn-primary">Upload</button></p>
|
<p id="upload-wrap" style="display:none">Click <button id="upload" class="btn btn-primary">Upload</button></p>
|
||||||
|
|
||||||
|
|
@ -116,8 +141,13 @@
|
||||||
}
|
}
|
||||||
if (isB2) { // CASIC
|
if (isB2) { // CASIC
|
||||||
|
|
||||||
// Disable BDS, use just GPS (supposedly improve lock time)
|
// Select what GNSS System to use for decreased fix time.
|
||||||
js += `\x10Serial1.println("${CASIC_CHECKSUM("$PCAS04,1")}")\n`; // set GPS-only mode
|
var radios = document.getElementsByName('gnss_select');
|
||||||
|
var gnss_select="1";
|
||||||
|
for (var i=0; i<radios.length; i++)
|
||||||
|
if (radios[i].checked)
|
||||||
|
gnss_select=radios[i].value;
|
||||||
|
js += `\x10Serial1.println("${CASIC_CHECKSUM("$PCAS04,"+gnss_select)}")\n`; // set GNSS mode
|
||||||
// What about:
|
// What about:
|
||||||
// NAV-TIMEUTC (0x01 0x10)
|
// NAV-TIMEUTC (0x01 0x10)
|
||||||
// NAV-PV (0x01 0x03)
|
// NAV-PV (0x01 0x03)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue