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

The button in mavros/manual_control/control is always 0 #1976

Open
1776340526 opened this issue Aug 15, 2024 · 0 comments
Open

The button in mavros/manual_control/control is always 0 #1976

1776340526 opened this issue Aug 15, 2024 · 0 comments

Comments

@1776340526
Copy link

Issue details

I use mavros (ros2) to connect a raspberry pi 4 and pixhawk4 and connect it to QGC. I connected a game controller in QGC and wanted to read the joystick and button information of the controller. Now I can read the x, y, z, r information of the controller normally, but the button information is always 0. In QGC, I can see that the button is pressed. I would like to ask how to solve this problem? I would be grateful if you could answer it! ! !

MAVROS version and platform

Mavros: ros2
ROS: humble
Ubuntu: 22.04
Game controller:Logitech F710

Autopilot type and version

[ ] ArduPilot
[√] PX4

ros2 topic echo /mavros/manual_control/control
header:
stamp:
sec: 1723704903
nanosec: 509129632
frame_id: ''
x: 0.0
y: 0.0
z: 0.0
r: 0.0
buttons: 0(buttons are always 0, even if the GQC shows that they have been pressed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant