Skip to content

Commit c84b591

Browse files
committed
Change test display for LBand
1 parent 2bda331 commit c84b591

File tree

3 files changed

+28
-65
lines changed

3 files changed

+28
-65
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 26 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ void paintSystemTest()
15091509
systemTestDisplayNumber %= 2;
15101510
}
15111511

1512-
if (systemTestDisplayNumber == 1)
1512+
if (systemTestDisplayNumber == 1 || productVariant != RTK_FACET_LBAND)
15131513
{
15141514
int xOffset = 2;
15151515
int yOffset = 2;
@@ -1627,76 +1627,41 @@ void paintSystemTest()
16271627
oled.print(F("OK"));
16281628
} //End display 1
16291629

1630-
if (systemTestDisplayNumber == 0)
1630+
if (productVariant == RTK_FACET_LBAND)
16311631
{
1632-
int xOffset = 2;
1633-
int yOffset = 2;
1634-
1635-
int charHeight = 7;
1636-
1637-
char macAddress[5];
1638-
sprintf(macAddress, "%02X%02X", unitMACAddress[4], unitMACAddress[5]);
1639-
1640-
drawFrame(); //Outside edge
1641-
1642-
//Test ZED Firmware, L-Band, Buttons
1643-
1644-
oled.setFont(QW_FONT_5X7); //Set font to smallest
1632+
if (systemTestDisplayNumber == 0)
1633+
{
1634+
int xOffset = 2;
1635+
int yOffset = 2;
16451636

1646-
oled.setCursor(xOffset, yOffset); //x, y
1647-
oled.print(F("ZED Firm:"));
1648-
oled.setCursor(xOffset, yOffset + (1 * charHeight) ); //x, y
1649-
oled.print(" ");
1650-
oled.print(zedFirmwareVersionInt);
1651-
oled.print(F("-"));
1652-
if (zedFirmwareVersionInt < 130)
1653-
oled.print(F("FAIL"));
1654-
else
1655-
oled.print(F("OK"));
1637+
int charHeight = 7;
16561638

1657-
oled.setCursor(xOffset, yOffset + (2 * charHeight) ); //x, y
1658-
oled.print(F("LBand:"));
1659-
if (online.lband == true)
1660-
oled.print(F("OK"));
1661-
else
1662-
oled.print(F("FAIL"));
1639+
drawFrame(); //Outside edge
16631640

1664-
oled.setCursor(xOffset, yOffset + (3 * charHeight) ); //x, y
1665-
if (powerBtn != NULL)
1666-
{
1667-
powerBtn->read();
1668-
oled.print(F("Power:"));
1641+
//Test ZED Firmware, L-Band
16691642

1670-
if (powerButtonTestPassed == false && powerBtn->isPressed() == true)
1671-
powerButtonTestPassed = true;
1643+
oled.setFont(QW_FONT_5X7); //Set font to smallest
16721644

1673-
if (powerBtn->isPressed() == true)
1674-
oled.print(F("On"));
1675-
else if (powerButtonTestPassed == false)
1645+
oled.setCursor(xOffset, yOffset); //x, y
1646+
oled.print(F("ZED Firm:"));
1647+
oled.setCursor(xOffset, yOffset + (1 * charHeight) ); //x, y
1648+
oled.print(" ");
1649+
oled.print(zedFirmwareVersionInt);
1650+
oled.print(F("-"));
1651+
if (zedFirmwareVersionInt < 130)
16761652
oled.print(F("FAIL"));
16771653
else
1678-
oled.print(F("PASS"));
1679-
}
1680-
1681-
oled.setCursor(xOffset, yOffset + (4 * charHeight) ); //x, y
1682-
if (setupBtn != NULL)
1683-
{
1684-
setupBtn->read();
1685-
oled.print(F("Setup:"));
1686-
1687-
if (setupButtonTestPassed == false && setupBtn->isPressed() == true)
1688-
setupButtonTestPassed = true;
1654+
oled.print(F("OK"));
16891655

1690-
if (setupBtn->isPressed() == true)
1691-
oled.print(F("On"));
1692-
else if (setupButtonTestPassed == false)
1693-
oled.print(F("FAIL"));
1656+
oled.setCursor(xOffset, yOffset + (2 * charHeight) ); //x, y
1657+
oled.print(F("LBand:"));
1658+
if (online.lband == true)
1659+
oled.print(F("OK"));
16941660
else
1695-
oled.print(F("PASS"));
1696-
}
1697-
1698-
1699-
} //End display 0
1661+
oled.print(F("FAIL"));
1662+
} //End display 0
1663+
} //End Facet L-Band testing
1664+
17001665
}
17011666
}
17021667

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const int FIRMWARE_VERSION_MINOR = 0;
5353
#define COMPILE_WIFI //Comment out to remove WiFi functionality
5454
#define COMPILE_BT //Comment out to remove Bluetooth functionality
5555
#define COMPILE_AP //Comment out to remove Access Point functionality
56-
#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes (don't check power button at startup)
56+
//#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes (don't check power button at startup)
5757

5858
//Define the RTK board identifier:
5959
// This is an int which is unique to this variant of the RTK Surveyor hardware which allows us
@@ -471,8 +471,6 @@ uint8_t leapSeconds = 0; //Gets set if GNSS is online
471471
unsigned long systemTestDisplayTime = 0; //Timestamp for swapping the graphic during testing
472472
uint8_t systemTestDisplayNumber = 0; //Tracks which test screen we're looking at
473473
unsigned long rtcWaitTime = 0; //At poweron, we give the RTC a few seconds to update during L-Band Key checking
474-
bool setupButtonTestPassed = false; //Tracks button press during test screen
475-
bool powerButtonTestPassed = false; //Tracks button press during test screen
476474

477475
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
478476

Firmware/RTK_Surveyor/menuPP.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ bool provisionDevice()
282282
sprintf(hardwareID, "%02X%02X%02X%02X%02X%02X", whitelistID[0], whitelistID[1], whitelistID[2], whitelistID[3], whitelistID[4], whitelistID[5]);
283283
#endif
284284

285-
char givenName[50];
285+
char givenName[100];
286286
sprintf(givenName, "SparkFun RTK %s v%d.%d - %s", platformPrefix, FIRMWARE_VERSION_MAJOR, FIRMWARE_VERSION_MINOR, hardwareID); //Get ready for JSON
287287

288288
StaticJsonDocument<256> pointPerfectAPIPost;

0 commit comments

Comments
 (0)