You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
long lastTime = 0; //Simple local timer. Limits amount if I2C traffic to Ublox module.
32
-
33
31
voidsetup()
34
32
{
35
33
Serial.begin(115200);
@@ -56,17 +54,19 @@ void setup()
56
54
//L, U1, I1, E1 and X1 values are 8-bit
57
55
//U2, I2, E2 and X2 values are 16-bit
58
56
//U4, I4, R4, E4, X4 values are 32-bit
59
-
57
+
60
58
setValueSuccess &= myGPS.setVal8(0x10930006, 0); //Enable high precision NMEA (value is 8-bit (L / U1))
61
-
//setValueSuccess &= myGPS.setVal16(0x30210001, 100); //Set measurement rate to 100ms (10Hz update rate) (value is 16-bit (U2))
59
+
//setValueSuccess &= myGPS.setVal16(0x30210001, 200); //Set measurement rate to 100ms (10Hz update rate) (value is 16-bit (U2))
60
+
//setValueSuccess &= myGPS.setVal16(0x30210001, 200, 1); //Set rate setting in RAM instead of BBR
62
61
setValueSuccess &= myGPS.setVal16(0x30210001, 1000); //Set measurement rate to 1000ms (1Hz update rate) (value is 16-bit (U2))
63
62
64
63
//Below is the original way we enabled a single RTCM message on the I2C port. After that, we show how to do the same
65
64
//but with multiple messages all in one go using newCfgValset, addCfgValset and sendCfgValset.
66
65
//Original: myGPS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
67
-
66
+
68
67
//Begin with newCfgValset8/16/32
69
68
setValueSuccess &= myGPS.newCfgValset8(0x209102bd, 1); //Set output rate of msg 1005 over the I2C port to once per measurement (value is 8-bit (U1))
69
+
//setValueSuccess &= myGPS.newCfgValset8(0x209102bd, 1, 7); //Set this and the following settings into Flash/RAM/BBR instead of BBR
70
70
//Add extra keyIDs and values using addCfgValset8/16/32
71
71
setValueSuccess &= myGPS.addCfgValset8(0x209102cc, 1); //Set output rate of msg 1077 over the I2C port to once per measurement (value is 8-bit (U1))
72
72
setValueSuccess &= myGPS.addCfgValset8(0x209102d1, 1); //Set output rate of msg 1087 over the I2C port to once per measurement (value is 8-bit (U1))
@@ -75,13 +75,12 @@ void setup()
75
75
// Add the final value and send the packet using sendCfgValset8/16/32
76
76
setValueSuccess &= myGPS.sendCfgValset8(0x20910303, 10); //Set output rate of msg 1230 over the I2C port to once every 10 measurements (value is 8-bit (U1))
0 commit comments