mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
905 stars 994 forks source link

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

Open 1776340526 opened 3 months ago

1776340526 commented 3 months ago

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)