[TUTORIAL] ~ RPi + GIMX + G27 + PS4 + DriveClub = WORKING
Posted: Sat Oct 11, 2014 3:28 am
Gents,
Firstly, thank you for this amazing project, its a lot of fun putting this together.
My setup is:
- Raspberry Pi Model B+ (4 usb ports) (because who wants to run a dedicated pc to their steering rig right ?)
running: Linux raspberrypi 3.12.29+ #714 PREEMPT Wed Oct 1 23:11:38 BST 2014 armv6l GNU/Linux
- Teensy 2.0
- Orico bluetooth USB
- G27
- PS4 + DriveClub
- DualShock 4 controller
- GIMX 3.4
So after installing Raspbian (wheezy) and installing all the necessary stack: GIMX, bluez, etc ... I started to configure the inputs using: gimx-configure
Selected:
- DualShock 4 profile
- Assigned steering axis (which has been detected) to x axis
- Then tried to assign the accelerator pedal to R2 and brake to L2.
Problem is the wheel at that point had both pedals on the same axis
So then i installed LTWheelConf and made the wheel go into native mode.
The brake and accelerator pedals are now on separate axis (2 and 3)
So i can map them successfully to L2 and R2 using gimx-configure.
However, when i play the game what happens is:
- If i press the accelerator up to half way the car drives forward.
- Once i press the accelerator past the half way point the acceleration stops (its as if i stop pressing the peal).
- Same thing happens when i press the brake pedal.
Now one other weird bug is that once i press the brake pedal and let it go, and then i press the accelerator pedal and let it go, the car will sit in 1 spot and do doughnuts. So its as if the accelerator and brake are pressed in at the same time ?
jstest shows the values for these axis to be -32767 when foot off pedal.
0 when pressed half way
32767 when pressed all the way
So it seems to me based on the above that gimx is using -32767 (as "pressed down value") and 0 as neutral.
Steering works without issues, although there seems to be a bit of a dead zone in the middle. I wonder if that can be tweaked to be smaller ?
Can anyone help out with tweaking the above ?
Firstly, thank you for this amazing project, its a lot of fun putting this together.
My setup is:
- Raspberry Pi Model B+ (4 usb ports) (because who wants to run a dedicated pc to their steering rig right ?)
running: Linux raspberrypi 3.12.29+ #714 PREEMPT Wed Oct 1 23:11:38 BST 2014 armv6l GNU/Linux
- Teensy 2.0
- Orico bluetooth USB
- G27
- PS4 + DriveClub
- DualShock 4 controller
- GIMX 3.4
So after installing Raspbian (wheezy) and installing all the necessary stack: GIMX, bluez, etc ... I started to configure the inputs using: gimx-configure
Selected:
- DualShock 4 profile
- Assigned steering axis (which has been detected) to x axis
- Then tried to assign the accelerator pedal to R2 and brake to L2.
Problem is the wheel at that point had both pedals on the same axis
So then i installed LTWheelConf and made the wheel go into native mode.
The brake and accelerator pedals are now on separate axis (2 and 3)
So i can map them successfully to L2 and R2 using gimx-configure.
However, when i play the game what happens is:
- If i press the accelerator up to half way the car drives forward.
- Once i press the accelerator past the half way point the acceleration stops (its as if i stop pressing the peal).
- Same thing happens when i press the brake pedal.
Now one other weird bug is that once i press the brake pedal and let it go, and then i press the accelerator pedal and let it go, the car will sit in 1 spot and do doughnuts. So its as if the accelerator and brake are pressed in at the same time ?
jstest shows the values for these axis to be -32767 when foot off pedal.
0 when pressed half way
32767 when pressed all the way
So it seems to me based on the above that gimx is using -32767 (as "pressed down value") and 0 as neutral.
Steering works without issues, although there seems to be a bit of a dead zone in the middle. I wonder if that can be tweaked to be smaller ?
Can anyone help out with tweaking the above ?