small changes ThermalController
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:
parent
fa7281794a
commit
617507b3d4
@ -1180,10 +1180,12 @@ void ThermalController::ctrlPcduAcu() {
|
||||
if (heaterAvailable) {
|
||||
sensorTempAvailable = true;
|
||||
|
||||
if (deviceTemperatures.acu.isValid()) {
|
||||
if (deviceTemperatures.acu.value[0] != INVALID_TEMPERATURE) {
|
||||
sensorTemp = deviceTemperatures.acu.value[0];
|
||||
} else if (deviceTemperatures.acu.isValid()) {
|
||||
} else if (deviceTemperatures.acu.value[1] != INVALID_TEMPERATURE) {
|
||||
sensorTemp = deviceTemperatures.acu.value[1];
|
||||
} else if (deviceTemperatures.acu.value[2] != INVALID_TEMPERATURE) {
|
||||
sensorTemp = deviceTemperatures.acu.value[2];
|
||||
} else if (sensorTemperatures.sensor_acu.isValid()) {
|
||||
sensorTemp = sensorTemperatures.sensor_acu.value;
|
||||
} else {
|
||||
|
@ -61,7 +61,6 @@ class ThermalController : public ExtendedControllerBase {
|
||||
|
||||
static const uint32_t DELAY = 500;
|
||||
|
||||
// TODO to be changed
|
||||
static const uint32_t TEMP_OFFSET = 5;
|
||||
|
||||
enum class InternalState { STARTUP, INITIAL_DELAY, READY };
|
||||
|
Loading…
Reference in New Issue
Block a user