Parameter update in Client when changed by CF

Firmware/software/electronics/mechanics
Post Reply
Fr4nky
Beginner
Posts: 13
Joined: Tue May 13, 2014 7:00 pm
Location: Vienna

Parameter update in Client when changed by CF

Post by Fr4nky »

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
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Parameter update in Client when changed by CF

Post by tobias »

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.
Post Reply