Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit d13d4c4

Browse files
committed
Add setAutoPVT to keywords. Removing particle header from example 13. White space changes as well.
1 parent a88ebac commit d13d4c4

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

Diff for: examples/Example13_AutoPVT/Example13_AutoPVT.ino

+23-24
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
Open the serial monitor at 115200 baud to see the output
2727
*/
2828

29-
#include <Particle.h>
3029
#include <Wire.h> //Needed for I2C to GPS
3130

3231
#include <SparkFun_Ublox_Arduino_Library.h> //http://librarymanager/All#SparkFun_Ublox_GPS
@@ -54,31 +53,31 @@ void setup()
5453

5554
void loop()
5655
{
57-
// Calling getPVT returns true if there actually is a fresh navigation solution available.
58-
if (myGPS.getPVT())
59-
{
60-
Serial.println();
61-
long latitude = myGPS.getLatitude();
62-
Serial.print(F("Lat: "));
63-
Serial.print(latitude);
56+
// Calling getPVT returns true if there actually is a fresh navigation solution available.
57+
if (myGPS.getPVT())
58+
{
59+
Serial.println();
60+
long latitude = myGPS.getLatitude();
61+
Serial.print(F("Lat: "));
62+
Serial.print(latitude);
6463

65-
long longitude = myGPS.getLongitude();
66-
Serial.print(F(" Long: "));
67-
Serial.print(longitude);
68-
Serial.print(F(" (degrees * 10^-7)"));
64+
long longitude = myGPS.getLongitude();
65+
Serial.print(F(" Long: "));
66+
Serial.print(longitude);
67+
Serial.print(F(" (degrees * 10^-7)"));
6968

70-
long altitude = myGPS.getAltitude();
71-
Serial.print(F(" Alt: "));
72-
Serial.print(altitude);
73-
Serial.print(F(" (mm)"));
69+
long altitude = myGPS.getAltitude();
70+
Serial.print(F(" Alt: "));
71+
Serial.print(altitude);
72+
Serial.print(F(" (mm)"));
7473

75-
byte SIV = myGPS.getSIV();
76-
Serial.print(F(" SIV: "));
77-
Serial.print(SIV);
74+
byte SIV = myGPS.getSIV();
75+
Serial.print(F(" SIV: "));
76+
Serial.print(SIV);
7877

79-
Serial.println();
80-
} else {
81-
Serial.print(".");
82-
delay(50);
83-
}
78+
Serial.println();
79+
} else {
80+
Serial.print(".");
81+
delay(50);
82+
}
8483
}

Diff for: keywords.txt

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ getProtocolVersionLow KEYWORD2
7979
getProtocolVersion KEYWORD2
8080

8181
factoryReset KEYWORD2
82+
setAutoPVT KEYWORD2
8283

8384
#######################################
8485
# Constants (LITERAL1)

0 commit comments

Comments
 (0)