SoC Calculator #754

Merged
muellerr merged 74 commits from soc-calculator into main 2023-10-11 10:50:48 +02:00
Showing only changes of commit 47b15bec93 - Show all commits

View File

@ -403,17 +403,10 @@ void EiveSystem::pdecRecoveryLogic() {
void EiveSystem::forceOffPayload() { void EiveSystem::forceOffPayload() {
CommandMessage msg; CommandMessage msg;
// turn off PL Subsystem
ModeMessage::setModeMessage(&msg, ModeMessage::CMD_MODE_COMMAND_FORCED, HasModesIF::MODE_OFF,
HasModesIF::SUBMODE_NONE);
ReturnValue_t result = commandQueue->sendMessage(plSsQueueId, &msg);
if (result != returnvalue::OK) {
sif::error << "EIVE System: Sending OFF command to PL Subsystem failed" << std::endl;
}
// set PL to faulty // set PL to faulty
HealthMessage::setHealthMessage(&msg, HealthMessage::HEALTH_SET, HasHealthIF::FAULTY); HealthMessage::setHealthMessage(&msg, HealthMessage::HEALTH_SET, HasHealthIF::FAULTY);
result = commandQueue->sendMessage(plPcduQueueId, &msg); ReturnValue_t result = commandQueue->sendMessage(plPcduQueueId, &msg);
if (result != returnvalue::OK) { if (result != returnvalue::OK) {
sif::error << "EIVE System: Sending FAULTY command to PL PCDU failed" << std::endl; sif::error << "EIVE System: Sending FAULTY command to PL PCDU failed" << std::endl;
} }