From 640b13e62da5ab7b8b8159041969498e9e1cc964 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Sun, 4 Aug 2013 22:09:34 -0700 Subject: [PATCH] Switched to using complex_to_mag_squared vs. mag. Based on an observation that the optimal slicer threshold is 0.5(V**2)t. Less CPU load, better performance. Some configurations of threshold and --pmf result in slightly worse performance. Most result in better performance. --- python/parse.py | 2 +- python/rx_path.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/parse.py b/python/parse.py index 1a80c4e..4b1a19f 100644 --- a/python/parse.py +++ b/python/parse.py @@ -427,7 +427,7 @@ def make_parser(pub): try: ret = air_modes.modes_report(modes_reply(int(data, 16)), int(ecc, 16), - 20.0*math.log10(float(reference)), + 10.0*math.log10(float(reference)), air_modes.stamp(0, float(timestamp))) pub["modes_dl"] = ret pub["type%i_dl" % ret.data.get_type()] = ret diff --git a/python/rx_path.py b/python/rx_path.py index 1b9ee6c..b28600a 100644 --- a/python/rx_path.py +++ b/python/rx_path.py @@ -35,7 +35,7 @@ class rx_path(gr.hier_block2): self._spc = int(rate/2e6) # Convert incoming I/Q baseband to amplitude - self._demod = blocks.complex_to_mag() + self._demod = blocks.complex_to_mag_squared() self._bb = self._demod # Pulse matched filter for 0.5us pulses