How to control yaw with xbox controller's L1 and R1 button
Posted: Tue Nov 24, 2020 7:24 am
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?
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?