From 1d97327f79d7157720ab491c9f1089f473daeb9d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 17 Jul 2023 18:56:10 +0200 Subject: [PATCH] start implementing metadata PDU generation --- src/fsfw/cfdp/handler/SourceHandler.cpp | 2 +- src/fsfw/cfdp/handler/SourceHandler.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fsfw/cfdp/handler/SourceHandler.cpp b/src/fsfw/cfdp/handler/SourceHandler.cpp index fd33226a..38a7a84d 100644 --- a/src/fsfw/cfdp/handler/SourceHandler.cpp +++ b/src/fsfw/cfdp/handler/SourceHandler.cpp @@ -142,7 +142,7 @@ ReturnValue_t cfdp::SourceHandler::putRequest(PutRequestFull& putRequest, Remote ReturnValue_t cfdp::SourceHandler::prepareAndSendMetadataPdu() { // FileSize fileSize(); - // auto metadataInfo = MetadataInfo(); + // auto metadataInfo = MetadataInfo(transactionParams.pduConf, transactionParams.fileSize); // TODO: Implement // Advance FSM if everythings works step = TransactionStep::SENDING_FILE_DATA; diff --git a/src/fsfw/cfdp/handler/SourceHandler.h b/src/fsfw/cfdp/handler/SourceHandler.h index 72ee6a26..f3cfecb2 100644 --- a/src/fsfw/cfdp/handler/SourceHandler.h +++ b/src/fsfw/cfdp/handler/SourceHandler.h @@ -68,6 +68,7 @@ class SourceHandler { EntityId destId; TransmissionMode transmissionMode; bool closureRequested; + PduConfig pduConf; } transactionParams; cfdp::CfdpState state = cfdp::CfdpState::IDLE; TransactionStep step = TransactionStep::IDLE;