This repository was archived by the owner on Jan 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +24
-7
lines changed
ZED-F9P/Example4_GetPositionAccuracy Expand file tree Collapse file tree 4 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1111 These commands are only accepted by the NEO-M8P module.
1212
1313 Feel like supporting open source hardware?
14- Buy a board from SparkFun! https://www.sparkfun.com/products/14980
14+ Buy a board from SparkFun!
15+ ZED-F9P RTK2: https://www.sparkfun.com/products/15136
16+ NEO-M8P RTK: https://www.sparkfun.com/products/15005
17+ SAM-M8Q: https://www.sparkfun.com/products/15106
1518
1619 Hardware Connections:
1720 Plug a Qwiic cable into the GPS and a BlackBoard
@@ -30,6 +33,8 @@ void setup()
3033 while (!Serial); // Wait for user to open terminal
3134 Serial.println (" Ublox RTCM Enable Example" );
3235
36+ Wire.begin ();
37+
3338 myGPS.begin (Wire); // Connect to the Ublox module using Wire port
3439 if (myGPS.isConnected () == false )
3540 {
Original file line number Diff line number Diff line change 1313 Begin outputting RTCM bytes
1414
1515 Feel like supporting open source hardware?
16- Buy a board from SparkFun! https://www.sparkfun.com/products/14980
16+ Buy a board from SparkFun!
17+ ZED-F9P RTK2: https://www.sparkfun.com/products/15136
18+ NEO-M8P RTK: https://www.sparkfun.com/products/15005
19+ SAM-M8Q: https://www.sparkfun.com/products/15106
1720
1821 Hardware Connections:
1922 Plug a Qwiic cable into the GPS and a BlackBoard
@@ -32,6 +35,8 @@ void setup()
3235 while (!Serial); // Wait for user to open terminal
3336 Serial.println (" Ublox NEO-M8P-2 base station example" );
3437
38+ Wire.begin ();
39+
3540 myGPS.begin (Wire); // Connect to the Ublox module using Wire port
3641 if (myGPS.isConnected () == false )
3742 {
@@ -145,4 +150,3 @@ void SFE_UBLOX_GPS::processRTCM(uint8_t incoming)
145150 if (incoming < 0x10 ) Serial.print (" 0" );
146151 Serial.print (incoming, HEX);
147152}
148-
Original file line number Diff line number Diff line change 1313 Begin outputting RTCM bytes
1414
1515 Feel like supporting open source hardware?
16- Buy a board from SparkFun! https://www.sparkfun.com/products/14980
16+ Buy a board from SparkFun!
17+ ZED-F9P RTK2: https://www.sparkfun.com/products/15136
18+ NEO-M8P RTK: https://www.sparkfun.com/products/15005
19+ SAM-M8Q: https://www.sparkfun.com/products/15106
1720
1821 Hardware Connections:
1922 Plug a Qwiic cable into the GPS and a BlackBoard
@@ -38,6 +41,8 @@ void setup()
3841 while (!Serial); // Wait for user to open terminal
3942 Serial.println (" Ublox GPS I2C Test" );
4043
44+ Wire.begin ();
45+
4146 pinMode (STAT_LED, OUTPUT);
4247 digitalWrite (STAT_LED, LOW);
4348
@@ -178,4 +183,3 @@ void SFE_UBLOX_GPS::processRTCM(uint8_t incoming)
178183 if (incoming < 0x10 ) Serial.print (" 0" );
179184 Serial.print (incoming, HEX);
180185}
181-
Original file line number Diff line number Diff line change 1313 Begin outputting RTCM bytes
1414
1515 Feel like supporting open source hardware?
16- Buy a board from SparkFun! https://www.sparkfun.com/products/14980
16+ Buy a board from SparkFun!
17+ ZED-F9P RTK2: https://www.sparkfun.com/products/15136
18+ NEO-M8P RTK: https://www.sparkfun.com/products/15005
19+ SAM-M8Q: https://www.sparkfun.com/products/15106
1720
1821 Hardware Connections:
1922 Plug a Qwiic cable into the GPS and a BlackBoard
@@ -34,6 +37,8 @@ void setup()
3437 while (!Serial); // Wait for user to open terminal
3538 Serial.println (" Ublox high precision accuracy example" );
3639
40+ Wire.begin ();
41+
3742 myGPS.begin (); // Connect to the Ublox module using Wire port
3843 if (myGPS.isConnected () == false )
3944 {
@@ -42,7 +47,6 @@ void setup()
4247 }
4348
4449 Wire.setClock (400000 ); // Increase I2C clock speed to 400kHz
45-
4650}
4751
4852void loop ()
You can’t perform that action at this time.
0 commit comments