Tuesday, April 22, 2025

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

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> 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