This shows you the differences between two versions of the page.
robots:phoenix:manual:gamepad [2014/02/26 14:36] claes [Installation] |
robots:phoenix:manual:gamepad [2021/08/14 04:21] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Logitech Gamepad ====== | ||
- | ===== Installation ===== | ||
- | Install the following packages | ||
- | sudo apt-get install joystick | ||
- | sudo apt-get install jstest-gtk | ||
- | Make sure the gamepad is in X-mode, run this command to check | ||
- | dmesg | grep input | ||
- | you should now see something similar to this somewhere | ||
- | input: Generic X-Box pad as / | ||
- | now open jstest-gtk to see the prot where the controller is installed. In this case | ||
- | / | ||
- | | ||
- | The gamepad is now installed on the computer. | ||
- | |||
- | ==== Permissions ==== | ||
- | Do the following steps: | ||
- | - Add a new group < | ||
- | - Add your user to the group < | ||
- | - Add the files joystick_acl_correction.sh and 80-local.rules to < | ||
- | - Make joystick_acl_correction.sh executable < | ||
- | |||
- | <file bash joystick_acl_correction.sh> | ||
- | #!/bin/bash | ||
- | |||
- | if [ -c / | ||
- | then | ||
- | setfacl -m g: | ||
- | echo " | ||
- | else | ||
- | echo "No gamepad detected, ACL not set" | ||
- | fi | ||
- | </ | ||
- | |||
- | <file bash 80-local.rules> | ||
- | #This rule is to make the Logitec gamepad read/ | ||
- | SUBSYSTEM==" | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ===== Running MobotWare with Gamepad ===== | ||
- | go to the folder | ||
- | / | ||
- | open the file | ||
- | rhdconfig.joy.xml | ||
- | make sure the | ||
- | <joystik port="/ | ||
- | is set to the correct port. | ||
- | |||
- | Now start MobotWare | ||
- | |||
- | ==== Starting mobotware ==== | ||
- | {{page> | ||