Skip to content

Commit 472bf16

Browse files
committed
[#1323] downlinkHandling: harden interface and add removal policy
1 parent c4a57b1 commit 472bf16

5 files changed

Lines changed: 587 additions & 195 deletions

File tree

src/architecture/msgPayloadDefC/DownlinkHandlingMsgPayload.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ typedef struct {
2727
uint32_t linkActive; //!< [-] 1 if link-quality inputs are valid for downlink calculations
2828
uint32_t receiverIndex; //!< [-] Selected receiver antenna index (1, 2) or 0 if none
2929
uint64_t maxRetransmissions; //!< [-] Maximum ARQ retransmission attempts per packet
30+
uint32_t removalPolicy; //!< [-] Storage-removal policy (0=REMOVE_ATTEMPTED, 1=REMOVE_DELIVERED_ONLY)
3031
char transmitterAntennaName[20]; //!< [-] Name of the selected transmitting antenna
3132
char receiverAntennaName[20]; //!< [-] Name of the selected receiving antenna
3233
char dataName[128]; //!< [-] Name of the data partition currently downlinked
@@ -44,7 +45,7 @@ typedef struct {
4445
double packetDropProb; //!< [-] Packet drop probability within max retransmissions
4546
double expectedAttemptsPerPacket; //!< [-] Expected number of attempts needed to complete one source packet
4647
double attemptedDataRate; //!< [bit/s] Attempted channel transmission rate including retransmissions
47-
double storageRemovalRate; //!< [bit/s] Data removed from spacecraft storage (success + drop)
48+
double storageRemovalRate; //!< [bit/s] Data removed from spacecraft storage per selected removal policy
4849
double deliveredDataRate; //!< [bit/s] Data delivered successfully to receiver
4950
double droppedDataRate; //!< [bit/s] Data dropped after reaching retransmission limit
5051
double availableDataBits; //!< [bit] Data available in selected storage partition at start of step
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target_link_libraries(${TARGET_NAME} PRIVATE onboardDataHandlingLib)

0 commit comments

Comments
 (0)