@@ -147,10 +147,6 @@ uint32_t casterResponseWaitStartTime = 0; //Used to detect if caster service tim
147147// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
148148#include < SparkFun_u-blox_GNSS_Arduino_Library.h> // http://librarymanager/All#SparkFun_u-blox_GNSS
149149
150- // Note: There are two prevalent versions of the ZED-F9P: v1.12 (part# -01B) and v1.13 (-02B).
151- // v1.13 causes the RTK LED to not function if SBAS is enabled. To avoid this, we
152- // disable SBAS by default.
153-
154150char zedFirmwareVersion[20 ]; // The string looks like 'HPG 1.12'. Output to debug menu and settings file.
155151uint8_t zedModuleType = PLATFORM_F9P; // Controls which messages are supported and configured
156152
@@ -221,7 +217,7 @@ uint8_t rBuffer[SERIAL_SIZE_RX]; //Buffer for reading from F9P to SPP
221217uint8_t wBuffer[SERIAL_SIZE_RX]; // Buffer for writing from incoming SPP to F9P
222218TaskHandle_t F9PSerialReadTaskHandle = NULL ; // Store handles so that we can kill them if user goes into WiFi NTRIP Server mode
223219TaskHandle_t F9PSerialWriteTaskHandle = NULL ; // Store handles so that we can kill them if user goes into WiFi NTRIP Server mode
224- const uint8_t F9PSerialWriteTaskPriority = 1 ; // Priority, with 3 being the highest, and 0 being the lowest.
220+ const uint8_t F9PSerialWriteTaskPriority = 1 ; // 3 being the highest, and 0 being the lowest.
225221const uint8_t F9PSerialReadTaskPriority = 1 ;
226222
227223TaskHandle_t pinUART2TaskHandle = NULL ; // Dummy task to start UART2 on core 0.
@@ -275,7 +271,7 @@ Button *setupBtn = NULL; //We can't instantiate the buttons here because we don'
275271Button *powerBtn = NULL ;
276272
277273TaskHandle_t ButtonCheckTaskHandle = NULL ;
278- const uint8_t ButtonCheckTaskPriority = 1 ; // Priority, with 3 being the highest, and 0 being the lowest.
274+ const uint8_t ButtonCheckTaskPriority = 1 ; // 3 being the highest, and 0 being the lowest.
279275const int buttonTaskStackSize = 2000 ;
280276
281277const int shutDownButtonTime = 2000 ; // ms press and hold before shutdown
@@ -360,20 +356,19 @@ void setup()
360356 Serial.begin (115200 ); // UART0 for programming and debugging
361357
362358 Wire.begin (); // Start I2C on core 1
363- Wire.setClock (400000 );
359+ // Wire.setClock(400000);
360+ Wire.setClock (100000 );
364361
365362 beginGNSS (); // Connect to GNSS
366363
364+ beginEEPROM (); // Start EEPROM and SD for settings
365+
367366 beginBoard (); // Determine what hardware platform we are running on
368367
369368 beginDisplay (); // Check if an external Qwiic OLED is attached
370369
371370 beginLEDs (); // LED and PWM setup
372371
373- // Start EEPROM and SD for settings, and display for output
374- // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
375- beginEEPROM ();
376-
377372 // eepromErase();
378373
379374 beginSD (); // Test if SD is present
@@ -384,7 +379,6 @@ void setup()
384379 }
385380
386381 loadSettings (); // Attempt to load settings after SD is started so we can read the settings file if available
387- // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
388382
389383 beginUART2 (); // Start UART2 on core 0, used to receive serial from ZED and pass out over SPP
390384
0 commit comments