Show battery temperature

This commit is contained in:
2023-05-22 08:46:04 +02:00
parent 6e0fd1a3cf
commit 216ad67840
15 changed files with 298 additions and 154 deletions

View File

@ -46,6 +46,9 @@ void DriverViewView::setupScreen() {
int motorThresholds[4] = {30, 45, 60, 80};
motorTempL.setTempThresholds(motorThresholds);
motorTempR.setTempThresholds(motorThresholds);
int batThresholds[4] = {30, 40, 50, 55};
batTempL.setTempThresholds(batThresholds);
batTempR.setTempThresholds(batThresholds);
}
void DriverViewView::tearDownScreen() { DriverViewViewBase::tearDownScreen(); }
@ -91,6 +94,8 @@ void DriverViewView::setTemps(const Temperatures &temps) {
invTempR.setTemp(roundf(temps.inv_r));
motorTempL.setTemp(roundf(temps.mot_l));
motorTempR.setTemp(roundf(temps.mot_r));
batTempL.setTemp(roundf(temps.bat_l));
batTempR.setTemp(roundf(temps.bat_r));
}
void DriverViewView::setTSSoC(uint8_t soc) {