set temperature invalid properly
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...

This commit is contained in:
Robin Müller 2023-06-22 11:29:30 +02:00
parent 2d4a3c0ee2
commit 0c394ad34d

View File

@ -12,6 +12,8 @@ extern "C" {
#include <wire/common/genericstructs.h>
}
#include "fsfw/thermal/tcsDefinitions.h"
#include <atomic>
#include <fstream>
#include <thread>
@ -111,6 +113,9 @@ void StarTrackerHandler::doShutDown() {
}
{
PoolReadGuard pg(&temperatureSet);
temperatureSet.fpgaTemperature = thermal::INVALID_TEMPERATURE;
temperatureSet.cmosTemperature = thermal::INVALID_TEMPERATURE;
temperatureSet.mcuTemperature = thermal::INVALID_TEMPERATURE;
temperatureSet.setValidity(false, true);
}
reinitNextSetParam = false;