Skip to content

Commit 4629ffe

Browse files
committed
Add comments
1 parent 6253b5f commit 4629ffe

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Firmware/RTK_Everywhere/GNSS_Mosaic.ino

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void GNSS_MOSAIC::begin()
213213
// (The comments on the schematic are out of date)
214214

215215
// On Facet Flex (with Ethernet):
216-
// COM1 is connected to the ESP32 UART1
216+
// COM1 is connected to the ESP32 UART1 for: Encapsulated RTCMv3 + SBF + NMEA
217217
// COM2 is connected to LoRa or 4-pin JST (switched by SW4)
218218
// COM3 can be connected to ESP32 UART2 (switched by SW3)
219219
// COM4 can be connected to ESP32 UART0 (switched by SW2)
@@ -222,7 +222,7 @@ void GNSS_MOSAIC::begin()
222222
// The alternative would be to add a 'hybrid' parser to the SEMP which can disambiguate SBF and NMEA
223223

224224
// On Facet Flex (with IMU):
225-
// COM1 is connected to the ESP32 UART1
225+
// COM1 is connected to the ESP32 UART1 for: Encapsulated RTCMv3 + SBF + NMEA
226226
// COM2 is connected to LoRa or 4-pin JST (switched by SW4)
227227
// COM3 is N/C (ESP32 UART2 is connected to the IMU)
228228
// COM4 TX provides data to the IMU - TODO
@@ -298,7 +298,7 @@ void GNSS_MOSAIC::begin()
298298

299299
// Set COM2 (Radio) and COM3 (Data) baud rates
300300
setRadioBaudRate(settings.radioPortBaud);
301-
setDataBaudRate(settings.dataPortBaud);
301+
setDataBaudRate(settings.dataPortBaud); // Probably redundant
302302

303303
// Set COM2 (Radio) protocol(s)
304304
setCorrRadioExtPort(settings.enableExtCorrRadio, true); // Force the setting
@@ -307,7 +307,7 @@ void GNSS_MOSAIC::begin()
307307

308308
_receiverSetupSeen = false;
309309

310-
_isBlocking = true;
310+
_isBlocking = true; // Suspend the GNSS read task
311311

312312
// Request the ReceiverSetup SBF block using a esoc (exeSBFOnce) command on COM1
313313
String request = "esoc,COM1,ReceiverSetup\n\r";
@@ -2093,7 +2093,7 @@ bool GNSS_MOSAIC::sendAndWaitForIdle(HardwareSerial *serialPort, const char *mes
20932093
if (strlen(reply) == 0) // Reply can't be zero-length
20942094
return false;
20952095

2096-
_isBlocking = true;
2096+
_isBlocking = true; // Suspend the GNSS read task
20972097

20982098
if (debug && (settings.debugGnss == true) && (!inMainMenu))
20992099
systemPrintf("sendAndWaitForIdle: sending %s\r\n", message);
@@ -2206,7 +2206,7 @@ bool GNSS_MOSAIC::sendWithResponse(HardwareSerial *serialPort, const char *messa
22062206
if (strlen(reply) == 0) // Reply can't be zero-length
22072207
return false;
22082208

2209-
_isBlocking = true;
2209+
_isBlocking = true; // Suspend the GNSS read task
22102210

22112211
if ((settings.debugGnss == true) && (!inMainMenu))
22122212
systemPrintf("sendWithResponse: sending %s\r\n", message);
@@ -2887,6 +2887,8 @@ void GNSS_MOSAIC::updateSD()
28872887
//----------------------------------------
28882888
void GNSS_MOSAIC::waitSBFReceiverSetup(HardwareSerial *serialPort, unsigned long timeout)
28892889
{
2890+
// Note: _isBlocking should be set externally - if needed
2891+
28902892
SEMP_PARSE_ROUTINE const sbfParserTable[] = {sempSbfPreamble};
28912893
const int sbfParserCount = sizeof(sbfParserTable) / sizeof(sbfParserTable[0]);
28922894
const char *const sbfParserNames[] = {

0 commit comments

Comments
 (0)