use new packet store
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
828d791da5
commit
fcc9858b66
@ -55,6 +55,8 @@ ReturnValue_t PusTmFunnel::handlePacket(TmTcMessage &message) {
|
|||||||
sourceSequenceCount = sourceSequenceCount % ccsds::LIMIT_SEQUENCE_COUNT;
|
sourceSequenceCount = sourceSequenceCount % ccsds::LIMIT_SEQUENCE_COUNT;
|
||||||
packet.updateErrorControl();
|
packet.updateErrorControl();
|
||||||
|
|
||||||
|
miscStore.passPacket(packet);
|
||||||
|
|
||||||
for (unsigned int idx = 0; idx < destinations.size(); idx++) {
|
for (unsigned int idx = 0; idx < destinations.size(); idx++) {
|
||||||
const auto &destVcidPair = destinations[idx];
|
const auto &destVcidPair = destinations[idx];
|
||||||
if (destinations.size() > 1) {
|
if (destinations.size() > 1) {
|
||||||
@ -87,3 +89,9 @@ ReturnValue_t PusTmFunnel::handlePacket(TmTcMessage &message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const char *PusTmFunnel::getName() const { return "PUS TM Funnel"; }
|
const char *PusTmFunnel::getName() const { return "PUS TM Funnel"; }
|
||||||
|
|
||||||
|
ReturnValue_t PusTmFunnel::initialize() {
|
||||||
|
miscStore.updateBaseDir();
|
||||||
|
miscStore.updateCurrentTimestamp();
|
||||||
|
return returnvalue::OK;
|
||||||
|
}
|
||||||
|
@ -39,6 +39,7 @@ class PusTmFunnel : public TmFunnelBase {
|
|||||||
TmStore miscStore;
|
TmStore miscStore;
|
||||||
|
|
||||||
ReturnValue_t handlePacket(TmTcMessage &message);
|
ReturnValue_t handlePacket(TmTcMessage &message);
|
||||||
|
ReturnValue_t initialize() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // FSFW_EXAMPLE_COMMON_PUSTMFUNNEL_H
|
#endif // FSFW_EXAMPLE_COMMON_PUSTMFUNNEL_H
|
||||||
|
@ -28,7 +28,6 @@ class TmStore : public SystemObject {
|
|||||||
void updateBaseDir();
|
void updateBaseDir();
|
||||||
ReturnValue_t updateCurrentTimestamp();
|
ReturnValue_t updateCurrentTimestamp();
|
||||||
ReturnValue_t passPacket(PusTmReader& reader);
|
ReturnValue_t passPacket(PusTmReader& reader);
|
||||||
ReturnValue_t storePacket(PusTmReader& reader);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr size_t MAX_FILESIZE = 8192;
|
static constexpr size_t MAX_FILESIZE = 8192;
|
||||||
@ -51,6 +50,7 @@ class TmStore : public SystemObject {
|
|||||||
|
|
||||||
void calcDiffSeconds(RolloverInterval intervalUnit, uint32_t intervalCount);
|
void calcDiffSeconds(RolloverInterval intervalUnit, uint32_t intervalCount);
|
||||||
void assignAndOrCreateMostRecentFile();
|
void assignAndOrCreateMostRecentFile();
|
||||||
|
ReturnValue_t storePacket(PusTmReader& reader);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* MISSION_TMTC_TMSTOREBACKEND_H_ */
|
#endif /* MISSION_TMTC_TMSTOREBACKEND_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user