Page 1 of 1

How to control yaw with xbox controller's L1 and R1 button

Posted: Tue Nov 24, 2020 7:24 am
by mcx
Hi,
I'm trying to control the CF2.1 with Xbox One Game Controller. Everything works fine, but I found it's difficult to control thrust and yaw with the same joystick. So I want to control yaw with L1 and R1 button.I konw how to use commander.send_setpoint.But I want to know how the value be send from controller to client and CF2.1. Maybe I can change some python core of clients by pychram in win10.I just need CF2.1 rotate clockwise when I push R1 button and rotate counterclockwise when I push L1 button. What should I do?

Re: How to control yaw with xbox controller's L1 and R1 button

Posted: Tue Nov 24, 2020 10:28 am
by arnaud
This functionality is already implemented in the client but not exposed in the GUI. We call it "split axis" and it can be set in the JSON file of the input device mapping.

There is some doc about this functionality and the JSON file format in the repository doc: https://www.bitcraze.io/documentation/r ... figuration

Re: How to control yaw with xbox controller's L1 and R1 button

Posted: Wed Nov 25, 2020 1:29 am
by mcx
OMG, that's amazing! I did it!
Thank you so much for the quick and helpful hint!