From b2068360263b4bed7b5c1cf50a823bdcddc22563 Mon Sep 17 00:00:00 2001 From: Christoph Mayer Date: Fri, 11 Oct 2019 13:27:08 +0200 Subject: [PATCH] cut on the normalized path metric --- python/physical_layer/HFDL_ARINC635.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/physical_layer/HFDL_ARINC635.py b/python/physical_layer/HFDL_ARINC635.py index 332d007..44564fc 100644 --- a/python/physical_layer/HFDL_ARINC635.py +++ b/python/physical_layer/HFDL_ARINC635.py @@ -248,7 +248,10 @@ class PhysicalLayer(object): decoded_bits = self._viterbi_dec.udpate(rd) quality = 100.0*self._viterbi_dec.quality()/(2*len(decoded_bits)) print('qyality= ', quality, ' bits=', decoded_bits) - return decoded_bits,quality + if quality > 99.0: + return np.packbits(decoded_bits),quality + else: + return [],quality @staticmethod def get_preamble():