configure input device

Firmware/software/electronics/mechanics
Post Reply
SH_Lee
Member
Posts: 35
Joined: Tue Feb 18, 2020 8:48 am

configure input device

Post by SH_Lee »

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?
Attachments
aaaaa.JPG
wydmynd
Member
Posts: 53
Joined: Thu Dec 06, 2018 9:25 am

Re: configure input device

Post by wydmynd »

SH_Lee
Member
Posts: 35
Joined: Tue Feb 18, 2020 8:48 am

Re: configure input device

Post by SH_Lee »

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

Code: Select all

controller(&control, &setpoint, &sensorData, &state, tick);
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.
kimberly
Bitcraze
Posts: 560
Joined: Fri Jul 06, 2018 11:13 am

Re: configure input device

Post by kimberly »

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