You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
delay(1000); //Wait for ZED-F9P to power up before it can respond to ACK
535
-
if (myGPS.begin() == false)
536
-
{
537
-
Serial.println(F("u-blox GNSS not detected at default I2C address. Hard stop."));
538
-
blinkError(ERROR_NO_I2C);
539
-
}
540
-
}
541
-
542
-
//Check the firmware version of the ZED-F9P. Based on Example21_ModuleInfo.
543
-
// if (myGPS.getModuleInfo(1100) == true) // Try to get the module info
544
-
// {
545
-
// if (strcmp(myGPS.minfo.extension[1], latestZEDFirmware) != 0)
546
-
// {
547
-
// Serial.print("The ZED-F9P appears to have outdated firmware. Found: ");
548
-
// Serial.println(myGPS.minfo.extension[1]);
549
-
// Serial.print("The Surveyor works best with ");
550
-
// Serial.println(latestZEDFirmware);
551
-
// Serial.print("Please upgrade using u-center.");
552
-
// Serial.println();
553
-
// }
554
-
// else
555
-
// {
556
-
// Serial.println("ZED-F9P firmware is current");
557
-
// }
558
-
// }
559
-
560
-
bool response = configureUbloxModule();
561
-
if (response == false)
562
-
{
563
-
//Try once more
564
-
Serial.println(F("Failed to configure module. Trying again."));
565
-
delay(1000);
566
-
response = configureUbloxModule();
567
-
568
-
if (response == false)
569
-
{
570
-
Serial.println(F("Failed to configure module. Hard stop."));
571
-
blinkError(ERROR_GPS_CONFIG_FAIL);
572
-
}
573
-
}
574
-
Serial.println(F("GNSS configuration complete"));
575
-
}
576
-
577
-
//Get MAC, start radio
578
-
voidbeginBT()
579
-
{
580
-
//Get unit MAC address
581
-
esp_read_mac(unitMACAddress, ESP_MAC_WIFI_STA);
582
-
unitMACAddress[5] += 2; //Convert MAC address to Bluetooth MAC (add 2): https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system.html#mac-address
0 commit comments