Adding a New Joystick to AUV Workbench

Testing the joystick

Joystick Controller Configuration Tool

A number of joystick devices are already preconfigured in the workbench. If no match is not found for your device, follow the listed steps to run the configuration panel.

Joystick Configuration Panel

  1. The new joystick controller must be plugged into your computer prior to tool launch.
  2. Open the editor from the workbench through the menu: Tools -> Joystick Configuration Generator
  3. Confirm the editor is editing the right configuration file. It defaults to the current user's top-level file configuration/c_joystick.xml
    It is also possible to edit the master configuration template configuration/templates/c_joystick.xml
  4. Select the controller to configure from the list at the bottom left side.
  5. Select the workbench action to link to from the list at the bottom right side.
  6. Trigger the component (i.e. by moving the axis or pressing the button).
    A mapping should come up in the table.
  7. Repeat steps 3-5 until all desired mappings are generated.
    If you wish to delete a mapping, right click on the table entry or left click the entry and press the "Delete Mapping" button at the bottom left.
  8. Save the mappings by clicking "Save Modifications" at the bottom right.
  9. Restart the workbench in order to use the new configuration

Troubleshooting

Configuration design

The joystick mappings of joystick controls to workbench actions in Joystick Mode are defined in the configuration file c_joystick.xml.

For example, this is a joystick mapping in a configuration file:
<event joystickTag="x" workbenchEvent="DEVICE_STEERING" />

The joystickTag and workbenchEvent values must correspond exactly to the above constraints, or else the workbench will not be able to parse the correct mappings for your new device. Because this can be complicated, a tool is built into the Workbench which determines the identifier of the control and possible workbench actions.

TODO



Back to the Help page index, the AUV Workbench: Introduction page, or online to AUV Workbench home page.