Hello,
I have a parameter that gets set to 1 in the client to activate a flightmode on the Crazyflie. This works as expected and the parameter in the client shows as 1.
The Crazyflie then sets the value back to 0 after some time, but that new value is not sent to the client (or the param_updated_callback is just not executed), which keeps showing the parameter as 1.
Is there any way to tell the Crazyflie to send the new value to the client when it is changed? Or do I have to repeatably poll the parameter in the client using request_param_update()?
Regards,
Daniel
Parameter update in Client when changed by CF
Re: Parameter update in Client when changed by CF
We recently discussed improvements to the parameter framework which might include functionality similar to what you are looking for. However now the parameter framework is a one way street. The Crazyflie can't change parameters when it is running as it is not transferred back. Instead the parameters needs to be polled for any change. The logging framework is is meant to look at variables and is a one way street the other way around.