berarma / new-lg4ff

Experimental Logitech force feedback module for Linux
GNU General Public License v2.0
299 stars 18 forks source link

wheel not centered after boot #28

Closed IOBYTE closed 3 years ago

IOBYTE commented 4 years ago

At boot time the wheel is turned from stop to stop and then is centered but it is centered one turn off. That means when I start a race the car makes a hard left turn and I have to turn it a full turn right to go straight.

The wheel is centered for straight ahead in windows.

berarma commented 4 years ago

The device firmware does the calibration and the almost centering on its own. We would have to wait a few seconds (I don't know how many) for the calibration to end and then issue an autocentering effect for a few seconds again to hopefully center the wheel. I don't think the driver should be managing the wheel position in this way. The in-kernel driver doesn't and I don't think this should change.

Oversteer can be used to center the wheel by running it at boot with command line parameters. It can also be run from the game launcher. Some games also solve it by autocentering the wheel at start or showing a virtual wheel on screen.

I have the feeling that implementing this in the driver may cause more issues than it solves. We may leave this issue open though for further thinking.

berarma commented 3 years ago

I've finally implemented this feature in Oversteer. I think it will be more useful there and it doesn't mess with the driver at the lowest level. You can run Oversteer at any moment, when booting and when starting an app to center the wheel.

Thanks for the idea.