Skip to content

Commit fc06c64

Browse files
committed
content: usage: advanced: update joystick protocols
1 parent 989ca02 commit fc06c64

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

content/usage/advanced/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ default each joystick can provide up to 32 axis ranges and 32 buttons.
829829

830830
#### Joystick Protocols
831831

832-
When mapping the functionality of a joystick button or axis, there are multiple protocols to choose from:
832+
When mapping the functionality of a joystick button or axis, there are multiple protocols to choose from, which can be mixed and matched across different buttons and axes:
833833

834834
{{ easy_image(src="joystick-protocols", width=500, center=true) }}
835835
{{ easy_image(src="joystick-axis-mapping", width=500, center=true) }}
@@ -856,9 +856,7 @@ the last joystick input it received before losing access to the joystick.
856856
is operating near.
857857
{% end %}
858858

859-
Button functions are determined by the autopilot firmware - e.g. in ArduSub they correspond to
860-
[`BTNn_FUNCTION`](https://docs.bluerobotics.com/ardusub-zola/software/autopilot/ArduSub-4.1/developers/parameters/#btnn-function-function-for-button)
861-
parameter values.
859+
Button functions are [determined by the autopilot firmware](https://ardupilot.org/sub/docs/buttons.html).
862860

863861
As a few caveats:
864862
- ArduSub <= 4.1.x only supports 16 independent buttons and 4 axis ranges in its `MANUAL_CONTROL` handling
@@ -888,6 +886,11 @@ Joystick buttons can also be configured to run more general functionalities, lik
888886
sending a single MAVLink message. These options can be provided (or defined) using
889887
[Cockpit's Action system](#cockpit-actions-1).
890888

889+
##### Data Lake Variables
890+
891+
When it is useful for the button state to represent a value within some other functionality, the button can
892+
be configured to control a variable within Cockpit's [Data Lake system](#data-lake).
893+
891894
##### Modifier Keys
892895

893896
Modifiers allow sacrificing one button in order to add an extra functionality slot for every non-modifier button.
95.5 KB
Loading

0 commit comments

Comments
 (0)