Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to fly with PS4 controller in ROS2 ? #617

Open
TarwiAkka opened this issue Jan 8, 2025 · 1 comment
Open

how to fly with PS4 controller in ROS2 ? #617

TarwiAkka opened this issue Jan 8, 2025 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@TarwiAkka
Copy link

TarwiAkka commented Jan 8, 2025

Hello,

case 1 :
PS4 controller >>cfclient : takeoff ok.

case 2 :

  • PS4 controller
    -ros2 launch crazyflie launch.py teleop:=True
    -remapping and modifiying teleop.yaml
    -crazyswarm.yaml : controller: 1

The drone, dont takeoff correctly, what's wrong ?
(Falls to the side, the motors do not start at the same time, and do not stop at the same time)

Could you help please ?
Thank you

@TarwiAkka TarwiAkka changed the title how to Takeoff with PS4 controller in ROS2 ? how to fly with PS4 controller in ROS2 ? Jan 9, 2025
@knmcguire knmcguire added bug Something isn't working documentation Improvements or additions to documentation labels Jan 9, 2025
@knmcguire
Copy link
Collaborator

@TarwiAkka The current joystick mapping is now set to an xbox controller as mentioned in the documentation: https://imrclab.github.io/crazyswarm2/usage.html#teleoperation-controller. Is that done correctly?

Also, the Crazyflie will be locked if the first setpoint it is sent to it are non-zeros, this is an implementation in the firmware but described here in the python API: https://www.bitcraze.io/documentation/repository/crazyflie-lib-python/master/user-guides/python_api/#attitude-setpoints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants