Logitech G29 Steering Wheel

Libraries:
Simulink Real-Time /
Logitech G29
Description
The Logitech G29 Steering Wheel block reads data from a Logitech G29 Steering Wheel (PS3 only). The block does not support a Stick Shift module.
Ports
Output
Buttons — Status of steering wheel buttons
0 (= unpressed) | 1 (= pressed)
The Buttons
output is a vector of Boolean values that indicate
the status of buttons on the steering wheel. The order of the button values in the
vector is:
Square
X
Circle
Triangle
LPaddle
RPaddle
L2
R2
L3
R3
Share
Option
PS
Data Types: Boolean
Steering — Value of steering wheel position
0 (= left most) | 65535 (= right most)
The Steering
output value indicates the position of the
steering wheel.
Data Types: uint16
Pedals — Status of throttle, brake, and clutch pedals
0 (= not engaged) | 255 (= fully engaged)
The Pedals
output is a vector of values that indicate the
status of the throttle, brake, and clutch pedals. The order of the pedal values in the
vector is:
Throttle
Brake
Clutch
Data Types: uint8
Direction — Status of direction pad buttons on steering wheel
0 (= UP) | 2 (= RIGHT) | 4 (= DOWN) | 6 (= LEFT) | 8 (= UNPRESSED)
The Direction
output value indicates a button press on the
direction pad. When you press the direction pad in between the pad buttons,
intermediate values occur.
Data Types: uint8
Status — Status of communications with steering wheel
0 (default) | negative value
The Status
output value indicates successful communications
with the steering wheel (0) or unsuccessful communications (negative value).
Data Types: int32
Parameters
sampleTime — Sample time for steering wheel data
-1 (inherited) (default)
Select the sample time for steering wheel data. The recommended
sampleTime
is 10ms.
Programmatic Use
Block Parameter:
sampleTime |
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2018b
See Also
External Websites
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)