small changes ThermalController
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
Irini Kosmidou 2023-01-29 17:55:43 +01:00
parent fa7281794a
commit 617507b3d4
2 changed files with 4 additions and 3 deletions

View File

@ -1180,10 +1180,12 @@ void ThermalController::ctrlPcduAcu() {
if (heaterAvailable) { if (heaterAvailable) {
sensorTempAvailable = true; sensorTempAvailable = true;
if (deviceTemperatures.acu.isValid()) { if (deviceTemperatures.acu.value[0] != INVALID_TEMPERATURE) {
sensorTemp = deviceTemperatures.acu.value[0]; sensorTemp = deviceTemperatures.acu.value[0];
} else if (deviceTemperatures.acu.isValid()) { } else if (deviceTemperatures.acu.value[1] != INVALID_TEMPERATURE) {
sensorTemp = deviceTemperatures.acu.value[1]; sensorTemp = deviceTemperatures.acu.value[1];
} else if (deviceTemperatures.acu.value[2] != INVALID_TEMPERATURE) {
sensorTemp = deviceTemperatures.acu.value[2];
} else if (sensorTemperatures.sensor_acu.isValid()) { } else if (sensorTemperatures.sensor_acu.isValid()) {
sensorTemp = sensorTemperatures.sensor_acu.value; sensorTemp = sensorTemperatures.sensor_acu.value;
} else { } else {

View File

@ -61,7 +61,6 @@ class ThermalController : public ExtendedControllerBase {
static const uint32_t DELAY = 500; static const uint32_t DELAY = 500;
// TODO to be changed
static const uint32_t TEMP_OFFSET = 5; static const uint32_t TEMP_OFFSET = 5;
enum class InternalState { STARTUP, INITIAL_DELAY, READY }; enum class InternalState { STARTUP, INITIAL_DELAY, READY };