We have created a lfm_source_c module. Ran the cmake ../, make, sudo make install, and sudo ldconfig commands. All worked fine. When attempting to use our new block in python, we received the following error about a constructor not being defined. I'm assuming there is just something small wrong with the swig file (gr_modtool.py generated). Our block has 6 parameters, all of which are doubles, but the last which is a gr_complex. We have constructors defined in the .h and .cc files.
Any ideas of how to fix this problem?
Error:
Traceback (most recent call last):
File "chirp_test.py", line 72, in <module>
tx_sink().run()
File "chirp_test.py", line 50, in __init__
sig0 = tx_test(options.samp_rate)
File "chirp_test.py", line 18, in __init__
src = ""> File "/usr/local/lib/python2.7/dist-packages/radar2/radar2_swig.py", line 319, in __init__
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
AttributeError: No constructor defined
Thanks,
ONU GNU Radio