Skip to content

Commit a301c33

Browse files
authored
Merge branch 'release_candidate' into AddTorchX2
2 parents 86fa208 + 1cae242 commit a301c33

23 files changed

+338
-130
lines changed

.github/workflows/compile-rtk-everywhere.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
"SdFat"@2.1.1
8787
"SparkFun LIS2DH12 Arduino Library"@1.0.3
8888
"SparkFun MAX1704x Fuel Gauge Arduino Library"@1.0.4
89-
"SparkFun u-blox GNSS v3"@3.1.8
89+
"SparkFun u-blox GNSS v3"@3.1.10
9090
"SparkFun Qwiic OLED Arduino Library"@1.0.13
9191
9292
"SparkFun Extensible Message Parser"@1.0.4
@@ -97,7 +97,7 @@ jobs:
9797
"SparkFun UM980 Triband RTK GNSS Arduino Library"@1.0.5
9898
"SparkFun LG290P Quadband RTK GNSS Arduino Library"@1.0.8
9999
"SparkFun I2C Expander Arduino Library"@1.0.1
100-
"SparkFun Apple Accessory Arduino Library"@1.0.1
100+
"SparkFun Apple Accessory Arduino Library"@3.0.8
101101
"SparkFun Authentication Coprocessor Arduino Library"@1.0.0
102102
"SparkFun Toolkit"@1.0.6
103103

.github/workflows/non-release-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
"SdFat"@2.1.1
8787
"SparkFun LIS2DH12 Arduino Library"@1.0.3
8888
"SparkFun MAX1704x Fuel Gauge Arduino Library"@1.0.4
89-
"SparkFun u-blox GNSS v3"@3.1.8
89+
"SparkFun u-blox GNSS v3"@3.1.10
9090
"SparkFun Qwiic OLED Arduino Library"@1.0.13
9191
9292
"SparkFun Extensible Message Parser"@1.0.4
@@ -97,7 +97,7 @@ jobs:
9797
"SparkFun UM980 Triband RTK GNSS Arduino Library"@1.0.5
9898
"SparkFun LG290P Quadband RTK GNSS Arduino Library"@1.0.8
9999
"SparkFun I2C Expander Arduino Library"@1.0.1
100-
"SparkFun Apple Accessory Arduino Library"@1.0.1
100+
"SparkFun Apple Accessory Arduino Library"@3.0.8
101101
"SparkFun Authentication Coprocessor Arduino Library"@1.0.0
102102
"SparkFun Toolkit"@1.0.6
103103

Firmware/RTK_Everywhere/AuthCoPro.ino

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ void beginAuthCoPro(TwoWire *i2cBus)
5555
latestGPGGA = (char *)rtkMalloc(latestNmeaMaxLen, "AuthCoPro");
5656
latestGPRMC = (char *)rtkMalloc(latestNmeaMaxLen, "AuthCoPro");
5757
latestGPGST = (char *)rtkMalloc(latestNmeaMaxLen, "AuthCoPro");
58-
appleAccessory->setNMEApointers(latestGPGGA, latestGPRMC, latestGPGST);
58+
latestGPVTG = (char *)rtkMalloc(latestNmeaMaxLen, "AuthCoPro");
59+
appleAccessory->setNMEApointers(latestGPGGA, latestGPRMC, latestGPGST, latestGPVTG);
60+
61+
// Pass the pointer for additional GSA / GSV EA Session data
62+
latestEASessionData = (char *)rtkMalloc(latestEASessionDataMaxLen, "AuthCoPro");
63+
appleAccessory->setEASessionPointer(latestEASessionData);
5964

6065
// Pass the transport connected and disconnect methods into the accessory driver
6166
appleAccessory->setTransportConnectedMethod(&transportConnected);
@@ -89,7 +94,9 @@ void updateAuthCoPro()
8994
appleAccessory->update(); // Update the Accessory driver
9095

9196
// Check for a new device connection
92-
if (bluetoothSerialSpp->aclConnected() == true && bluetoothSerialSpp->connected() == false)
97+
// Note: aclConnected is a one-shot
98+
// The internal flag is automatically cleared when aclConnected returns true
99+
if (bluetoothSerialSpp->aclConnected() == true)
93100
{
94101
// //
95102
// https://github.com/espressif/arduino-esp32/blob/master/libraries/BluetoothSerial/examples/DiscoverConnect/DiscoverConnect.ino

Firmware/RTK_Everywhere/Begin.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ void beginBoard()
717717
present.brand = BRAND_SPARKPNT;
718718
present.psram_2mb = true;
719719
present.gnss_lg290p = true;
720-
present.antennaPhaseCenter_mm = 42.0; // Default to SPK6618H APC, average of L1/L2
720+
present.antennaPhaseCenter_mm = 37.5; // APC of SPK-6E helical L1/L2/L5 antenna
721721
present.needsExternalPpl = true; // Uses the PointPerfect Library
722722
present.gnss_to_uart = true;
723723

@@ -779,7 +779,7 @@ void beginBoard()
779779
present.brand = BRAND_SPARKPNT;
780780
present.psram_2mb = true;
781781

782-
present.antennaPhaseCenter_mm = 42.0; // Default to SPK6618H APC, average of L1/L2
782+
present.antennaPhaseCenter_mm = 62.0; // APC from drawings
783783
present.radio_lora = true;
784784
present.fuelgauge_bq40z50 = true;
785785
present.charger_mp2762a = true;
@@ -790,7 +790,7 @@ void beginBoard()
790790
present.gnss_to_uart = true;
791791

792792
present.gpioExpanderSwitches = true;
793-
present.microSd = true;
793+
// present.microSd = true; // TODO remove comment out - v1.0 hardware does not have pullup on #CD so card detection does not work
794794
present.microSdCardDetectLow = true;
795795

796796
present.display_i2c0 = true;

Firmware/RTK_Everywhere/Bluetooth.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ void bluetoothStart()
534534
memcpy(record.uuid.uuid.uuid128, UUID_IAP2, sizeof(UUID_IAP2));
535535
record.service_name_length = strlen(sdp_service_name) + 1;
536536
record.service_name = (char *)sdp_service_name;
537+
//record.service_name_length = strlen(deviceName) + 1; // Doesn't seem to help the failed connects
538+
//record.service_name = (char *)deviceName;
539+
//record.rfcomm_channel_number = 1; // Doesn't seem to help the failed connects
537540
esp_sdp_create_record((esp_bluetooth_sdp_record_t *)&record);
538541
}
539542
}

Firmware/RTK_Everywhere/GNSS_LG290P.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ class GNSS_LG290P : GNSS
450450
// elevationDegrees: The elevation value in degrees
451451
bool setElevation(uint8_t elevationDegrees);
452452

453+
bool setHighAccuracyService(bool enableGalileoHas);
454+
453455
// Enable all the valid messages for this platform
454456
bool setMessages(int maxRetries);
455457

0 commit comments

Comments
 (0)