Skip to content

Commit 0597137

Browse files
committed
mosaic : extra saveConfiguration
1 parent e812264 commit 0597137

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

Firmware/RTK_Everywhere/GNSS_Mosaic.ino

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ void menuLogMosaic()
135135
{
136136
GNSS_MOSAIC *mosaic = (GNSS_MOSAIC *)gnss;
137137

138-
mosaic->configureLogging(); // This will enable / disable RINEX logging
139-
mosaic->enableNMEA(); // Enable NMEA messages - this will enable/disable the DSK1 streams
140-
setLoggingType(); // Update Standard, PPP, or custom for icon selection
138+
mosaic->configureLogging(); // This will enable / disable RINEX logging
139+
mosaic->enableNMEA(); // Enable NMEA messages - this will enable/disable the DSK1 streams
140+
mosaic->saveConfiguration(); // Save the configuration
141+
setLoggingType(); // Update Standard, PPP, or custom for icon selection
141142
}
142143

143144
clearBuffer(); // Empty buffer of any newline chars
@@ -419,6 +420,10 @@ bool GNSS_MOSAIC::configureBase()
419420

420421
response &= setElevation(settings.minElev);
421422

423+
response &= setMinCnoRadio(settings.minCNO);
424+
425+
response &= setConstellations();
426+
422427
response &= enableRTCMBase();
423428

424429
response &= enableNMEA();
@@ -583,12 +588,6 @@ bool GNSS_MOSAIC::configureOnce()
583588
setting = String("sso,Stream" + String(MOSAIC_SBF_STATUS_STREAM) + ",COM1,ChannelStatus+DiskStatus,sec2\n\r");
584589
response &= sendWithResponse(setting, "SBFOutput");
585590

586-
response &= setElevation(settings.minElev);
587-
588-
response &= setMinCnoRadio(settings.minCNO);
589-
590-
response &= setConstellations();
591-
592591
// Mark L5 as healthy
593592
response &= sendWithResponse("shm,Tracking,off\n\r", "HealthMask");
594593
response &= sendWithResponse("shm,PVT,off\n\r", "HealthMask");
@@ -668,6 +667,10 @@ bool GNSS_MOSAIC::configureRover()
668667

669668
response &= setElevation(settings.minElev); // Set by menuGNSS which calls gnss->setElevation
670669

670+
response &= setMinCnoRadio(settings.minCNO);
671+
672+
response &= setConstellations();
673+
671674
response &= enableRTCMRover();
672675

673676
response &= enableNMEA();
@@ -1657,6 +1660,8 @@ void GNSS_MOSAIC::menuConstellations()
16571660
// Apply current settings to module
16581661
setConstellations();
16591662

1663+
saveConfiguration(); // Save the updated constellations
1664+
16601665
clearBuffer(); // Empty buffer of any newline chars
16611666
}
16621667

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,8 @@ void updateLBand()
916916

917917
result &= mosaic->configureLBand(true, LBandFreq); // Start L-Band
918918

919+
result &= mosaic->saveConfiguration(); // Save the updated configuration. Probably redundant?
920+
919921
if (result == false)
920922
{
921923
systemPrintln("mosaic-X5 L-Band failed to configure");

0 commit comments

Comments
 (0)