Skip to content

Commit 5028c7c

Browse files
committed
Add example number to the output line
1 parent 87168f8 commit 5028c7c

File tree

15 files changed

+30
-30
lines changed

15 files changed

+30
-30
lines changed

examples/Example10_SetRoverMode/Example10_SetRoverMode.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void setup()
3535
Serial.begin(115200);
3636
delay(250);
3737
Serial.println();
38-
Serial.println("SparkFun UM980 Example");
38+
Serial.println("SparkFun UM980 Example 10");
3939

4040
//We must start the serial port before using it in the library
4141
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

examples/Example11_UsbNMEA/Example11_UsbNMEA.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup()
3737
Serial.begin(115200);
3838
delay(250);
3939
Serial.println();
40-
Serial.println("SparkFun UM980 Example");
40+
Serial.println("SparkFun UM980 Example 11");
4141

4242
//We must start the serial port before using it in the library
4343
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

examples/Example12_FactoryReset/Example12_FactoryReset.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup()
3737
Serial.begin(115200);
3838
delay(250);
3939
Serial.println();
40-
Serial.println("SparkFun UM980 Example");
40+
Serial.println("SparkFun UM980 Example 12");
4141

4242
//We must start the serial port before using it in the library
4343
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);
@@ -142,4 +142,4 @@ void loop()
142142

143143
Serial.println();
144144
}
145-
}
145+
}

examples/Example13_SendCommand/Example13_SendCommand.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
While the SparkFun UM980 Arduino library covers most of the features in the UM980, there
99
may be a special command that is needed but not supported. This sketch shows how to send commands direct.
10-
10+
1111
These examples are targeted for an ESP32 platform but any platform that has multiple
1212
serial UARTs should be compatible.
1313
@@ -37,7 +37,7 @@ void setup()
3737
Serial.begin(115200);
3838
delay(250);
3939
Serial.println();
40-
Serial.println("SparkFun UM980 Example");
40+
Serial.println("SparkFun UM980 Example 13");
4141

4242
//We must start the serial port before using it in the library
4343
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

examples/Example14_SetPPS/Example14_SetPPS.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Date: October 2nd, 2023
66
License: MIT. Please see LICENSE.md for more information.
77
8-
The example shows how to configure the PPS signal's width, frequency, and polarity.
8+
The example shows how to configure the PPS signal's width, frequency, and polarity.
99
These examples are targeted for an ESP32 platform but any platform that has multiple
1010
serial UARTs should be compatible.
1111
@@ -35,7 +35,7 @@ void setup()
3535
Serial.begin(115200);
3636
delay(250);
3737
Serial.println();
38-
Serial.println("SparkFun UM980 Example");
38+
Serial.println("SparkFun UM980 Example 14");
3939

4040
//We must start the serial port before using it in the library
4141
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

examples/Example16_PollForValidRTCMMessages/Example16_PollForValidRTCMMessages.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
Note: Almost any ESP32 pins can be used for serial.
2323
Connect a dual or triband GNSS antenna: https://www.sparkfun.com/products/21801
2424
25-
68 RTCM messages supported: 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1009, 1010, 1011, 1012, 1013, 1019, 1020,
26-
1033, 1042, 1044, 1045, 1046, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1081, 1082, 1083, 1084, 1085, 1086, 1087,
27-
1091, 1092, 1093, 1094, 1095, 1096, 1097, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1111, 1112, 1113, 1114, 1115,
28-
1116, 1117, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1131, 1132, 1133, 1134, 1135, 1136, 1137,
25+
68 RTCM messages supported: 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1009, 1010, 1011, 1012, 1013, 1019, 1020,
26+
1033, 1042, 1044, 1045, 1046, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1081, 1082, 1083, 1084, 1085, 1086, 1087,
27+
1091, 1092, 1093, 1094, 1095, 1096, 1097, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1111, 1112, 1113, 1114, 1115,
28+
1116, 1117, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1131, 1132, 1133, 1134, 1135, 1136, 1137,
2929
3030
*/
3131

@@ -43,7 +43,7 @@ void setup()
4343
Serial.begin(115200);
4444
delay(250);
4545
Serial.println();
46-
Serial.println("SparkFun UM980 Example");
46+
Serial.println("SparkFun UM980 Example 16");
4747

4848
//We must start the serial port before using it in the library
4949
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);
@@ -71,7 +71,7 @@ void setup()
7171
{
7272
char myTest[100] = {0};
7373
sprintf(myTest, "RTCM%04d", x);
74-
if(myGNSS.setNMEAPortMessage(myTest, comPort, 1) == true)
74+
if(myGNSS.setNMEAPortMessage(myTest, comPort, 1) == true)
7575
supportedMessages[supportedCount++] = x;
7676
delay(delayBetweenCommands);
7777
}

examples/Example1_PositionVelocityTime/Example1_PositionVelocityTime.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup()
4040
Serial.begin(115200);
4141
delay(250);
4242
Serial.println();
43-
Serial.println("SparkFun UM980 Example");
43+
Serial.println("SparkFun UM980 Example 1");
4444

