mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.22k stars 3.55k forks source link

Add joystick buttons support #5646

Closed kikislater closed 6 years ago

kikislater commented 7 years ago

Hi, Since this PR https://github.com/ArduPilot/ardupilot/pull/6927 Qgroundcontrol could handle joystick. It's working well but buttons are not supported. Is it possible to add button support for Ardupilot firmware with joystick? Idea is to arm/disarm, change flight mode with joystick buttons. I have only this message : Buttons 0-15 reserved for firmware use

joystick_qgroundcontrol

jaxxzer commented 7 years ago

This needs to be implemented in the autopilot firmware first. Which autopilot firmware (and version) are you using? The newer APM firmwares have begun to support the joystick, but I'm not sure about the buttons.

kikislater commented 7 years ago

Ok didn't think it was a fw issue ! I'm running ardupilot fw : arduplane 3.8.2

jaxxzer commented 7 years ago

https://github.com/mavlink/qgroundcontrol/issues/5644

gigorvd commented 6 years ago

I tested the firmware on ArduPlane 3.8.4 and ArduCopter 3.5.4 and button does not work, but joystick axes is working correctly. But on ArduSub 3.5.2 buttons and joystick axes working correctly.

JAR4x4 commented 6 years ago

Any update on this matter?

DonLakeFlyer commented 6 years ago

@jaxxzer Any update on what the status of this is supposed to be for other ArduPilot firmware types?

JAR4x4 commented 6 years ago

I've got the four control axis working, but I'm not able to map any buttons. I'm running ArduCopter 3.5 on a Navio2

jaxxzer commented 6 years ago

All of the ardupilot vehicles support MANUAL_CONTROL for r,p,y,throttle input. Only ArduSub supports the use of buttons for other inputs.

JAR4x4 commented 6 years ago

@jaxxzer thanks for the reply! Any chance to get buttons to work with ArduCopter?

DonLakeFlyer commented 6 years ago

@jaxxzer Should this be an open QGC issue? Does something need to change in QGC is say ArduCopter adds buytton support?

jaxxzer commented 6 years ago

No issue in QGC. @JAR4x4 this would need to be added as a feature request in the ardupilot repository. I don't think this will happen any time soon as arducopter is built around the concept of RC transmitter switches which have fundamentally different operation (latching) than momentary buttons.

DonLakeFlyer commented 6 years ago

Closing this then