0505-12 XBox360
Example Projects > 0505 Integrating HID devices > 0505-12 XBox360
Integrating XSR-SIM RC receiver
This example shows how to integrate a HID device into REXYGEN project. It is preconfigured for the XBox 360 and compatible gamepads.
To use this example you should know how a Linux input device is working.
To list the HID devices connected to the target device you can install the
input-utils package and check the HID device lsinput
command. Find the event name
for the receiver and change the parameter device
in the Microsoft X-Box 360 pad subsystem e.g. /dev/input/event0
.
Read the complete description of the REXLANG function block for more details.
Prerequisites
- REXYGEN Runtime Core must be installed and running on the target device.
- Operating system of the target device must be Linux.
- The XSR-SIM must connected to the target device.
Running the example
- The *hid_exec.mdl file is the project main file.
- Open it with REXYGEN Studio, compile and download it to the target device.
- Switch to Watch mode and observe the algorithm.
- Select the TRND block and enable online monitoring (Target->Watch Selection).
- Double-click the TRND block in Watch mode to view time plots of the data.
Documentation
- Press F1 for help on the selected function block in the REXYGEN Studio.
- REXLANG function block documentation
- Function blocks of REXYGEN
- REXYGEN Studio User Guide
- Complete documentation of REXYGEN
Additional information
- Visit the REXYGEN webpage for more information about the example projects and developing advanced automation and control solutions using REXYGEN.