From 0645e436ff8ca88166d1f49ccb53fa4a7e780377 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Thu, 31 Dec 2020 10:37:44 +0100 Subject: [PATCH] added comments about dynamic ARQ --- arq.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arq.py b/arq.py index c3ab310e..c2fcda43 100644 --- a/arq.py +++ b/arq.py @@ -216,6 +216,11 @@ def transmit(data_out): # we need to make sure, payload data is always as long as static.ARQ_PAYLOAD_PER_FRAME beacuse of CRC! + + # maybe we need to change n_raw_frame to static.ARQ_TX_N_FRAMES + i + TOTAL SEND FRAMES + # n_raw_frame is tooo static and we can't change the bursts number afterwards. + # maybe we need to change the main loop from FOR to WHILE to be more flexible + # we need then a iterator variable inside the loop burst_raw_payload = static.TX_BUFFER[n_raw_frame + i] burst_payload = bytearray(static.ARQ_PAYLOAD_PER_FRAME) burst_payload[:len(burst_raw_payload)] = burst_raw_payload # set buffersize to length of data which will be send