update the display

This commit is contained in:
Ryan Tang 2024-01-30 12:56:30 -05:00
parent 7c2f868749
commit 26ce8e88a4

View File

@ -192,14 +192,14 @@ int main() {
switch (statusReading){ switch (statusReading){
case 0: textDisplay( "Start-Up", 10, 40, blueColor); break; case 0: textDisplay( "Start-Up", 10, 40, blueColor); break;
case 1: textDisplay( "Normal", 10, 40, greenColor); break; case 1: textDisplay( "Normal", 10, 40, greenColor); break;
case 2: textDisplay( "Trouble-1", 10, 40, redColor); break; case 2: textDisplay( "Cage Door (Tripped-1)", 10, 40, redColor); break;
case 3: textDisplay( "Trouble-2", 10, 40, redColor); break; case 3: textDisplay( "Vacuum (Tripped-2)", 10, 40, redColor); break;
case 4: textDisplay( "Trouble-3", 10, 40, redColor); break; case 4: textDisplay( "Source (Tripped-3)", 10, 40, redColor); break;
} }
textDisplay( "Tritium Sensor : " + std::to_string(tritiumReading) + " mCr", 720, 200, blueColor); textDisplay( "Tritium Sensor : " + std::to_string(tritiumReading) + " mCr", 720, 200, blueColor);
textDisplay( "Vaccum : " + std::to_string(vaccumReading) + " Torr", 630, 20, blueColor); textDisplay( "Vaccum : " + std::to_string(vaccumReading) + "x1e-6 Torr", 630, 20, blueColor);
textDisplay( "SubPump : " + std::to_string(subPumpReading) + " Amp", 1020, 70, blueColor); textDisplay( "SubPump : " + std::to_string(subPumpReading*1000) + " mA", 300, 40, blueColor);
textDisplay("update every 5 sec.", 1200, 670, blackColor); textDisplay("update every 5 sec.", 1200, 670, blackColor);
@ -218,4 +218,4 @@ int main() {
SDL_Quit(); SDL_Quit();
return 0; return 0;
} }