mavlink / qgroundcontrol

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

Feature request - Add optional, configurable, on-screen buttons for aux servo control #6109

Open fredrikfalkman opened 6 years ago

fredrikfalkman commented 6 years ago

It would be useful to be able to choose to show buttons or sliders that could be mapped to aux servos. It would be preferable if you could choose the name/description of the buttons.

This would be as an alternative to use buttons and dials on an RC transmitter. The function would be most useful for those who fly without RC.

I guess this is similar to the current "Trigger Camera" in the main instrument panel. A dedicated instrument panel screen might be a good place for these controls to live.

My immediate use for this function would be for a plane to control a remote launcher with commands like "Prepare Launch", "Cancel Launch", "Launch", "Turn Launcher Right", "Turn Launcher Left".

Other uses might be for flaps, retractable wheels, pitot heaters, etc.

GlidLov commented 6 years ago

That's a great idea. Can be used also for gimbal control since ardupilot fw has mavlink messages to do that (trigger, do_digicam_control, etc), so a virtual dashboard could be configured with preferred commands (pilot: has main command, camera operator: has gimbal control, trigger, zoom, etc)

DonLakeFlyer commented 6 years ago

@GlidLov You are talking about something different. This is for servo commands only. Gimbal control is already being working on separately and will be coming soon in 3.4.

GlidLov commented 6 years ago

Well, glad to read that, but i'm not referring only to gimbal rather Zoom, Trigger and maybe a configurable way to add commands in "button" style (not proportional input needed)

DonLakeFlyer commented 6 years ago

I believe @dogmaphobic may have alreaded gimbal commands to the instrument panel camera page. Camera trigger was already there.

manavgandhi17 commented 2 years ago

Has there been any update on this matter? Looking for something similar to what the "Servos" tab is in Mission Planner.

manavgandhi17 commented 2 years ago

Pinging to see if any work has been done on integrating this feature.

zdanek commented 2 years ago

I have almost built something that might be accurate. A mapping of a buttons to PWM values - low and high. With latch. If you press a button, RC override is sent via mavlink - a defined high value. If button is released a defined low value is sent. Latch means rotating high and low at every button press.

I'd love to show you a screen with this but I left joystick at the office. It required joystick to enable button assigment panel. But on Thursday I will post a screen to show you what I mean.

GlidLov commented 2 years ago

zdanek, it seems a good point to start with experimenting. I'm definitely interested on integrating this feature

zdanek commented 2 years ago

Sorry for delay. I overestimated my availability. So, basically GUI for binding buttons to PMW looks like this: Screenshot from 2022-09-14 17-15-02

zdanek commented 2 years ago

@GlidLov @manavgandhi17 @fredrikfalkman @DonLakeFlyer I've created a feature that might be a starting point for this one. Please take a look #10430 with a PR #10431