Thursday, April 24, 2025

Re: Dynamic variables in C++ OOT for Gnu Radio 3.10

Hi Huang Wei,

nice to have you here!

Can you show us where you use `_param` in your C++ implementation?
What you show us looks right, in general.

Best regards,
Marcus

On 4/22/25 4:56 PM, Huang Wei wrote:
> And I have added in the .yml file:
> callbacks:
> - set_param(${param})
>
> But still the value can't be changed.
>
> On Tue, 22 Apr 2025 at 15:16, Huang Wei <weizardry@gmail.com <mailto:weizardry@gmail.com>>
> wrote:
>
> Hello everyone,
>
> In Gnu Radio 3.10, how to set a variable in a C++ OOT block that can be adjusted
> dynamically by a QT GUI range?
> I did in a .h file:
>   Private:
>     float _param;
>   Public:
>     void set_param(float param) {_param = param;}
> and in the impl.cc file:
>   _param = param;
>
> anywhere else I need to change? I just tried before in Gnu Radio 3.7, and now I am
> very lost with the new version.
>
> Thank you very much.
>
> Regards,
> Wei
>
>

No comments:

Post a Comment