Merge branch 'tcs-heater-upper-limit' into tcs-observability
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
2023-07-07 16:21:42 +02:00
3 changed files with 17 additions and 8 deletions

View File

@ -51,10 +51,11 @@ struct ThermalState {
* Abstraction for the state of a single heater.
*/
struct HeaterState {
bool switchTransition;
heater::SwitchState target;
uint8_t heaterSwitchControlCycles;
Countdown heaterOnPeriod;
bool switchTransition = false;
heater::SwitchState target = heater::SwitchState::OFF;
uint8_t heaterSwitchControlCycles = 0;
bool trackHeaterMaxBurnTime = false;
Countdown heaterOnMaxBurnTime;
};
using HeaterSwitchStates = std::array<heater::SwitchState, heater::NUMBER_OF_SWITCHES>;