mirror of https://github.com/DJ2LS/FreeDATA.git
fixing a crc bug - but origin not found yet
parent
f983a9b0bd
commit
aefce88ceb
|
@ -33,7 +33,7 @@ class ARQSession:
|
|||
3: {
|
||||
'mode': codec2.FREEDV_MODE.data_ofdm_2438,
|
||||
'min_snr': 7,
|
||||
'duration_per_frame': 2.5,
|
||||
'duration_per_frame': 6.5,
|
||||
'bandwidth': 2438,
|
||||
},
|
||||
4: {
|
||||
|
|
|
@ -249,7 +249,8 @@ class DataFrameFactory:
|
|||
|
||||
# data is always on the last payload slots
|
||||
if item_length in ["dynamic"] and key in["data"]:
|
||||
data = frame[buffer_position:]
|
||||
# TODO: We need to check the "-2", for some reason the tests are failing with "-2", and real world test i failing without...
|
||||
data = frame[buffer_position:-2]
|
||||
item_length = len(data)
|
||||
print("---------------------------------------------")
|
||||
print(len(data))
|
||||
|
|
|
@ -160,7 +160,7 @@ class TestARQSession(unittest.TestCase):
|
|||
self.establishChannels()
|
||||
params = {
|
||||
'dxcall': "AA1AAA-1",
|
||||
'data': base64.b64encode(np.random.bytes(100000)),
|
||||
'data': base64.b64encode(np.random.bytes(1000)),
|
||||
'type': "raw_lzma"
|
||||
}
|
||||
cmd = ARQRawCommand(self.config, self.iss_state_manager, self.iss_event_queue, params)
|
||||
|
|
Loading…
Reference in New Issue