From 53f85c3e71d12e8e41924fc8199e4195873c92c9 Mon Sep 17 00:00:00 2001 From: cmayer Date: Sat, 6 Jul 2019 15:28:12 +0200 Subject: [PATCH] reduced debug output --- python/physical_layer/MIL_STD_188_110A.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/physical_layer/MIL_STD_188_110A.py b/python/physical_layer/MIL_STD_188_110A.py index 78d5003..3128723 100644 --- a/python/physical_layer/MIL_STD_188_110A.py +++ b/python/physical_layer/MIL_STD_188_110A.py @@ -193,8 +193,8 @@ class PhysicalLayer(object): elif self._frame_counter < self._num_frames_per_block-2: success = np.mean(np.real(symbols[self._mode['unknown']:])) > 0.4 or np.max(np.imag(symbols[self._mode['unknown']:])) < 0.6 if not success: - print('aborting: ', symbols[self._mode['unknown']:], np.mean(np.real(symbols[self._mode['unknown']:])), - np.max(np.imag(symbols[self._mode['unknown']:]))) + print('aborting: ', symbols[self._mode['unknown']:])# np.mean(np.real(symbols[self._mode['unknown']:])), + #np.max(np.imag(symbols[self._mode['unknown']:]))) return [self.get_next_data_frame(success),self._mode['ci'],success,success] def get_next_data_frame(self, success): @@ -290,7 +290,7 @@ class PhysicalLayer(object): rd = self._depuncturer.process(r) self._viterbi_decoder.reset() decoded_bits = self._viterbi_decoder.udpate(rd) - print('bits=', decoded_bits) + ##print('bits=', decoded_bits) print('quality={}%'.format(100.0*self._viterbi_decoder.quality()/(2*len(decoded_bits)))) return decoded_bits