blockJoystickInputOriginal
Original block without OM related work-around (won't instantiate in 2017-05-12 OM). Joystick input implementation for interactive simulations
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
Information
This block reads data from the joystick ID (0 = first joystick appearing in windows control panel). Multiple blocks can be used in order to retrieve data from more than one joysticks. Up to six axes and 32 buttons are supported. The input values ranges between -1 and 1 and can be scaled by the vector gain. Via the parameter sampleTime the input sampling rate is chosen.Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Period | sampleTime | 0.01 | sample time for input update |
| Real[6] | gain | ones(6) | gain of axis output |
| Integer | ID | 0 | ID number of the joystick (0 = first joystick attached to the system) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput[6] | axes | ||
| Modelica.Blocks.Interfaces.RealOutput | pOV | ||
| Modelica.Blocks.Interfaces.IntegerOutput[32] | buttons |