Skip to content

Commit 5efb28c

Browse files
committed
[#1323] downlinkHandling: harden interface and add removal policy
1 parent 3172d36 commit 5efb28c

4 files changed

Lines changed: 570 additions & 209 deletions

File tree

src/architecture/msgPayloadDefC/DownlinkHandlingMsgPayload.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Copyright (c) 2026, Autonomous Vehicle Systems Lab, University of Colorado Bould
2626
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
29-
uint64_t maxRetransmissions; //!< [-] Maximum ARQ retransmission attempts per packet
29+
uint64_t maxRetransmissions; //!< [-] Maximum transmission attempts per packet in the ARQ model
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
@@ -40,11 +41,11 @@ typedef struct {
4041
double ebN0_dB; //!< [dB] Energy-per-bit to noise-density ratio
4142
double ber; //!< [-] Bit error rate
4243
double per; //!< [-] Packet error rate
43-
double packetSuccessProb; //!< [-] Packet success probability within max retransmissions
44-
double packetDropProb; //!< [-] Packet drop probability within max retransmissions
44+
double packetSuccessProb; //!< [-] Packet success probability within max transmission attempts
45+
double packetDropProb; //!< [-] Packet drop probability within max transmission attempts
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)