1
0
Fork 0
mirror of https://github.com/hb9fxq/gr-digitalhf synced 2024-11-05 05:55:53 +00:00

cut on the normalized path metric

This commit is contained in:
Christoph Mayer 2019-10-11 13:27:08 +02:00
parent 71613080e5
commit b206836026

View file

@ -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():