CFDP state machine

This commit is contained in:
Robin Müller 2021-12-12 20:30:00 +01:00
parent f7cb0bbf31
commit aa6ffac182
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
3 changed files with 9 additions and 7 deletions

View File

@ -40,7 +40,11 @@
#ifndef FSFW_USE_PUS_C_TELECOMMANDS
#define FSFW_USE_PUS_C_TELECOMMANDS 1
#endif
#endif /* FSFW_USE_PUS_C_TELECOMMANDS */
#ifndef FSFW_DEBUG_CFDP_DISTRIBUTOR
#define FSFW_DEBUG_CFDP_DISTRIBUTOR 0
#endif /* FSFW_DEBUG_CFDP_DISTRIBUTOR */
#ifndef FSFW_TCP_RECV_WIRETAPPING_ENABLED
#define FSFW_TCP_RECV_WIRETAPPING_ENABLED 0

View File

@ -50,7 +50,8 @@ public:
static object_id_t packetSource;
static object_id_t packetDestination;
private:
private:
/**
* This constant sets the maximum number of packets accepted per call.
* Remember that one packet must be completely handled in one

View File

@ -1,3 +1,4 @@
#include "fsfw/FSFW.h"
#include "fsfw/tcdistribution/CCSDSDistributorIF.h"
#include "fsfw/tcdistribution/CFDPDistributor.h"
@ -5,10 +6,6 @@
#include "fsfw/objectmanager/ObjectManager.h"
#ifndef FSFW_CFDP_DISTRIBUTOR_DEBUGGING
#define FSFW_CFDP_DISTRIBUTOR_DEBUGGING 1
#endif
CFDPDistributor::CFDPDistributor(uint16_t setApid, object_id_t setObjectId,
object_id_t setPacketSource):
TcDistributor(setObjectId), apid(setApid), checker(setApid),
@ -18,7 +15,7 @@ CFDPDistributor::CFDPDistributor(uint16_t setApid, object_id_t setObjectId,
CFDPDistributor::~CFDPDistributor() {}
CFDPDistributor::TcMqMapIter CFDPDistributor::selectDestination() {
#if FSFW_CFDP_DISTRIBUTOR_DEBUGGING == 1
#if FSFW_DEBUG_CFDP_DISTRIBUTOR == 1
store_address_t storeId = this->currentMessage.getStorageId();
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::debug << "CFDPDistributor::handlePacket received: " << storeId.poolIndex << ", " <<