|
| 1 | + |
| 2 | + |
| 3 | +<popup-img src="image.png" alt="image"></popup-img> |
| 4 | +[logitechg.com : Logitech G29 Steering wheel](https://www.logitechg.com/en-us/shop/p/driving-force-racing-wheel.941-000110) |
| 5 | + |
| 6 | +## Overview |
| 7 | +The `AWSIM-demo.x86-64` simulation (included in [AWSIM-demo.zip](../../../Downloads/index.md)) featured in the [Quick-start-demo](../../QuickStartDemo/index.md) page supports the Logitech G29 Steering wheel. This page explains how to set it up and configure it. |
| 8 | + |
| 9 | +**The behavior of G29 varies depending on the control mode.** |
| 10 | + |
| 11 | +- Control mode is `AUTONOMOUS` : G29 automatically reflects the vehicle's steering angle. |
| 12 | +- Control mode is `MANUAL` : User can control the vehicle via G29. |
| 13 | + |
| 14 | +## How to setup |
| 15 | + |
| 16 | +1. Connect the Logitech G29 to your PC. (PS3 mode recommended) |
| 17 | + |
| 18 | + !!! warning |
| 19 | + When connected to a PC, automatic calibration will start and the steering wheel will rotate. Please be careful to avoid injury. |
| 20 | + |
| 21 | +1. Check the device path for G29. |
| 22 | + |
| 23 | + Enter `evtest` command. |
| 24 | + ``` |
| 25 | + evtest |
| 26 | + ``` |
| 27 | + Result. |
| 28 | + ```{.yml .no-copy} |
| 29 | + No device specified, trying to scan all of /dev/input/event* |
| 30 | + Not running as root, no devices may be available. |
| 31 | + Available devices: |
| 32 | + /dev/input/event16: input-remapper gamepad |
| 33 | + /dev/input/event22: Logitech G29 Driving Force Racing Wheel |
| 34 | + Select the device event number [0-22]: |
| 35 | + ``` |
| 36 | +
|
| 37 | + In this case, the device path for G29 is `/dev/input/event22`. |
| 38 | +
|
| 39 | +1. Enter the g29 device path in `sample-config.json`. Please replace `<device path number>` as appropriate. |
| 40 | +
|
| 41 | + !!! info |
| 42 | + `sample-config.json` is included in [AWSIM-demo.zip](../../../Downloads/index.md). |
| 43 | +
|
| 44 | + ```json |
| 45 | + ~~ |
| 46 | + "LogitechG29Settings": { |
| 47 | + "_devicePath": "/dev/input/event<device path number>", |
| 48 | + ~~ |
| 49 | + ``` |
| 50 | +
|
| 51 | +1. Launch `AWSIM-demo.x86-64` with `sample-config.json` |
| 52 | + ``` |
| 53 | + ./AWSIM-demo.x86_64 --json-path <direcotry path>/<config json name>.json |
| 54 | + ``` |
| 55 | +1. Select Logitech G29 from the UI's Vehicle input device. |
| 56 | +
|
| 57 | + <popup-img src="image_1.png" alt="image_1"></popup-img> |
| 58 | +
|
| 59 | +
|
| 60 | +## Key map |
| 61 | +
|
| 62 | +|Key|Feature| |
| 63 | +|:--|:--| |
| 64 | +|Triangle|Switch to move drive gear.| |
| 65 | +|Square|Switch to move reverse gear.| |
| 66 | +|Circle|Switch to neutral gear.| |
| 67 | +|Cross|Switch to parking gear.| |
| 68 | +|Throttle pedal|Forward acceleration.| |
| 69 | +|Brake pedal|Reverse acceleration.| |
| 70 | +|Steering wheel|Turning.| |
| 71 | +|Left paddle|Turn left blinker on.| |
| 72 | +|Right paddle|Turn right blinker on.| |
| 73 | +|R2|Turn on hazard lights.| |
| 74 | +|R3|Turn off blinker or hazard lights.| |
| 75 | +|L2|Switch control mode `MANUAL` to `AUTONOMOUS`| |
0 commit comments