Where to find xbox joystick controller?

Firmware/software/electronics/mechanics
Post Reply
SlouchyCat
Member
Posts: 30
Joined: Mon Oct 10, 2016 3:56 am

Where to find xbox joystick controller?

Post 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
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Where to find xbox joystick controller?

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