cockpit icon indicating copy to clipboard operation
cockpit copied to clipboard

Joystick: allow axis protocol configuration

Open ES-Alexander opened this issue 2 years ago • 5 comments

Currently we forcibly send MAVLink MANUAL_CONTROL messages at a fixed rate, even though many vehicles don't support them, and some users may wish to change the frequency. It would be useful to allow turning that off and/or using some other protocol options for the motion control axes.

The most intuitive approach I can think of is providing a dropdown for the "axes protocol" which (for now) allows selecting between None, MAVLink MANUAL_CONTROL, and MAVLink RC_CHANNELS_OVERRIDE, together with a frequency selector/slider for the message rate (when the protocol is not None). That also leaves the UI open for additional protocols later, including non-MAVLink ones if that becomes relevant.

There is a bit of complexity involved though, because if the axes protocol is set to anything other than MANUAL_CONTROL then the corresponding button functions shouldn't be available to the user (since the messages won't be being sent). Perhaps we can allow them to stay selected (so they don't get unmapped), but just grey them out and/or strikethrough them to make it obvious they won't actually work.

ES-Alexander avatar Dec 12 '23 15:12 ES-Alexander

Agree on most things.

And just to get one point correct, we only support MANUAL_CONTROL today, not RC_CHANNELS_OVERRIDE.

rafaellehmkuhl avatar Dec 12 '23 19:12 rafaellehmkuhl

And just to get one point correct, we only support MANUAL_CONTROL today, not RC_CHANNELS_OVERRIDE.

Yes - I’m suggesting that RC_CHANNELS_OVERRIDE is a logical “next” protocol for us to support, which also illustrates why a dropdown would be useful rather than just a toggle switch between None and MANUAL_CONTROL.

ES-Alexander avatar Dec 13 '23 00:12 ES-Alexander

And just to get one point correct, we only support MANUAL_CONTROL today, not RC_CHANNELS_OVERRIDE.

Yes - I’m suggesting that RC_CHANNELS_OVERRIDE is a logical “next” protocol for us to support, which also illustrates why a dropdown would be useful rather than just a toggle switch between None and MANUAL_CONTROL.

Got it. Seems reasonable.

rafaellehmkuhl avatar Dec 13 '23 00:12 rafaellehmkuhl

Combining #1658 and #1759 will likely make this at least possible via workaround.

ES-Alexander avatar Jul 16 '25 15:07 ES-Alexander