From 4cb220e63876dceced30a77cee4eb89761a31a40 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 31 Aug 2019 19:15:48 +0200 Subject: utils: Minor fixes in PFB mode of gmr1_rx_sdr Signed-off-by: Sylvain Munaut --- utils/gmr1_rx_sdr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/gmr1_rx_sdr.py b/utils/gmr1_rx_sdr.py index a75dfe4..45bbb88 100755 --- a/utils/gmr1_rx_sdr.py +++ b/utils/gmr1_rx_sdr.py @@ -150,7 +150,7 @@ class Channel(object): @property def subchannels(self): return [ - Channel(sa, 1) + Channel(sa, 1, band=self._band) for sa in range( self.arfcn - (self.width-1) // 2, self.arfcn + (self.width+2) // 2 @@ -396,7 +396,7 @@ class PFBBase(gr.hier_block2): mid_center_freq = chan_align_fn(center_freq) if abs(mid_center_freq - center_freq) > 200: - self.rotation = 2.0 * math.pi * (self.center_freq - new_center_freq) / samp_rate + self.rotation = 2.0 * math.pi * (center_freq - mid_center_freq) / samp_rate else: self.rotation = 0 -- cgit v1.2.3