each store has own tc queue now
This commit is contained in:
@ -9,32 +9,25 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
class TmFunnelBase : public TmStoreFrontendSimpleIF,
|
||||
public AcceptsTelemetryIF,
|
||||
public SystemObject {
|
||||
class TmFunnelBase : public AcceptsTelemetryIF, public SystemObject {
|
||||
public:
|
||||
struct FunnelCfg {
|
||||
FunnelCfg(object_id_t objId, StorageManagerIF& tmStore, StorageManagerIF& ipcStore,
|
||||
uint32_t tmMsgDepth, uint32_t tcMsgDepth)
|
||||
: objectId(objId),
|
||||
tmStore(tmStore),
|
||||
ipcStore(ipcStore),
|
||||
tmMsgDepth(tmMsgDepth),
|
||||
tcMsgDepth(tcMsgDepth) {}
|
||||
uint32_t tmMsgDepth)
|
||||
: objectId(objId), tmStore(tmStore), ipcStore(ipcStore), tmMsgDepth(tmMsgDepth) {}
|
||||
object_id_t objectId;
|
||||
StorageManagerIF& tmStore;
|
||||
StorageManagerIF& ipcStore;
|
||||
uint32_t tmMsgDepth;
|
||||
uint32_t tcMsgDepth;
|
||||
};
|
||||
TmFunnelBase(FunnelCfg cfg);
|
||||
explicit TmFunnelBase(FunnelCfg cfg);
|
||||
void addDestination(const char* name, const AcceptsTelemetryIF& downlinkDestination,
|
||||
uint8_t vcid = 0);
|
||||
ReturnValue_t sendPacketToDestinations(store_address_t origStoreId, TmTcMessage& message,
|
||||
const uint8_t* packetData, size_t size);
|
||||
[[nodiscard]] MessageQueueId_t getReportReceptionQueue(uint8_t virtualChannel) const override;
|
||||
|
||||
virtual ~TmFunnelBase();
|
||||
~TmFunnelBase() override;
|
||||
|
||||
protected:
|
||||
StorageManagerIF& tmStore;
|
||||
@ -52,9 +45,6 @@ class TmFunnelBase : public TmStoreFrontendSimpleIF,
|
||||
std::vector<Destination> destinations;
|
||||
|
||||
MessageQueueIF* tmQueue = nullptr;
|
||||
MessageQueueIF* tcQueue = nullptr;
|
||||
|
||||
MessageQueueId_t getCommandQueue() const override;
|
||||
};
|
||||
|
||||
#endif /* MISSION_TMTC_TMFUNNELBASE_H_ */
|
||||
|
Reference in New Issue
Block a user