Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
maiconkist committed Mar 21, 2019
1 parent 38c5306 commit 1fa83df
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 6 deletions.
110 changes: 108 additions & 2 deletions grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.grc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,69 @@
<value>counter_slider</value>
</param>
</block>
<block>
<key>variable_qtgui_range</key>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>value</key>
<value>0.03</value>
</param>
<param>
<key>_enabled</key>
<value>0</value>
</param>
<param>
<key>_coordinate</key>
<value>(1040, 116)</value>
</param>
<param>
<key>gui_hint</key>
<value></value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>mul2</value>
</param>
<param>
<key>label</key>
<value>mul2</value>
</param>
<param>
<key>min_len</key>
<value>200</value>
</param>
<param>
<key>orient</key>
<value>Qt.Horizontal</value>
</param>
<param>
<key>start</key>
<value>0</value>
</param>
<param>
<key>step</key>
<value>0.01</value>
</param>
<param>
<key>stop</key>
<value>1.0</value>
</param>
<param>
<key>rangeType</key>
<value>float</value>
</param>
<param>
<key>widget</key>
<value>counter_slider</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
Expand Down Expand Up @@ -250,7 +313,7 @@
</param>
<param>
<key>const</key>
<value>mul</value>
<value>mul2</value>
</param>
<param>
<key>affinity</key>
Expand Down Expand Up @@ -1340,7 +1403,7 @@
</param>
<param>
<key>_coordinate</key>
<value>(968, 792)</value>
<value>(960, 788)</value>
</param>
<param>
<key>_rotation</key>
Expand Down Expand Up @@ -1410,6 +1473,49 @@
<value>0.01</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>1</value>
</param>
<param>
<key>_coordinate</key>
<value>(952, 128)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>mul2</value>
</param>
<param>
<key>label</key>
<value>mul2</value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value></value>
</param>
<param>
<key>value</key>
<value>0.03</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
Expand Down
15 changes: 11 additions & 4 deletions grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
##################################################


Expand All @@ -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")

##################################################
Expand All @@ -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
Expand Down Expand Up @@ -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, ))

##################################################
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 1fa83df

Please sign in to comment.