I would like to use an additional key in the client's 'configuration input device'.
Key registration via detect has been completed, but no code has been found for firmware to use it.
Could you tell me the location of the file and the name of the variable where to handle the input value of the device through the client?
configure input device
Re: configure input device
it is explained here
https://www.bitcraze.io/documentation/r ... fo_client/
https://www.bitcraze.io/documentation/r ... fo_client/
Re: configure input device
Despite your help, I couldn't achieve what I wanted.
I saw the data you said, but I didn't understand it exactly.
I think we don't need to modify the file additionally because we set it up through client.
According to the data you gave me, the client seems to update the file.
I want to use this setting as a firmware code.
For example, the value of pitch, yaw, etc. can be used through the setpoint of the firmware stabilizer.c.
https://github.com/bitcraze/crazyflie-f ... zer.c#L282
I found out roughly that this was called from the commander.c files.
Like this, I think the variables for the other buttons are already set in the firmware. I want to know the location of these.
If additional settings are not defined in firmware yet, I would like to know how to add them.
I saw the data you said, but I didn't understand it exactly.
I think we don't need to modify the file additionally because we set it up through client.
According to the data you gave me, the client seems to update the file.
I want to use this setting as a firmware code.
For example, the value of pitch, yaw, etc. can be used through the setpoint of the firmware stabilizer.c.
https://github.com/bitcraze/crazyflie-f ... zer.c#L282
Code: Select all
controller(&control, &setpoint, &sensorData, &state, tick);
Like this, I think the variables for the other buttons are already set in the firmware. I want to know the location of these.
If additional settings are not defined in firmware yet, I would like to know how to add them.
Re: configure input device
Are you looking on how the cfclient sends it to the crazyflie? Is this the part of the code that you are looking for: https://github.com/bitcraze/crazyflie-c ... in.py#L197