Hello all,
Following the DIY USB adapter tutorial, I flashed the atmega32u4.hex file in the EMUG29PS4 folder to my Pro Micro board, connected the pins to the CP2102, verified that my Logitech Momo Racing is correctly calibrated, using both Windows's Game Controllers menus, as well as the gimx-config tool. The throttle pedal is mapped to "axis 1", brake to "axis 2" and steering to "axis 0". (Using LogitechMomoRacing_G29.xml)
However, as soon as I run Project Cars on my PS4, gas, brake and steering inputs start to perform very weirdly. The game is unplayable as the car randomly moves, reverses or turns with any input from the pedals. Please note that every button assignment is correct in the game (R1, circle etc..). Also note that, prior to running the game, while still on the PS4 main menus, the pedals and the wheel is still performing correctly, but once the game starts, they start performing weirdly.
Please see the following post for more info.
edit: I initially thought all axes were mapped onto "axis 0", but upon inspection of the gimx output, I realized that this was not the case.
Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Last edited by kkg_scorpio on Thu Aug 18, 2016 11:27 pm, edited 3 times in total.
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Re: All axis mapped to 0 [Project Cars] [PS4] [Momo]
Upon closer analysis of the gimx.exe live text output, these are my findings:
1) gas, brake and wheel are indeed different axes
2) the values for brake is reversed (Normally, before starting the game, it is 65535 when fully pressed, 0 when my foot is not on the pedal. However once the game starts, it is the exact opposite)
3) the values for gas is as expected (65535 when fully pressed, 0 with no pressure)
4) The values for brake and gas affect the values for wheel erratically. (whenever I press any pedal, the "wheel" values fluctuate rapidly)
5) Turning the wheel does not affect the values for gas and brake
6) Turning the wheel has a very small range. Normally, before starting the game, it goes from -32768 to 32768. But after starting the game:
6.1) with no pressure on gas or brake, it goes between 29557 and 32768 (gas at 0, and brake at 65535)
6.2) with full pressure on brake, it goes between 29557 and 32768 (gas at 0, and brake at 0)
6.3) with full pressure on gas, it goes between -29557 and -32768 (gas at 65535, and brake at 65535)
I hope these can help identifying the problem.
My conclusion so far, is that all the axes are mapped, however there's some weird overlap between them, and some mistakes in the translation of the ranges.
1) gas, brake and wheel are indeed different axes
2) the values for brake is reversed (Normally, before starting the game, it is 65535 when fully pressed, 0 when my foot is not on the pedal. However once the game starts, it is the exact opposite)
3) the values for gas is as expected (65535 when fully pressed, 0 with no pressure)
4) The values for brake and gas affect the values for wheel erratically. (whenever I press any pedal, the "wheel" values fluctuate rapidly)
5) Turning the wheel does not affect the values for gas and brake
6) Turning the wheel has a very small range. Normally, before starting the game, it goes from -32768 to 32768. But after starting the game:
6.1) with no pressure on gas or brake, it goes between 29557 and 32768 (gas at 0, and brake at 65535)
6.2) with full pressure on brake, it goes between 29557 and 32768 (gas at 0, and brake at 0)
6.3) with full pressure on gas, it goes between -29557 and -32768 (gas at 65535, and brake at 65535)
I hope these can help identifying the problem.
My conclusion so far, is that all the axes are mapped, however there's some weird overlap between them, and some mistakes in the translation of the ranges.
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Re: All axis mapped to 0 [Project Cars] [PS4] [Momo]
Some screenshots:
Effect of turning the wheel full rotation (pedals not pressed): http://imgur.com/d0cpyIa.jpg
Effect of pressing the brake (wheel on dead center, gas not pressed): http://imgur.com/LQQUPcl.jpg
Effect of pressing the gas (wheel on dead center, brake not pressed): http://imgur.com/5mydTBv.jpg
Thank you all in advance!
(Reminder: Everything is fine before starting the game. All the inputs, ranges are as expected. But the problem starts when the game starts)
Effect of turning the wheel full rotation (pedals not pressed): http://imgur.com/d0cpyIa.jpg
Effect of pressing the brake (wheel on dead center, gas not pressed): http://imgur.com/LQQUPcl.jpg
Effect of pressing the gas (wheel on dead center, brake not pressed): http://imgur.com/5mydTBv.jpg
Thank you all in advance!
(Reminder: Everything is fine before starting the game. All the inputs, ranges are as expected. But the problem starts when the game starts)
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Re: Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Here's the full log: http://pastebin.ca/3697359
Lines 18-37: Press and release Gas (All good)
Lines: 38-58: Press and release Brake (All good)
Lines 59-538: Turn the wheel all the way to the left, then to the right, then (almost) center (All good)
Line 539: Press the PS button (now the PS4 knows that a controller is connected)
Line 541: Press X (enter the game Project Cars)
Line 566-587: Press and release gas (and look at the wheel!!!)
Line 588-651: Press and release brake (and look at the wheel!!!)
Lines 651-end: Turn the wheel all the way to the left, then to the right, then (almost) center (look at the range!!!)
(Also, note that: logitech Profiler is installed, the pedals are on separate axes)
Lines 18-37: Press and release Gas (All good)
Lines: 38-58: Press and release Brake (All good)
Lines 59-538: Turn the wheel all the way to the left, then to the right, then (almost) center (All good)
Line 539: Press the PS button (now the PS4 knows that a controller is connected)
Line 541: Press X (enter the game Project Cars)
Line 566-587: Press and release gas (and look at the wheel!!!)
Line 588-651: Press and release brake (and look at the wheel!!!)
Lines 651-end: Turn the wheel all the way to the left, then to the right, then (almost) center (look at the range!!!)
(Also, note that: logitech Profiler is installed, the pedals are on separate axes)
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Re: Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Update: I managed to get the wheel inputs working correctly, by changing Dualshock4.xml. (I mapped Logitech Momo axes to L2, R2 and lstick x, and applied the joystick corrections)
However, the force feedback doesn't work now, so this is a temporary solution.
I'm also downloading Drive Club to check if the original problem also occurs there.
However, the force feedback doesn't work now, so this is a temporary solution.
I'm also downloading Drive Club to check if the original problem also occurs there.
Re: Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Hi,
Looks like a bug in the GIMX software.
I'll do the test with the same setup and let you know about my findings.
Looks like a bug in the GIMX software.
I'll do the test with the same setup and let you know about my findings.
GIMX creator
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Re: Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Thanks man, much appreciated.
If it's going to help, setting the following in Dualshock4.xml:
Momo Racing Axis 1 -> abs_axis_17
Momo Racing Axis 2 -> abs_axis_18
Momo Racing Axis 0 -> lstick x
makes the wheel and pedals work correctly. But the moment I add a Momo Racing Button into the configuration, we go back to the problem I described earlier (wheel range wrong, pedals affects wheel, etc.)
If it's going to help, setting the following in Dualshock4.xml:
Momo Racing Axis 1 -> abs_axis_17
Momo Racing Axis 2 -> abs_axis_18
Momo Racing Axis 0 -> lstick x
makes the wheel and pedals work correctly. But the moment I add a Momo Racing Button into the configuration, we go back to the problem I described earlier (wheel range wrong, pedals affects wheel, etc.)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
-<root>
-<controller type="DS4" dpi="0" id="1">
-<configuration id="1">
<trigger type="" id="" delay="0" switch_back="no" button_id="" name=""/>
<mouse_options_list/>
<intensity_list/>
-<button_map>
-<button id="abs_axis_17" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="15"/>
</button>
-<button id="abs_axis_10" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="2"/>
</button>
-<button id="abs_axis_9" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="0"/>
</button>
-<button id="abs_axis_8" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="1"/>
</button>
-<button id="abs_axis_7" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="3"/>
</button>
-<button id="abs_axis_1" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="6"/>
</button>
-<button id="abs_axis_15" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="7"/>
</button>
-<button id="abs_axis_16" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="8"/>
</button>
-<button id="abs_axis_2" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="5"/>
</button>
-<button id="abs_axis_3" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="11"/>
</button>
-<button id="abs_axis_4" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="14"/>
</button>
-<button id="abs_axis_5" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="12"/>
</button>
-<button id="abs_axis_6" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="13"/>
</button>
-<button id="abs_axis_12" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="10"/>
</button>
-<button id="abs_axis_11" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="9"/>
</button>
-<button id="abs_axis_0" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="button" id="4"/>
</button>
</button_map>
-<axis_map>
-<axis id="rel_axis_0" label="">
<device type="joystick" id="0" name="Logitech MOMO Racing "/>
<event type="axis" id="0" shape="" exponent="1.00" multiplier="0.004" dead_zone="0"/>
</axis>
-<axis id="rel_axis_1" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="axis" id="1" shape="" exponent="1.00" multiplier="0.004" dead_zone="0"/>
</axis>
-<axis id="rel_axis_2" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="axis" id="2" shape="" exponent="1.00" multiplier="0.004" dead_zone="0"/>
</axis>
-<axis id="rel_axis_3" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="axis" id="3" shape="" exponent="1.00" multiplier="0.004" dead_zone="0"/>
</axis>
-<axis id="abs_axis_18" label="">
<device type="joystick" id="0" name="Logitech MOMO Racing "/>
<event type="axis" id="2" shape="" exponent="1.00" multiplier="0.008" dead_zone="0"/>
</axis>
-<axis id="abs_axis_17" label="">
<device type="joystick" id="0" name="Logitech MOMO Racing "/>
<event type="axis" id="1" shape="" exponent="1.00" multiplier="0.008" dead_zone="0"/>
</axis>
-<axis id="abs_axis_14" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="axis" id="5" shape="" exponent="1.00" multiplier="0.008" dead_zone="0"/>
</axis>
-<axis id="abs_axis_13" label="">
<device type="joystick" id="0" name="PS4 Controller"/>
<event type="axis" id="4" shape="" exponent="1.00" multiplier="0.008" dead_zone="0"/>
</axis>
</axis_map>
-<joystick_corrections_list>
-<correction high_coef="1" high_value="0" low_coef="-8192" low_value="32767">
<device type="joystick" id="0" name="Logitech MOMO Racing "/>
<event type="axis" id="1"/>
</correction>
-<correction high_coef="1" high_value="0" low_coef="-8192" low_value="32767">
<device type="joystick" id="0" name="Logitech MOMO Racing "/>
<event type="axis" id="2"/>
</correction>
</joystick_corrections_list>
</configuration>
</controller>
</root>
Re: Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Thanks for the input.
As a side note, don't open xml files with Internet Explorer (it breaks the xml syntax).
As a side note, don't open xml files with Internet Explorer (it breaks the xml syntax).
GIMX creator
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Re: Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Two more experiments:
1) I opened LogitechMomoRacing_G29.xml on gimx-config, deleted all mappings from Momo Racing Buttons. Now the wheels and pedals work fine, but I can't use the shifters. (no force feedback for some reason)
2) Tried my Momo Racing with Drive Club on PS4.. still face the same problem. Everything fine in the PS4 menus, but when I enter the game, the controls are messed up.
1) I opened LogitechMomoRacing_G29.xml on gimx-config, deleted all mappings from Momo Racing Buttons. Now the wheels and pedals work fine, but I can't use the shifters. (no force feedback for some reason)
2) Tried my Momo Racing with Drive Club on PS4.. still face the same problem. Everything fine in the PS4 menus, but when I enter the game, the controls are messed up.
-
- Posts: 12
- Joined: Thu Aug 18, 2016 8:15 pm
Re: Brake and Gas affects Wheel [Project Cars] [PS4] [Momo]
Do you think using an earlier version of Gimx would help?
I'm tempted to try that tonight. Any other suggestions?
edit: Tried Gimx 5.0, same problem persists. I checked the version 5.0 and 5.8 firmwares (EMUG29PS4/atmega32u4.hex) and they are the same either.
I've read your blog post, and seeing how it worked for your Momo Racing Force Feedback wheel on PS4, it's weird that I face this bug. Did you have time to try again with your setup?
I'm tempted to try that tonight. Any other suggestions?
edit: Tried Gimx 5.0, same problem persists. I checked the version 5.0 and 5.8 firmwares (EMUG29PS4/atmega32u4.hex) and they are the same either.
I've read your blog post, and seeing how it worked for your Momo Racing Force Feedback wheel on PS4, it's weird that I face this bug. Did you have time to try again with your setup?