Skip to content

Commit 0685cc2

Browse files
committed
Add sysSource - see #11
1 parent b840cde commit 0685cc2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Firmware/GNSSDO_Firmware/Begin.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ void updateTCXOClockBias()
635635
tcxoClockBias_ms = gnssClockBias_ms; // Default to the PVTGeodetic RxClkBias
636636
tcxoClockDrift_ppm = gnssClockDrift_ppm;
637637
snprintf(rxClkBiasSource, sizeof(rxClkBiasSource), "PVT");
638+
snprintf(sysSource, sizeof(sysSource), mosaicTimeSystemNameFromId(gnssTimeSys));
638639

639640
if (settings.preferNonCompositeGPSBias || settings.preferNonCompositeGalileoBias) // These are mutex
640641
{
@@ -645,6 +646,7 @@ void updateTCXOClockBias()
645646
tcxoClockDrift_ppm = fugroTimeSystems[index].RxClkDrift_ppm;
646647
fugroTimeSystems[index].updated = false;
647648
snprintf(rxClkBiasSource, sizeof(rxClkBiasSource), fugroTimeSystems[index].name);
649+
snprintf(sysSource, sizeof(sysSource), "Fugro (%s)", fugroTimeSystems[index].name);
648650
}
649651
}
650652
}

Firmware/GNSSDO_Firmware/Display.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void updateDisplay()
158158
yPos += 8;
159159

160160
snprintf(textLine, sizeof(textLine), "Sys %s",
161-
mosaicTimeSystemNameFromId(gnssTimeSys));
161+
sysSource);
162162
oled->setCursor(0, yPos);
163163
oled->print(textLine);
164164
yPos += 8;

Firmware/GNSSDO_Firmware/settings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ uint8_t mosaicTimeSystemIndexFromName(const char *name)
134134
double tcxoClockBias_ms; // Updated by updateTCXOClockBias
135135
float tcxoClockDrift_ppm;
136136
char rxClkBiasSource[8];
137+
char sysSource[16]; // "Fugro (Galileo)"
137138

138139
const char *const mosaicPVTErrorTable[] = {
139140
"None",

0 commit comments

Comments
 (0)