Merge pull request 'clearing HK message included now' (#322) from KSat/fsfw:mueller/ipc-update into development
Reviewed-on: fsfw/fsfw#322
This commit is contained in:
commit
5941bd710a
@ -1,4 +1,4 @@
|
|||||||
#include "../ipc/CommandMessageCleaner.h"
|
#include "CommandMessageCleaner.h"
|
||||||
|
|
||||||
#include "../devicehandlers/DeviceHandlerMessage.h"
|
#include "../devicehandlers/DeviceHandlerMessage.h"
|
||||||
#include "../health/HealthMessage.h"
|
#include "../health/HealthMessage.h"
|
||||||
@ -7,11 +7,12 @@
|
|||||||
#include "../monitoring/MonitoringMessage.h"
|
#include "../monitoring/MonitoringMessage.h"
|
||||||
#include "../subsystem/modes/ModeSequenceMessage.h"
|
#include "../subsystem/modes/ModeSequenceMessage.h"
|
||||||
#include "../tmstorage/TmStoreMessage.h"
|
#include "../tmstorage/TmStoreMessage.h"
|
||||||
|
#include "../housekeeping/HousekeepingMessage.h"
|
||||||
#include "../parameters/ParameterMessage.h"
|
#include "../parameters/ParameterMessage.h"
|
||||||
|
|
||||||
void CommandMessageCleaner::clearCommandMessage(CommandMessage* message) {
|
void CommandMessageCleaner::clearCommandMessage(CommandMessage* message) {
|
||||||
switch(message->getMessageType()){
|
switch(message->getMessageType()){
|
||||||
case messagetypes::MODE_COMMAND:
|
case messagetypes::MODE_COMMAND:
|
||||||
ModeMessage::clear(message);
|
ModeMessage::clear(message);
|
||||||
break;
|
break;
|
||||||
case messagetypes::HEALTH_COMMAND:
|
case messagetypes::HEALTH_COMMAND:
|
||||||
@ -38,6 +39,9 @@ void CommandMessageCleaner::clearCommandMessage(CommandMessage* message) {
|
|||||||
case messagetypes::PARAMETER:
|
case messagetypes::PARAMETER:
|
||||||
ParameterMessage::clear(message);
|
ParameterMessage::clear(message);
|
||||||
break;
|
break;
|
||||||
|
case messagetypes::HOUSEKEEPING:
|
||||||
|
HousekeepingMessage::clear(message);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
messagetypes::clearMissionMessage(message);
|
messagetypes::clearMissionMessage(message);
|
||||||
break;
|
break;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef FRAMEWORK_IPC_MESSAGEQUEUEMESSAGEIF_H_
|
#ifndef FRAMEWORK_IPC_MESSAGEQUEUEMESSAGEIF_H_
|
||||||
#define FRAMEWORK_IPC_MESSAGEQUEUEMESSAGEIF_H_
|
#define FRAMEWORK_IPC_MESSAGEQUEUEMESSAGEIF_H_
|
||||||
|
|
||||||
#include <fsfw/ipc/messageQueueDefinitions.h>
|
#include "messageQueueDefinitions.h"
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ public:
|
|||||||
<< timeoutMs << " milliseconds!" << std::endl;
|
<< timeoutMs << " milliseconds!" << std::endl;
|
||||||
}
|
}
|
||||||
else if(status != HasReturnvaluesIF::RETURN_OK){
|
else if(status != HasReturnvaluesIF::RETURN_OK){
|
||||||
sif::error << "MutexHelper: Lock of Mutex failed with code " <<
|
sif::error << "MutexHelper: Lock of Mutex failed with code "
|
||||||
status << std::endl;
|
<< status << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user