aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2019-08-31 19:15:48 +0200
committerSylvain Munaut <tnt@246tNt.com>2019-08-31 19:16:31 +0200
commit4cb220e63876dceced30a77cee4eb89761a31a40 (patch)
tree9364b45d03dfd8a24cf7b5182ae21f17b22cf494
parent9d44879ba23bd75e7f6f892d1f524286e9939ea7 (diff)
utils: Minor fixes in PFB mode of gmr1_rx_sdrsylvain/gmr-1-3g
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rwxr-xr-xutils/gmr1_rx_sdr.py4
1 files 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