PL PCDU tweaks #766
@@ -1,4 +1,5 @@
|
|||||||
#include <fsfw/src/fsfw/datapool/PoolReadGuard.h>
|
#include <fsfw/datapool/PoolReadGuard.h>
|
||||||
|
#include "fsfw/thermal/tcsDefinitions.h"
|
||||||
#include <fsfw/tasks/TaskFactory.h>
|
#include <fsfw/tasks/TaskFactory.h>
|
||||||
#include <mission/payload/PayloadPcduHandler.h>
|
#include <mission/payload/PayloadPcduHandler.h>
|
||||||
|
|
||||||
@@ -69,7 +70,7 @@ void PayloadPcduHandler::doShutDown() {
|
|||||||
{
|
{
|
||||||
PoolReadGuard pg(&adcSet);
|
PoolReadGuard pg(&adcSet);
|
||||||
adcSet.setReportingEnabled(false);
|
adcSet.setReportingEnabled(false);
|
||||||
muellerr marked this conversation as resolved
Outdated
|
|||||||
adcSet.tempC = 0;
|
adcSet.tempC = thermal::INVALID_TEMPERATURE;
|
||||||
|
|
||||||
std::memset(adcSet.channels.value, 0, sizeof(adcSet.channels.value));
|
std::memset(adcSet.channels.value, 0, sizeof(adcSet.channels.value));
|
||||||
std::memset(adcSet.processed.value, 0, sizeof(adcSet.processed.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;
|
state = States::STACK_5V_SWITCHING;
|
||||||
adcState = AdcState::OFF;
|
adcState = AdcState::OFF;
|
||||||
if (startTransitionToOff) {
|
if (startTransitionToOff) {
|
||||||
muellerr marked this conversation as resolved
Outdated
meggert
commented
do we want to keep the debug printout? do we want to keep the debug printout?
|
|||||||
sif::debug << "transition back to off" << std::endl;
|
|
||||||
startTransition(MODE_OFF, 0);
|
startTransition(MODE_OFF, 0);
|
||||||
sif::debug << "blubwapfwa" << std::endl;
|
|
||||||
}
|
}
|
||||||
muellerr marked this conversation as resolved
Outdated
meggert
commented
blabliblub blabliblub
|
|||||||
if (notifyFdir) {
|
if (notifyFdir) {
|
||||||
triggerEvent(TRANSITION_BACK_TO_OFF, static_cast<uint32_t>(currentState));
|
triggerEvent(TRANSITION_BACK_TO_OFF, static_cast<uint32_t>(currentState));
|
||||||
|
Reference in New Issue
Block a user
use the invalid temp constexpr instead?