From 8623bc7f968fdd671cd94e16ccffdfcc9c0e355b Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Tue, 22 Sep 2020 09:07:53 +0100 Subject: [PATCH] more GPS config --- testing/GPS-comms.js | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/testing/GPS-comms.js b/testing/GPS-comms.js index b9c2c645c..38d4c9dde 100644 --- a/testing/GPS-comms.js +++ b/testing/GPS-comms.js @@ -1,13 +1,13 @@ Bangle.setGPSPower(1) //Bangle.on('GPS',print); -/*Bangle.on('GPS-raw',function (d) { +Bangle.on('GPS-raw',function (d) { if (d[0]=="$") return; if (d.startsWith("\xB5\x62\x05\x01")) print("GPS ACK"); else if (d.startsWith("\xB5\x62\x05\x00")) print("GPS NACK"); // 181,98 sync chars else print("GPS",E.toUint8Array(d).join(",")); -});*/ +}); function writeGPScmd(cmd) { var d = [0xB5,0x62]; // sync chars d = d.concat(cmd); @@ -91,9 +91,9 @@ function getUBX_CFG_GNSS() { for (var i=4;i