use CSB backend instead
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2022-10-24 10:26:00 +02:00
parent 098741ffe6
commit e897fb63d8
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
5 changed files with 52 additions and 26 deletions

View File

@ -1,4 +1,9 @@
target_sources( target_sources(
${LIB_EIVE_MISSION} PRIVATE CCSDSHandler.cpp VirtualChannel.cpp TmFunnel.cpp ${LIB_EIVE_MISSION}
CfdpTmFunnel.cpp PusTmFunnel.cpp Service15TmStorage.cpp PRIVATE CCSDSHandler.cpp
VirtualChannel.cpp
TmFunnel.cpp
CfdpTmFunnel.cpp
PusTmFunnel.cpp
Service15TmStorage.cpp
TmStoreBackend.cpp) TmStoreBackend.cpp)

View File

@ -1,13 +1,31 @@
#include "Service15TmStorage.h" #include "Service15TmStorage.h"
using namespace returnvalue;
Service15TmStorage::Service15TmStorage(PsbParams params): PusServiceBase(params) { Service15TmStorage::Service15TmStorage(object_id_t objectId, uint16_t apid,
uint8_t numParallelCommands, uint16_t commandTimeoutSecs,
size_t queueDepth)
: CommandingServiceBase(objectId, apid, "PUS Service 15", 15, numParallelCommands,
commandTimeoutSecs, queueDepth) {}
ReturnValue_t Service15TmStorage::isValidSubservice(uint8_t subservice) { return OK; }
ReturnValue_t Service15TmStorage::getMessageQueueAndObject(uint8_t subservice,
const uint8_t *tcData, size_t tcDataLen,
MessageQueueId_t *id,
object_id_t *objectId) {
return OK;
} }
ReturnValue_t Service15TmStorage::handleRequest(uint8_t subservice) { ReturnValue_t Service15TmStorage::prepareCommand(CommandMessage *message, uint8_t subservice,
return returnvalue::OK; const uint8_t *tcData, size_t tcDataLen,
uint32_t *state, object_id_t objectId) {
return OK;
} }
ReturnValue_t Service15TmStorage::performService() { ReturnValue_t Service15TmStorage::handleReply(const CommandMessage *reply,
return returnvalue::OK; Command_t previousCommand, uint32_t *state,
CommandMessage *optionalNextCommand,
object_id_t objectId, bool *isStep) {
return OK;
} }

View File

@ -1,16 +1,23 @@
#ifndef MISSION_TMTC_SERVICE15TMSTORAGE_H_ #ifndef MISSION_TMTC_SERVICE15TMSTORAGE_H_
#define MISSION_TMTC_SERVICE15TMSTORAGE_H_ #define MISSION_TMTC_SERVICE15TMSTORAGE_H_
#include "fsfw/tmtcservices/PusServiceBase.h" #include <fsfw/tmtcservices/CommandingServiceBase.h>
class Service15TmStorage: public PusServiceBase { class Service15TmStorage : public CommandingServiceBase {
public: public:
explicit Service15TmStorage(PsbParams params); explicit Service15TmStorage(object_id_t objectId, uint16_t apid, uint8_t numParallelCommands,
uint16_t commandTimeoutSecs, size_t queueDepth);
private: private:
ReturnValue_t handleRequest(uint8_t subservice) override; ReturnValue_t isValidSubservice(uint8_t subservice) override;
ReturnValue_t performService() override; ReturnValue_t getMessageQueueAndObject(uint8_t subservice, const uint8_t* tcData,
size_t tcDataLen, MessageQueueId_t* id,
object_id_t* objectId) override;
ReturnValue_t prepareCommand(CommandMessage* message, uint8_t subservice, const uint8_t* tcData,
size_t tcDataLen, uint32_t* state, object_id_t objectId) override;
ReturnValue_t handleReply(const CommandMessage* reply, Command_t previousCommand, uint32_t* state,
CommandMessage* optionalNextCommand, object_id_t objectId,
bool* isStep) override;
}; };
#endif /* MISSION_TMTC_SERVICE15TMSTORAGE_H_ */ #endif /* MISSION_TMTC_SERVICE15TMSTORAGE_H_ */

View File

@ -1,8 +1,6 @@
#include "TmStoreBackend.h" #include "TmStoreBackend.h"
const char* TmStoreBackend::getName() const { const char* TmStoreBackend::getName() const { return "TM Store Backend"; }
return "TM Store Backend";
}
MessageQueueId_t TmStoreBackend::getReportReceptionQueue(uint8_t virtualChannel) const { MessageQueueId_t TmStoreBackend::getReportReceptionQueue(uint8_t virtualChannel) const {
return MessageQueueIF::NO_QUEUE; return MessageQueueIF::NO_QUEUE;

View File

@ -5,12 +5,10 @@
class TmStoreBackend : public AcceptsTelemetryIF { class TmStoreBackend : public AcceptsTelemetryIF {
public: public:
[[nodiscard]] const char* getName() const override; [[nodiscard]] const char* getName() const override;
[[nodiscard]] MessageQueueId_t getReportReceptionQueue(uint8_t virtualChannel) const override; [[nodiscard]] MessageQueueId_t getReportReceptionQueue(uint8_t virtualChannel) const override;
private: private:
}; };
#endif /* MISSION_TMTC_TMSTOREBACKEND_H_ */ #endif /* MISSION_TMTC_TMSTOREBACKEND_H_ */