Show battery temperature
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user