pothosware / gr-pothos

Pothos bindings for GNU Radio blocks
https://github.com/pothosware/gr-pothos/wiki
GNU General Public License v3.0
12 stars 1 forks source link

Invalid default values resulting from parsing #22

Open ncorgan opened 4 years ago

ncorgan commented 4 years ago

More TBD

guruofquality commented 4 years ago

Blocks needing boost::shared_ptr as parameter

Any chance the recent fec factory helps with this. I cant think of a way to do this other than give it a string in the parameter box which can be converted to a fec object.

Blocks with Rate parameter set to rate (no quotes, not a string)

I guess rates not defined until someone creates a global variable "rate". Not sure, it mimics GRC here in that someone wanted those blocks to use the variable and not have a default number.

ncorgan commented 4 years ago

Yup, the FEC factory fix was a direct result of this. I guess I forgot to mention that in the commit log. There are a couple other things like this, but the FEC one was the easiest to knock out.

On Feb 25, 2020, at 21:09, Josh Blum notifications@github.com wrote:

 Blocks needing boost::shared_ptr as parameter

Any chance the recent fec factory helps with this. I cant think of a way to do this other than give it a string in the parameter box which can be converted to a fec object.

Blocks with Rate parameter set to rate (no quotes, not a string)

I guess rates not defined until someone creates a global variable "rate". Not sure, it mimics GRC here in that someone wanted those blocks to use the variable and not have a default number.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ncorgan commented 3 years ago

This may be fixed with the shift to 3.8, as parsing is moving over from the old GRC XML files to BlockTool output. At the very least, the behavior will be changed.