diff options
Diffstat (limited to 'grc/blocks/gr_char_to_float.xml')
-rw-r--r-- | grc/blocks/gr_char_to_float.xml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/grc/blocks/gr_char_to_float.xml b/grc/blocks/gr_char_to_float.xml index 9ab778051..838b6a203 100644 --- a/grc/blocks/gr_char_to_float.xml +++ b/grc/blocks/gr_char_to_float.xml @@ -8,13 +8,28 @@ <name>Char To Float</name> <key>gr_char_to_float</key> <import>from gnuradio import gr</import> - <make>gr.char_to_float()</make> + <make>gr.char_to_float($vlen, $scale)</make> + <callback>set_scale($scale)</callback> + <param> + <name>Vec Length</name> + <key>vlen</key> + <value>1</value> + <type>int</type> + </param> + <param> + <name>Scale</name> + <key>scale</key> + <value>1</value> + <type>real</type> + </param> <sink> <name>in</name> <type>byte</type> + <vlen>$vlen</vlen> </sink> <source> <name>out</name> <type>float</type> + <vlen>$vlen</vlen> </source> </block> |