Pilot Joystick
Provide joystick interface on Windows platform
Libraries:
Aerospace Blockset /
Animation /
Animation Support Utilities
Alternative Configurations of Pilot Joystick Block:
Pilot Joystick All
Description
The Pilot Joystick block provides a pilot joystick interface for a Windows® platform. Roll, pitch, yaw, and throttle are mapped to the joystick X, Y, R, and Z channels respectively.
The Pilot Joystick and Pilot Joystick All blocks are alternative configurations of the same block.
Pilot Joystick — Outputs four axes.
Pilot Joystick All — Outputs all channels.
To generate deployable code, select one of the configuration parameter Microsoft®
Visual Studio® C++ nmake
toolchains from Code Generation > Toolchain.
Examples
Limitations
The Pilot Joystick block is not supported in Simulink Online.
If the joystick does not support an R (rudder or twist) channel, yaw output is set to zero. Outputs are of type double, except when Joystick ID is set to
AllOutputs
mode, which is a uint32 flagword of bits. On non Microsoft platforms, this block outputs zeros.Pitch value has the opposite sense as that delivered by the FlightGear joystick interface.