This commit is contained in:
parent
5c97020087
commit
36d7852c1d
@ -137,8 +137,8 @@ void ThermalController::performControlOperation() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::array<HeaterHandler::SwitchState, 8> heaterStates;
|
std::array<HeaterHandler::SwitchState, 8> heaterSwitchStateArray{};
|
||||||
heaterHandler.getAllSwitchStates(heaterStates);
|
heaterHandler.getAllSwitchStates(heaterSwitchStateArray);
|
||||||
{
|
{
|
||||||
PoolReadGuard pg(&heaterInfo);
|
PoolReadGuard pg(&heaterInfo);
|
||||||
std::memcpy(heaterInfo.heaterSwitchState.value, heaterStates.data(), 8);
|
std::memcpy(heaterInfo.heaterSwitchState.value, heaterStates.data(), 8);
|
||||||
@ -150,7 +150,9 @@ void ThermalController::performControlOperation() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
performThermalModuleCtrl();
|
if(mode != MODE_OFF) {
|
||||||
|
performThermalModuleCtrl();
|
||||||
|
}
|
||||||
cycles++;
|
cycles++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -983,11 +985,6 @@ void ThermalController::ctrlAcsBoard() {
|
|||||||
|
|
||||||
void ThermalController::ctrlMgt() {
|
void ThermalController::ctrlMgt() {
|
||||||
thermalComponent = MGT;
|
thermalComponent = MGT;
|
||||||
PoolReadGuard pg(&imtqThermalSet);
|
|
||||||
auto heaterReq =
|
|
||||||
static_cast<ThermalComponentIF::StateRequest>(imtqThermalSet.heaterRequest.value);
|
|
||||||
// TODO: remove heaterReq?
|
|
||||||
if (heaterReq == ThermalComponentIF::STATE_REQUEST_OPERATIONAL) {
|
|
||||||
sensors[0].first = sensorTemperatures.mgt.isValid();
|
sensors[0].first = sensorTemperatures.mgt.isValid();
|
||||||
sensors[0].second = sensorTemperatures.mgt.value;
|
sensors[0].second = sensorTemperatures.mgt.value;
|
||||||
sensors[1].first = deviceTemperatures.mgt.isValid();
|
sensors[1].first = deviceTemperatures.mgt.isValid();
|
||||||
@ -996,7 +993,7 @@ void ThermalController::ctrlMgt() {
|
|||||||
sensors[2].second = sensorTemperatures.plpcduHeatspreader.value;
|
sensors[2].second = sensorTemperatures.plpcduHeatspreader.value;
|
||||||
numSensors = 3;
|
numSensors = 3;
|
||||||
ctrlComponentTemperature(heater::HEATER_2_ACS_BRD, heater::HEATER_3_PCDU_PDU, mgtLimits);
|
ctrlComponentTemperature(heater::HEATER_2_ACS_BRD, heater::HEATER_3_PCDU_PDU, mgtLimits);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThermalController::ctrlRw() {
|
void ThermalController::ctrlRw() {
|
||||||
|
Loading…
Reference in New Issue
Block a user