1
0
Fork 0
mirror of https://github.com/hb9fxq/gr-digitalhf synced 2024-12-22 15:10:00 +00:00

less strict requirements on mini-probe quality

This commit is contained in:
cmayer 2019-06-16 19:03:48 +02:00
parent fd72fa3bd5
commit 466cab4e6b

View file

@ -191,7 +191,10 @@ class PhysicalLayer(object):
a = symbols[32*i:32*(i+1)] a = symbols[32*i:32*(i+1)]
success &= np.max(np.imag(np.mean(a.reshape(8,4),0))) < 0.25 success &= np.max(np.imag(np.mean(a.reshape(8,4),0))) < 0.25
elif self._frame_counter < self._num_frames_per_block-2: elif self._frame_counter < self._num_frames_per_block-2:
success = np.mean(np.real(symbols[self._mode['unknown']:])) > 0.7 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']:])))
return [self.get_next_data_frame(success),self._mode['ci'],success,success] return [self.get_next_data_frame(success),self._mode['ci'],success,success]
def get_next_data_frame(self, success): def get_next_data_frame(self, success):