From fd8c3d295ae47e6c311560bc16ddaaf223c519a8 Mon Sep 17 00:00:00 2001 From: cmayer Date: Mon, 13 May 2019 09:52:17 +0200 Subject: [PATCH] fix for modes != 24kHz --- python/physical_layer/MIL_STD_188_110D.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/physical_layer/MIL_STD_188_110D.py b/python/physical_layer/MIL_STD_188_110D.py index 2065820..9ed8e82 100644 --- a/python/physical_layer/MIL_STD_188_110D.py +++ b/python/physical_layer/MIL_STD_188_110D.py @@ -865,9 +865,9 @@ class PhysicalLayer(object): CNT_SYMB = np.zeros(4*wlen, dtype=np.complex64) WID_SYMB = np.zeros(5*wlen, dtype=np.complex64) ## ---- preamble scramble symbols ------------------------------------------------ - SYNC_SCR = common.n_psk(8, np.concatenate([FIXED_PN for _ in range(9)])) - CNT_SCR = common.n_psk(8, np.concatenate([CNT_PN for _ in range(4)])) - WID_SCR = common.n_psk(8, np.concatenate([WID_PN for _ in range(5)])) + SYNC_SCR = common.n_psk(8, np.concatenate([FIXED_PN for _ in range(9)]))[:len(SYNC_SYMB)] + CNT_SCR = common.n_psk(8, np.concatenate([CNT_PN for _ in range(4)]))[:len(CNT_SYMB)] + WID_SCR = common.n_psk(8, np.concatenate([WID_PN for _ in range(5)]))[:len(WID_SYMB)] self._fixed_s = np.array(zip(SYNC_SCR*SYNC_SYMB, SYNC_SCR),