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

TypeNameDefaultDescription
Modelica.Units.SI.PeriodsampleTime0.01sample time for input update
Real[6]gainones(6)gain of axis output
IntegerID0ID number of the joystick (0 = first joystick attached to the system)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutput[6]axes
Modelica.Blocks.Interfaces.RealOutputpOV
Modelica.Blocks.Interfaces.IntegerOutput[32]buttons