Using PS3-Controller with LPS

Post here to get support
Post Reply
chrisss
Beginner
Posts: 4
Joined: Sat Oct 22, 2016 6:35 pm

Using PS3-Controller with LPS

Post by chrisss »

Hi there,

it's me again..
I am currently using the CF2 with the LPS. Every works just fine, if I move the CF in the room the CF-position is moving accordingly.
But I just can't get the CF to take off, when I use ('dwm_loc_ekf_hover.launch'), I think mainly because I am using a PS3-Controller instead of an XBOX360, i do not own one.

Is there a possibility to use the launch-scripts with an PS3-Controller for take-off, etc.?


Best regards,
Christian
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Using PS3-Controller with LPS

Post by arnaud »

Hi Christian,

Nice that you get some position estimate!

To use another king of gamepad you need to modify this file from the crazyflie driver: https://github.com/whoenig/crazyflie_ro ... py#L38-L54

You can find your gamepad mapping by running (one command per console ...):

Code: Select all

roscore
rosrun joy joy_node
rostopic echo /joy
This will allow you to see where the different button are mapped and to modify the code accordingly.

Best,
Arnaud
Post Reply