Skip to content

Steering Wheels#

To use the Logitech G920 steering wheel with AutonomySim follow these steps:

  1. Connect the steering wheel to the computer and wait until drivers installation complete.

  2. Install Logitech Gaming Software from here

  3. Before debug, you’ll have to normalize the values in AutonomySim code. Perform this changes in CarPawn.cpp (according to the current update in the git):

  4. In line 382, change Val to 1 – Val. (the complementary value in the range [0.0,1.0]).

  5. In line 388, change Val to 5Val - 2.5 (Change the range of the given input from [0.0,1.0] to [-1.0,1.0]).
  6. In line 404, change Val to 4(1 – Val). (the complementary value in the range [0.0,1.0]).

  7. Debug the AutonomySim project (while the steering wheel is connected; it’s important).

  8. On Unreal Editor, go to Edit->Plugins->Input Devices and enable Windows RawInput.

  9. Go to Edit->Project Settings->Raw Input, and add new device configuration:
    Vendor ID: 0x046d (In case of Logitech G920, otherwise you might need to check it).
    Product ID: 0xc261 (In case of Logitech G920, otherwise you might need to check it).
    Under Axis Properties, make sure that GenericUSBController Axis 2, GenericUSBController Axis 4 and GenericUSBController Axis 5 are all enabled with an offset of 1.0.
    Explanation: axis 2 is responsible for steering movement, axis 4 is for brake and axis 5 is for gas. If you need to configure the clutch, it’s on axis 3.

steering_wheel

  1. Go to Edit->Project Settings->Input. Under Bindings in Axis Mappings:

  2. Remove existing mappings from the groups MoveRight and MoveForward.

  3. Add new axis mapping to the group MoveRight, use GenericUSBController Axis 2 with a scale of 1.0.
  4. Add new axis mapping to the group MoveForward, use GenericUSBController Axis 5 with a scale of 1.0.
  5. Add a new group of axis mappings, name it FootBrake and add new axis mapping to this group, use GenericUSBController Axis 4 with a scale of 1.0.

steering_wheel

  1. Play and drive!

Pay Attention#

Notice that in the first time we 'play' after debugging, we need to touch the wheel to 'reset' the values.

Tip

In the game engine software, you can configure buttons as keyboard shortcuts, we used it to configure a shortcut to record dataset or to play in full screen.