From e746c151d335a986006fd3010eefe1fb4bcb2d81 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 3 Aug 2023 13:03:10 +0200 Subject: [PATCH] tweaks --- mission/payload/PayloadPcduHandler.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mission/payload/PayloadPcduHandler.cpp b/mission/payload/PayloadPcduHandler.cpp index b3f35897..0f2ef2d6 100644 --- a/mission/payload/PayloadPcduHandler.cpp +++ b/mission/payload/PayloadPcduHandler.cpp @@ -1,4 +1,5 @@ -#include +#include +#include "fsfw/thermal/tcsDefinitions.h" #include #include @@ -69,7 +70,7 @@ void PayloadPcduHandler::doShutDown() { { PoolReadGuard pg(&adcSet); adcSet.setReportingEnabled(false); - adcSet.tempC = 0; + adcSet.tempC = thermal::INVALID_TEMPERATURE; std::memset(adcSet.channels.value, 0, sizeof(adcSet.channels.value)); std::memset(adcSet.processed.value, 0, sizeof(adcSet.processed.value)); @@ -385,9 +386,7 @@ void PayloadPcduHandler::quickTransitionBackToOff(bool startTransitionToOff, boo state = States::STACK_5V_SWITCHING; adcState = AdcState::OFF; if (startTransitionToOff) { - sif::debug << "transition back to off" << std::endl; startTransition(MODE_OFF, 0); - sif::debug << "blubwapfwa" << std::endl; } if (notifyFdir) { triggerEvent(TRANSITION_BACK_TO_OFF, static_cast(currentState));