Page 1 of 1

Where to find xbox joystick controller?

Posted: Tue Oct 18, 2016 8:26 am
by SlouchyCat
Dear Crazyfliers,

How does the joystick axis position and set point information send to crazyflie? I am unable to find it in Controller.py file. There is only button cases.

In addition, where can I find the self_takeoff function?

"if i == 2 and data.buttons == 1 and self._takeoff != None:
self._takeoff()"


Thanks!
SlouchyCat

Re: Where to find xbox joystick controller?

Posted: Tue Oct 18, 2016 11:24 am
by arnaud
Hi,

I assume you are talking about the ROS client? It looks like it from your copy-paste

The gamepad is read by the joy node started there for example: https://github.com/bitcraze/lps-ros/blo ... ch#L31-L33

You can see how things are "cabled" together with "rqt_graph" in ROS. The code you copy-pasted is run on a topic that comes from this joy node.

/Arnaud