Skip to content

Commit 53ffd19

Browse files
committed
Update RTK_Surveyor.ino
1 parent a06a453 commit 53ffd19

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,33 @@ uint8_t zedModuleType = PLATFORM_F9P; //Controls which messages are supported an
232232

233233
SFE_UBLOX_GNSS_SUPER theGNSS;
234234

235+
//// Use Michael's lock/unlock methods to prevent the UART2 task from calling checkUblox during a sendCommand and waitForResponse.
236+
//// Also prevents pushRawData from being called too.
237+
//class SFE_UBLOX_GNSS_SUPER_DERIVED : public SFE_UBLOX_GNSS_SUPER
238+
//{
239+
//public:
240+
// volatile bool _iAmLocked = false;
241+
// bool lock(void)
242+
// {
243+
// if (_iAmLocked)
244+
// {
245+
// unsigned long startTime = millis();
246+
// while (_iAmLocked && (millis() < (startTime + 2200)))
247+
// delay(1); // YIELD
248+
// if (_iAmLocked)
249+
// return false;
250+
// }
251+
// _iAmLocked = true;
252+
// return true;
253+
// }
254+
// void unlock(void)
255+
// {
256+
// _iAmLocked = false;
257+
// }
258+
//};
259+
//
260+
//SFE_UBLOX_GNSS_SUPER_DERIVED theGNSS;
261+
235262
//These globals are updated regularly via the storePVTdata callback
236263
bool pvtUpdated = false;
237264
double latitude;

0 commit comments

Comments
 (0)