Updated driver display to have lap count

This commit is contained in:
2026-04-03 16:39:41 +02:00
parent ecccadc913
commit a052888a38
4 changed files with 19 additions and 20 deletions

View File

@@ -163,6 +163,9 @@ int Lcd::renderDriverPrimary() {
int line_trigger;
gpsTriggerGlobalRead(line_trigger);
uint16_t num_laps;
lapCountGlobalRead(num_laps);
display_->setCursor(0, 0);
this->print("GPS:");
@@ -173,24 +176,9 @@ int Lcd::renderDriverPrimary() {
}
display_->setCursor(7, 0);
this->print("TRIG:");
switch (line_trigger) {
case 0:
this->print("I");
break;
case 1:
this->print("A");
break;
case 2:
this->print("T");
break;
default:
this->print("NULL");
break;
}
this->print("LAPS:");
if (num_laps < 10) this->print('0');
this->print(num_laps, 10);
display_->setCursor(0, 2);
this->print("SPD:");