Page 1 of 1

Using PS3-Controller with LPS

Posted: Tue Nov 08, 2016 5:12 pm
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

Re: Using PS3-Controller with LPS

Posted: Wed Nov 09, 2016 9:54 am
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