eeros_architecture:hal:input_devices
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
eeros_architecture:hal:input_devices [2017/05/03 07:52] – created graf | eeros_architecture:hal:input_devices [2021/04/16 11:52] (current) – [XBox Input] ursgraf | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Mouse Input ===== | ===== Mouse Input ===== | ||
You can use a mouse for position information or its button states. In the control system you create an instance of type [[eeros_architecture: | You can use a mouse for position information or its button states. In the control system you create an instance of type [[eeros_architecture: | ||
- | It is also possible to check for mouse input in the safety system by means of critival | + | It is also possible to check for mouse input in the safety system by means of critical |
- | | + | |
- | | + | |
- | | + | |
As an example you could define a critical input in the safety system as follows | As an example you could define a critical input in the safety system as follows | ||
<code cpp> | <code cpp> | ||
Line 11: | Line 11: | ||
criticalInputs = { in1 }; | criticalInputs = { in1 }; | ||
</ | </ | ||
+ | A more complete example is given in [[getting_started: | ||
+ | WARNING The HAL will contain the three inputs mentioned above only after the control system created its [[eeros_architecture: | ||
+ | |||
+ | ===== XBox Input ===== | ||
+ | You can use a XBox controller for position information or its button states. In the control system you create an instance of type [[eeros_architecture: | ||
+ | It is also possible to check for XBox input in the safety system by means of critical inputs. Defining a [[eeros_architecture: | ||
+ | - XBoxButtonA | ||
+ | - XBoxButtonB | ||
+ | - XBoxButtonX | ||
+ | - XBoxButtonY | ||
+ | - XBoxButtonLB | ||
+ | - XBoxButtonRB | ||
+ | - XBoxButtonBack | ||
+ | - XBoxButtonStart | ||
+ | As an example you could define a critical input in the safety system as follows | ||
+ | <code cpp> | ||
+ | Input< | ||
+ | criticalInputs = { in1 }; | ||
+ | </ | ||
+ | A more complete example is given in [[getting_started: | ||
+ | WARNING The HAL will contain the three inputs mentioned above only after the control system created its [[eeros_architecture: |
eeros_architecture/hal/input_devices.txt · Last modified: 2021/04/16 11:52 by ursgraf