TCS Observability #733

Merged
muellerr merged 19 commits from tcs-observability into main 2023-07-11 16:48:00 +02:00
Showing only changes of commit fce16cc695 - Show all commits

View File

@ -1812,6 +1812,8 @@ void ThermalController::heaterMaxDurationControl(
// The heater might still be one for some thermal components, so cross-check
// those components
crossCheckHeaterStateOfComponentsWhenHeaterGoesOff(static_cast<heater::Switch>(i));
} else if (currentHeaterStates[i] == HeaterHandler::SwitchState::OFF) {
heaterStates[i].heaterOnPeriod.resetTimer();
}
}
}
@ -1873,7 +1875,7 @@ void ThermalController::heaterSwitchHelper(heater::Switch switchNr, heater::Swit
triggerEvent(tcsCtrl::TCS_SWITCHING_HEATER_ON, static_cast<uint32_t>(currThermalComponent),
static_cast<uint32_t>(switchNr));
} else {
heaterHandler.switchHeater(switchNr, state);
heaterHandler.switchHeater(switchNr, targetState);
thermalStates[componentIdx].heating = false;
thermalStates[componentIdx].heaterEndTime = currentTime.tv_sec;
triggerEvent(tcsCtrl::TCS_SWITCHING_HEATER_OFF, static_cast<uint32_t>(currThermalComponent),