User Tools

Site Tools


getting_started:tutorials:hal2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
getting_started:tutorials:hal2 [2017/04/22 17:33] grafgetting_started:tutorials:hal2 [2017/05/03 07:39] graf
Line 1: Line 1:
 ====== Reading from a Mouse ====== ====== Reading from a Mouse ======
 In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run ''examples/controlsystem/mouseTest''. In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run ''examples/controlsystem/mouseTest''.
-This examples does reads and outputs periodically all 8 buttons and 8 axis of XBox controllerIf you connect several such controller you have to check in ''/dev/input/'' for the controller of your choice and adapt the program accordingly. +This examples reads four axis of a mouse together with three buttons and outputs the results periodically. Further, the safety system checks for the middle button to be pressed. This causes level changeAs soon as the button is released the safety system changes back to the first level.\\ 
 +In order to read from the proper mouse events you can install and run the ''evtest'' program.  
 +<code> 
 +$ sudo apt-get install evtest 
 +$ sudo evtest 
 +</code> 
 +This programm will list all connected devices together with the associated event number. Please adapt the program accordingly. It might be necessary to run it with root priveledges.
getting_started/tutorials/hal2.txt · Last modified: 2024/06/10 17:57 by ursgraf