cockpit
cockpit copied to clipboard
joystick: indicate expected motion axes for axis names
Current behaviour
Axis inputs can be assigned to Manual Control axes, which have single-letter names and behaviour that's dependent on the firmware of the vehicle's autopilot.
This is causing confusion for users, and makes joystick configuration less intuitive than it could be.
Expected or desired behaviour
Check the vehicle firmware, and display axis labels (e.g. Axis X (forward)) that are conditional on how it is known to implement manual control axis handling.
| Firmware | X | Y | Z | R | S | T |
|---|---|---|---|---|---|---|
| ArduSub | Forward (/Pitch[^1]) | Lateral (/Roll[^1]) | Vertical | Yaw | Roll | Pitch |
| ArduRover | - | Steer | Throttle | - | - | - |
| ArduCopter | Pitch | Roll | Throttle | Yaw | - | - |
| ArduPlane | Pitch | Roll | Throttle | Rudder | - | - |
| PX4 | Pitch | Roll | Throttle | Yaw | - | - |
[^1]: when using the roll/pitch toggle - we can leave this out of the first pass
Prerequisites
- [x] I have checked to make sure that a similar request has not already been filed or fixed.
Vaguely related to #2060.