User Tools

Site Tools


getting_started:tutorials:hal3

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
getting_started:tutorials:hal3 [2017/05/03 07:40] grafgetting_started:tutorials:hal3 [2017/05/11 10:56] graf
Line 1: Line 1:
-====== Reading from a XBox Controller ======+====== Reading from a XBox Controller or a Space Navigator ======
 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/xBoxTest''. 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/xBoxTest''.
 This examples reads and outputs periodically all 8 buttons and 8 axis of a XBox controller. Further, the safety system checks for the button 'X' to be pressed. This causes a level change. As soon as the button is released the safety system changes back to the first level. \\ This examples reads and outputs periodically all 8 buttons and 8 axis of a XBox controller. Further, the safety system checks for the button 'X' to be pressed. This causes a level change. As soon as the button is released the safety system changes back to the first level. \\
 If you connect several such controller you have to check in ''/dev/input/'' for the controller of your choice and adapt the program accordingly.  If you connect several such controller you have to check in ''/dev/input/'' for the controller of your choice and adapt the program accordingly. 
 +
 +----
 +There is a second example demonstrating the use of a space navigator. Open a shell in the build directory of your EEROS library and run ''examples/controlsystem/spaceNavigatorTest''.
 +This examples reads and outputs periodically the 3 position and 3 rotation axis together with the state of the 2 buttons of a space navigator mouse. Further, the safety system checks for the left button to be pressed. This causes a level change. As soon as the button is released the safety system changes back to the first level.