diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-19 09:28:23 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-19 09:32:36 +0700 |
commit | 7da82f458f91fe1e2db8156e388d85da3692f83c (patch) | |
tree | 5f469fa3852131638b2eda9821a46b70ff29d51c /python/trx/ctrl_if_bb.py | |
parent | 435d7557e895e4ce12bc4d52b93632f66bc423eb (diff) |
python/trx: get rid of FakePM class
Change-Id: Ie96eb9735ecaa3329135c7be976ffd277a2f64f4
Diffstat (limited to 'python/trx/ctrl_if_bb.py')
-rw-r--r-- | python/trx/ctrl_if_bb.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/python/trx/ctrl_if_bb.py b/python/trx/ctrl_if_bb.py index 781c35c..f9840d4 100644 --- a/python/trx/ctrl_if_bb.py +++ b/python/trx/ctrl_if_bb.py @@ -27,7 +27,7 @@ import grgsm from ctrl_if import CTRLInterface class CTRLInterfaceBB(CTRLInterface): - def __init__(self, remote_addr, remote_port, bind_addr, bind_port, tb, pm): + def __init__(self, remote_addr, remote_port, bind_addr, bind_port, tb): CTRLInterface.__init__(self, remote_addr, remote_port, bind_addr, bind_port) @@ -35,8 +35,6 @@ class CTRLInterfaceBB(CTRLInterface): # Set link to the follow graph (top block) self.tb = tb - # Power measurement - self.pm = pm def parse_cmd(self, request): # Power control @@ -137,10 +135,7 @@ class CTRLInterfaceBB(CTRLInterface): # TODO: check freq range meas_freq = int(request[1]) * 1000 - - # HACK: send fake low power values - # until actual power measurement is implemented - meas_dbm = str(self.pm.measure(meas_freq)) + meas_dbm = str(self.tb.measure(meas_freq)) return (0, [meas_dbm]) |