diff attached

It looks like the guts of the dqpsk2 demod changed but the grc file was not updated. I vote for keeping the grc files with the python/c++ source.

-Josh

On 10/18/2010 02:06 PM, Benjamin Lonske wrote:
When I try to use the DPSK2 demod block in grc, I get the below error. The
issue seems to be that the grc block has different arguments than
dqpsk2_demod() in dqpsk2.py (see below). Am I missing something here? I am
using the gnuradio version 3.3.0.

Thanks,
Ben

===========
(GRC ERROR)
Traceback (most recent call last):
   File
"/gnuradio/gnuradio-3.3.0/gnuradio-examples/grc/usrp/usrp_rx_dpsk.py", line
211, in<module>
     tb = usrp_rx_dpsk()
   File
"/gnuradio/gnuradio-3.3.0/gnuradio-examples/grc/usrp/usrp_rx_dpsk.py", line
125, in __init__
     sync_out=True,
TypeError: __init__() got an unexpected keyword argument 'costas_alpha'

=============
(BLK2_DXPSK2_DEMOD.XML)
<block>
     <name>DPSK2 Demod</name>
     <key>blks2_dxpsk2_demod</key>
     <import>from gnuradio import blks2</import>
     <make>blks2.$(type)2_demod(
     samples_per_symbol=$samples_per_symbol,
     excess_bw=$excess_bw,
     costas_alpha=$costas_alpha,
     timing_alpha=$timing_alpha,
     timing_max_dev=$timing_max_dev,
     gray_code=$gray_code,
     verbose=$verbose,
     log=$log,
     sync_out=$sync_out,

=============
(DQPSK2.PY)
class dqpsk2_demod(gr.hier_block2):
     def __init__(self,
                  samples_per_symbol=_def_samples_per_symbol,
                  excess_bw=_def_excess_bw,
                  freq_alpha=_def_freq_alpha,
                  phase_alpha=_def_phase_alpha,
                  timing_alpha=_def_timing_alpha,
                  timing_max_dev=_def_timing_max_dev,
                  gray_code=_def_gray_code,
                  verbose=_def_verbose,
                  log=_def_log,
                  sync_out=False):




_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
diff --git a/grc/blocks/blks2_dxpsk2_demod.xml b/grc/blocks/blks2_dxpsk2_demod.xml
index ce8305c..5d6ae9f 100644
--- a/grc/blocks/blks2_dxpsk2_demod.xml
+++ b/grc/blocks/blks2_dxpsk2_demod.xml
@@ -11,7 +11,6 @@
 	<make>blks2.$(type)2_demod(
 	samples_per_symbol=$samples_per_symbol,
 	excess_bw=$excess_bw,
-	costas_alpha=$costas_alpha,
 	timing_alpha=$timing_alpha,
 	timing_max_dev=$timing_max_dev,
 	gray_code=$gray_code,
@@ -19,8 +18,6 @@
 	log=$log,
 	sync_out=$sync_out,
 )</make>
-	<callback>clock_recov.set_alpha($costas_alpha)</callback>
-	<callback>clock_recov.set_beta(0.25*$costas_alpha**2)</callback>
 	<callback>time_recov.set_alpha($timing_alpha)</callback>
 	<param>
 		<name>Type</name>
@@ -48,12 +45,6 @@
 		<type>real</type>
 	</param>
 	<param>
-		<name>Costas Alpha</name>
-		<key>costas_alpha</key>
-		<value>0.175</value>
-		<type>real</type>
-	</param>
-	<param>
 		<name>Timing Alpha</name>
 		<key>timing_alpha</key>
 		<value>0.100</value>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to