From 1fa83dff0c40da696882c6f66f89a04166447f90 Mon Sep 17 00:00:00 2001 From: Maicon Kist Date: Thu, 21 Mar 2019 11:49:07 +0000 Subject: [PATCH] update --- .../app/ansible_hydra_gr_client_2tx_2rx.grc | 110 +++++++++++++++++- .../app/ansible_hydra_gr_client_2tx_2rx.py | 15 ++- 2 files changed, 119 insertions(+), 6 deletions(-) diff --git a/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.grc b/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.grc index 2d71d63..2abffe8 100644 --- a/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.grc +++ b/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.grc @@ -144,6 +144,69 @@ counter_slider + + variable_qtgui_range + + comment + + + + value + 0.03 + + + _enabled + 0 + + + _coordinate + (1040, 116) + + + gui_hint + + + + _rotation + 0 + + + id + mul2 + + + label + mul2 + + + min_len + 200 + + + orient + Qt.Horizontal + + + start + 0 + + + step + 0.01 + + + stop + 1.0 + + + rangeType + float + + + widget + counter_slider + + parameter @@ -250,7 +313,7 @@ const - mul + mul2 affinity @@ -1340,7 +1403,7 @@ _coordinate - (968, 792) + (960, 788) _rotation @@ -1410,6 +1473,49 @@ 0.01 + + parameter + + alias + + + + comment + + + + _enabled + 1 + + + _coordinate + (952, 128) + + + _rotation + 0 + + + id + mul2 + + + label + mul2 + + + short_id + + + + type + + + + value + 0.03 + + parameter diff --git a/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.py b/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.py index fbd226f..04788a1 100755 --- a/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.py +++ b/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.py @@ -3,7 +3,7 @@ ################################################## # GNU Radio Python Flow Graph # Title: Ansible Hydra Gr Client 2Tx 2Rx -# Generated: Tue Mar 12 17:38:22 2019 +# Generated: Wed Mar 13 03:03:11 2019 ################################################## @@ -20,7 +20,7 @@ class ansible_hydra_gr_client_2tx_2rx(gr.top_block): - def __init__(self, ansibleIP='192.168.5.73', freqrx=2.22e9+3e6, freqtx=2.22e9, mul=0.01, samp_rate=200e3, vr1offset=-300e3, vr2offset=700e3): + def __init__(self, ansibleIP='192.168.5.73', freqrx=2.22e9+3e6, freqtx=2.22e9, mul=0.01, mul2=0.03, samp_rate=200e3, vr1offset=-300e3, vr2offset=700e3): gr.top_block.__init__(self, "Ansible Hydra Gr Client 2Tx 2Rx") ################################################## @@ -30,6 +30,7 @@ def __init__(self, ansibleIP='192.168.5.73', freqrx=2.22e9+3e6, freqtx=2.22e9, m self.freqrx = freqrx self.freqtx = freqtx self.mul = mul + self.mul2 = mul2 self.samp_rate = samp_rate self.vr1offset = vr1offset self.vr2offset = vr2offset @@ -91,7 +92,7 @@ def __init__(self, ansibleIP='192.168.5.73', freqrx=2.22e9+3e6, freqtx=2.22e9, m self.blocks_tag_debug_0 = blocks.tag_debug(gr.sizeof_char*1, 'VR1 RX', ""); self.blocks_tag_debug_0.set_display(True) self.blocks_pdu_to_tagged_stream_0_0 = blocks.pdu_to_tagged_stream(blocks.byte_t, "len") self.blocks_pdu_to_tagged_stream_0 = blocks.pdu_to_tagged_stream(blocks.byte_t, "len") - self.blocks_multiply_const_vxx_0_0 = blocks.multiply_const_vcc((mul, )) + self.blocks_multiply_const_vxx_0_0 = blocks.multiply_const_vcc((mul2, )) self.blocks_multiply_const_vxx_0 = blocks.multiply_const_vcc((mul, )) ################################################## @@ -137,9 +138,15 @@ def get_mul(self): def set_mul(self, mul): self.mul = mul - self.blocks_multiply_const_vxx_0_0.set_k((self.mul, )) self.blocks_multiply_const_vxx_0.set_k((self.mul, )) + def get_mul2(self): + return self.mul2 + + def set_mul2(self, mul2): + self.mul2 = mul2 + self.blocks_multiply_const_vxx_0_0.set_k((self.mul2, )) + def get_samp_rate(self): return self.samp_rate