Skip to content

Commit 2316f10

Browse files
committed
Move GNSS attributes to gnssDetectReceiverType()
1 parent b065a8b commit 2316f10

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

Firmware/RTK_Everywhere/Begin.ino

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -775,32 +775,22 @@ void beginBoard()
775775
present.brand = BRAND_SPARKPNT;
776776
present.psram_2mb = true;
777777

778-
present.gnss_lg290p = true;
779-
780778
present.antennaPhaseCenter_mm = 42.0; // Default to SPK6618H APC, average of L1/L2
781779
present.radio_lora = true;
782780
present.fuelgauge_bq40z50 = true;
783781
present.charger_mp2762a = true;
784782

785-
// TODO Change to MFi present.encryption_atecc608a = true;
786-
787783
present.button_powerLow = true; // Button is pressed when high
788784
// present.button_mode = true; //TODO remove comment. This won't be available until v1.1 of hardware
789785
present.beeper = true;
790786
present.gnss_to_uart = true;
791-
present.needsExternalPpl = true; // Uses the PointPerfect Library
792-
793-
// TODO this will need to be based on module ID
794-
present.minCno = true;
795-
present.minElevation = true;
796-
present.dynamicModel = true;
797787

798788
present.gpioExpanderSwitches = true;
799789
present.microSd = true;
800790
present.microSdCardDetectLow = true;
801791

802792
present.display_i2c0 = true;
803-
// present.i2c0BusSpeed_400 = true; // Run display bus at higher speed
793+
present.i2c0BusSpeed_400 = true; // Run display bus at higher speed
804794
present.display_type = DISPLAY_128x64;
805795
present.displayInverted = true;
806796
present.tiltPossible = true;

Firmware/RTK_Everywhere/GNSS.ino

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ void gnssDetectReceiverType()
127127
if (lg290pIsPresent() == true)
128128
{
129129
systemPrintln("Auto-detected GNSS receiver: LG290P");
130+
131+
present.gnss_lg290p = true;
132+
present.minCno = true;
133+
present.minElevation = true;
134+
present.needsExternalPpl = true; // Uses the PointPerfect Library
135+
130136
settings.detectedGnssReceiver = GNSS_RECEIVER_LG290P;
131137
recordSystemSettings(); // Record the detected GNSS receiver and avoid this test in the future
132138
}
@@ -140,6 +146,13 @@ void gnssDetectReceiverType()
140146
// else if (mosaicIsPresent() == true)
141147
// {
142148
// systemPrintln("Auto-detected GNSS receiver: mosaic-X5");
149+
150+
// present.gnss_mosaicX5 = true;
151+
// present.minCno = true;
152+
// present.minElevation = true;
153+
// present.dynamicModel = true;
154+
// present.needsExternalPpl = true; // Uses the PointPerfect Library
155+
143156
// settings.detectedGnssReceiver = GNSS_RECEIVER_MOSAIC_X5;
144157
// recordSystemSettings(); // Record the detected GNSS receiver and avoid this test in the future
145158
// }

0 commit comments

Comments
 (0)