4545
//We must start the serial port before using it in the library
4646
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

examples/Example2_DirectConnect/Example2_DirectConnect.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
while still connected to the Arduino. Good for viewing raw output from a given command.
1111
1212
For example, type CONFIG to see the module's current configuration response.
13-
13+
1414
These examples are targeted for an ESP32 platform but any platform that has multiple
1515
serial UARTs should be compatible.
1616
@@ -40,7 +40,7 @@ void setup()
4040
Serial.begin(115200);
4141
delay(250);
4242
Serial.println();
43-
Serial.println("SparkFun UM980 Example");
43+
Serial.println("SparkFun UM980 Example 2");
4444

4545
//We must start the serial port before using it in the library
4646
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

examples/Example3_ECEFAndStats/Example3_ECEFAndStats.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
License: MIT. Please see LICENSE.md for more information.
77
88
This example shows how to query a UM980 GNSS module for signal quality and fix type.
9-
These examples are targeted for an ESP32 platform but any platform that has multiple
9+
These examples are targeted for an ESP32 platform but any platform that has multiple
1010
serial UARTs should be compatible.
1111
1212
Feel like supporting open source hardware?
@@ -37,7 +37,7 @@ void setup()
3737
Serial.begin(115200);
3838
delay(250);
3939
Serial.println();
40-
Serial.println("SparkFun UM980 Example");
40+
Serial.println("SparkFun UM980 Example 3");
4141

4242
//We must start the serial port before using it in the library
4343
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);
@@ -168,4 +168,4 @@ void loop()
168168

169169
Serial.println();
170170
}
171-
}
171+
}

examples/Example4_EnableNMEA_5Hz/Example4_EnableNMEA_5Hz.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup()
3737
Serial.begin(115200);
3838
delay(250);
3939
Serial.println();
40-
Serial.println("SparkFun UM980 Example");
40+
Serial.println("SparkFun UM980 Example 4");
4141

4242
//We must start the serial port before using it in the library
4343
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);
@@ -82,4 +82,4 @@ void loop()
8282
//Read in NMEA from the UM980
8383
while (SerialGNSS.available())
8484
Serial.write(SerialGNSS.read());
85-
}
85+
}

examples/Example5_EnableRTCM/Example5_EnableRTCM.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void setup()
5858
Serial.begin(115200);
5959
delay(250);
6060
Serial.println();
61-
Serial.println("SparkFun UM980 Example");
61+
Serial.println("SparkFun UM980 Example 5");
6262

6363
// Initialize the parser
6464
parse = sempBeginParser(parserTable, parserCount,

examples/Example6_AverageBase/Example6_AverageBase.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void setup()
3636
Serial.begin(115200);
3737
delay(250);
3838
Serial.println();
39-
Serial.println("SparkFun UM980 Example");
39+
Serial.println("SparkFun UM980 Example 6");
4040

4141
//We must start the serial port before using it in the library
4242
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);
@@ -93,4 +93,4 @@ void loop()
9393
//RTCM is binary and will appear as random characters.
9494
while (SerialGNSS.available())
9595
Serial.write(SerialGNSS.read());
96-
}
96+
}

examples/Example7_FixedBase/Example7_FixedBase.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void setup()
3535
Serial.begin(115200);
3636
delay(250);
3737
Serial.println();
38-
Serial.println("SparkFun UM980 Example");
38+
Serial.println("SparkFun UM980 Example 7");
3939

4040
//We must start the serial port before using it in the library
4141
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);
@@ -90,4 +90,4 @@ void loop()
9090
//Read in NMEA and RTCM from the UM980
9191
while (SerialGNSS.available())
9292
Serial.write(SerialGNSS.read());
93-
}
93+
}

examples/Example8_SetConstellations/Example8_SetConstellations.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void setup()
3636
Serial.begin(115200);
3737
delay(250);
3838
Serial.println();
39-
Serial.println("SparkFun UM980 Example");
39+
Serial.println("SparkFun UM980 Example 8");
4040

4141
//We must start the serial port before using it in the library
4242
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

examples/Example9_SignalElevation/Example9_SignalElevation.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Date: October 2nd, 2023
66
License: MIT. Please see LICENSE.md for more information.
77
8-
This example shows how set the Elevation Angle and minimum CN0 value required from a
8+
This example shows how set the Elevation Angle and minimum CN0 value required from a
99
satellite to be included in the position calculation.
1010
These examples are targeted for an ESP32 platform but any platform that has multiple
1111
serial UARTs should be compatible.
@@ -36,7 +36,7 @@ void setup()
3636
Serial.begin(115200);
3737
delay(250);
3838
Serial.println();
39-
Serial.println("SparkFun UM980 Example");
39+
Serial.println("SparkFun UM980 Example 9");
4040

4141
//We must start the serial port before using it in the library
4242
SerialGNSS.begin(115200, SERIAL_8N1, pin_UART1_RX, pin_UART1_TX);

0 commit comments

Comments
 (0)