Skip to content

Commit 8a5b634

Browse files
committed
Add ZED firmware test to system test display
1 parent 390824f commit 8a5b634

File tree

1 file changed

+16
-29
lines changed

1 file changed

+16
-29
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,8 @@ void paintSystemTest()
22992299
systemTestDisplayNumber %= 2;
23002300
}
23012301

2302-
if (systemTestDisplayNumber == 1 || productVariant != RTK_FACET_LBAND)
2302+
// Main info display
2303+
if (systemTestDisplayNumber == 1)
23032304
{
23042305
int xOffset = 2;
23052306
int yOffset = 2;
@@ -2309,28 +2310,25 @@ void paintSystemTest()
23092310
drawFrame(); // Outside edge
23102311

23112312
// Test SD, accel, batt, GNSS, mux
2312-
oled.setFont(QW_FONT_5X7); // Set font to smallest
2313+
oled.setFont(QW_FONT_5X7); // Set font to smallest
2314+
23132315
oled.setCursor(xOffset, yOffset); // x, y
2314-
oled.print("SD:");
2316+
oled.print("ZV:");
2317+
oled.print(zedFirmwareVersionInt);
2318+
if (zedFirmwareVersionInt < 150)
2319+
oled.print("-FAIL");
2320+
else
2321+
oled.print("-OK");
23152322

2323+
oled.setCursor(xOffset, yOffset + (1 * charHeight)); // x, y
2324+
oled.print("SD:");
23162325
if (online.microSD == false)
23172326
beginSD(); // Test if SD is present
23182327
if (online.microSD == true)
23192328
oled.print("OK");
23202329
else
23212330
oled.print("FAIL");
23222331

2323-
if (productVariant == RTK_EXPRESS || productVariant == RTK_EXPRESS_PLUS || productVariant == RTK_FACET ||
2324-
productVariant == RTK_FACET_LBAND || productVariant == RTK_FACET_LBAND_DIRECT)
2325-
{
2326-
oled.setCursor(xOffset, yOffset + (1 * charHeight)); // x, y
2327-
oled.print("Accel:");
2328-
if (online.accelerometer == true)
2329-
oled.print("OK");
2330-
else
2331-
oled.print("FAIL");
2332-
}
2333-
23342332
if (productVariant != REFERENCE_STATION)
23352333
{
23362334
oled.setCursor(xOffset, yOffset + (2 * charHeight)); // x, y
@@ -2425,7 +2423,8 @@ void paintSystemTest()
24252423
oled.print("OK");
24262424
} // End display 1
24272425

2428-
if (productVariant == RTK_FACET_LBAND || productVariant == RTK_FACET_LBAND_DIRECT)
2426+
// Display LBand Info
2427+
if (productVariant == RTK_FACET_LBAND)
24292428
{
24302429
if (systemTestDisplayNumber == 0)
24312430
{
@@ -2436,29 +2435,17 @@ void paintSystemTest()
24362435

24372436
drawFrame(); // Outside edge
24382437

2439-
// Test ZED Firmware, L-Band
2440-
2438+
// Test L-Band
24412439
oled.setFont(QW_FONT_5X7); // Set font to smallest
24422440

2443-
oled.setCursor(xOffset, yOffset); // x, y
2444-
oled.print("ZED Firm:");
24452441
oled.setCursor(xOffset, yOffset + (1 * charHeight)); // x, y
2446-
oled.print(" ");
2447-
oled.print(zedFirmwareVersionInt);
2448-
oled.print("-");
2449-
if (zedFirmwareVersionInt < 130)
2450-
oled.print("FAIL");
2451-
else
2452-
oled.print("OK");
2453-
2454-
oled.setCursor(xOffset, yOffset + (2 * charHeight)); // x, y
24552442
oled.print("LBand:");
24562443
if (online.lband == true)
24572444
oled.print("OK");
24582445
else
24592446
oled.print("FAIL");
24602447
} // End display 0
2461-
} // End Facet L-Band testing
2448+
}
24622449
}
24632450
}
24642451

0 commit comments

Comments
 (0)