thermal control first draft
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
@ -105,6 +105,28 @@ void ThermalController::performControlOperation() {
|
||||
}
|
||||
|
||||
// TODO: Heater control
|
||||
//TODO: Hysterese offset
|
||||
if(heaterHandler.heaterVec[heater::HEATER_4_CAMERA].switchState == HeaterHandler::SwitchState::OFF){
|
||||
if(sensorTemperatures.sensor_4k_camera.value < cameraLimits.opLowerLimit) {
|
||||
heaterHandler.heaterVec[heater::HEATER_4_CAMERA].cmdActive = true;
|
||||
heaterHandler.heaterVec[heater::HEATER_4_CAMERA].action = HeaterHandler::SET_SWITCH_ON;
|
||||
heaterHandler.handleSwitchOnCommand(heater::HEATER_4_CAMERA);
|
||||
heater4Countdown.resetTimer();
|
||||
}
|
||||
}else if(heaterHandler.heaterVec[heater::HEATER_4_CAMERA].switchState == HeaterHandler::SwitchState::ON){
|
||||
if(sensorTemperatures.sensor_4k_camera.value < cameraLimits.opLowerLimit){
|
||||
if(heater4Countdown.hasTimedOut()){
|
||||
heaterHandler.heaterVec[heater::HEATER_4_CAMERA].cmdActive = true;
|
||||
heaterHandler.heaterVec[heater::HEATER_4_CAMERA].action = HeaterHandler::SET_SWITCH_OFF;
|
||||
//triggerEvent(HEATER_TIMEOUT, heater::HEATER_4_CAMERA);
|
||||
heaterHandler.handleSwitchOffCommand(heater::HEATER_4_CAMERA);
|
||||
}
|
||||
}else {
|
||||
heaterHandler.heaterVec[heater::HEATER_4_CAMERA].cmdActive = true;
|
||||
heaterHandler.heaterVec[heater::HEATER_4_CAMERA].action = HeaterHandler::SET_SWITCH_OFF;
|
||||
heaterHandler.handleSwitchOffCommand(heater::HEATER_4_CAMERA);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
ReturnValue_t ThermalController::initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
|
||||
|
Reference in New Issue
Block a user