Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup OpenDS with a driving wheel and pedals. #8

Closed
1 task
breznak opened this issue Mar 1, 2016 · 11 comments
Closed
1 task

Setup OpenDS with a driving wheel and pedals. #8

breznak opened this issue Mar 1, 2016 · 11 comments
Assignees
Labels
Milestone

Comments

@breznak
Copy link
Owner

breznak commented Mar 1, 2016

Getting to run steering wheel with OpenDS on Linux.
Env:

  • Ubuntu Linux 14.04 LTS
  • openDS 3.5
  • wheel (+pedals) Logitech DrivingForce GT 6

Output in joystickDump.txt:

Creation Date: 2016-06-13
Creation Time: 17:45:59

Joystick[0]:Driving Force GT
  buttons:13
   JoystickButton[name=Trigger, parent=Driving Force GT, id=0, logicalId=Trigger]
   JoystickButton[name=Thumb, parent=Driving Force GT, id=1, logicalId=Thumb]
   JoystickButton[name=Thumb 2, parent=Driving Force GT, id=2, logicalId=Thumb 2]
   JoystickButton[name=Top, parent=Driving Force GT, id=3, logicalId=Top]
   JoystickButton[name=Top 2, parent=Driving Force GT, id=4, logicalId=Top 2]
   JoystickButton[name=Pinkie, parent=Driving Force GT, id=5, logicalId=Pinkie]
   JoystickButton[name=Base, parent=Driving Force GT, id=6, logicalId=Base]
   JoystickButton[name=Base 2, parent=Driving Force GT, id=7, logicalId=Base 2]
   JoystickButton[name=Base 3, parent=Driving Force GT, id=8, logicalId=Base 3]
   JoystickButton[name=Base 4, parent=Driving Force GT, id=9, logicalId=Base 4]
   JoystickButton[name=Base 5, parent=Driving Force GT, id=10, logicalId=Base 5]
   JoystickButton[name=Base 6, parent=Driving Force GT, id=11, logicalId=Base 6]
   JoystickButton[name=Dead, parent=Driving Force GT, id=12, logicalId=Dead]
  axes:6
   JoystickAxis[name=x, parent=Driving Force GT, id=0, logicalId=x, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=y, parent=Driving Force GT, id=1, logicalId=y, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=z, parent=Driving Force GT, id=2, logicalId=z, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov, parent=Driving Force GT, id=3, logicalId=pov, isAnalog=false, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov_x, parent=Driving Force GT, id=4, logicalId=pov_x, isAnalog=false, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov_y, parent=Driving Force GT, id=5, logicalId=pov_y, isAnalog=false, isRelative=false, deadZone=0.0]
Joystick[1]:Driving Force GT
  buttons:13
   JoystickButton[name=Trigger, parent=Driving Force GT, id=0, logicalId=Trigger]
   JoystickButton[name=Thumb, parent=Driving Force GT, id=1, logicalId=Thumb]
   JoystickButton[name=Thumb 2, parent=Driving Force GT, id=2, logicalId=Thumb 2]
   JoystickButton[name=Top, parent=Driving Force GT, id=3, logicalId=Top]
   JoystickButton[name=Top 2, parent=Driving Force GT, id=4, logicalId=Top 2]
   JoystickButton[name=Pinkie, parent=Driving Force GT, id=5, logicalId=Pinkie]
   JoystickButton[name=Base, parent=Driving Force GT, id=6, logicalId=Base]
   JoystickButton[name=Base 2, parent=Driving Force GT, id=7, logicalId=Base 2]
   JoystickButton[name=Base 3, parent=Driving Force GT, id=8, logicalId=Base 3]
   JoystickButton[name=Base 4, parent=Driving Force GT, id=9, logicalId=Base 4]
   JoystickButton[name=Base 5, parent=Driving Force GT, id=10, logicalId=Base 5]
   JoystickButton[name=Base 6, parent=Driving Force GT, id=11, logicalId=Base 6]
   JoystickButton[name=Dead, parent=Driving Force GT, id=12, logicalId=Dead]
  axes:6
      JoystickAxis[name=x, parent=Driving Force GT, id=0, logicalId=x, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=y, parent=Driving Force GT, id=1, logicalId=y, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=z, parent=Driving Force GT, id=2, logicalId=z, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov, parent=Driving Force GT, id=3, logicalId=pov, isAnalog=false, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov_x, parent=Driving Force GT, id=4, logicalId=pov_x, isAnalog=false, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov_y, parent=Driving Force GT, id=5, logicalId=pov_y, isAnalog=false, isRelative=false, deadZone=0.0]

settings.xml contains:

        <controllers>
                <joystick>
                        <!-- Logitech G27 -->
                        <dumpJoystickList>true</dumpJoystickList>
                        <steering controllerID="0" axisID="3" invert="false" sensitivity="1.0"/>
                        <combinedPedals controllerID="0" axisID="4" invert="false" sensitivity="1.0"/>
                        <accelerator controllerID="0" axisID="6" invert="true" sensitivity="1.0"/>
                        <brake controllerID="0" axisID="5" invert="true" sensitivity="1.0"/>
                        <clutch controllerID="0" axisID="7" invert="true" sensitivity="1.0"/>
                        <keyAssignments>
                                <keyAssignment function="start_engine" key="BUTTON_1"/>
                                <keyAssignment function="stop_engine" key="BUTTON_2"/>
                                <keyAssignment function="close_instruction_screen" key="BUTTON_15"/>
                        </keyAssignments>
                </joystick>
                <keyboard>
                        <keyAssignments>
                                <keyAssignment function="toggle_cam" key="KEY_V"/>
                                <keyAssignment function="horn" key="KEY_H"/>
                                <keyAssignment function="close_instruction_screen" key="SPACE"/>
                        </keyAssignments>
                </keyboard>
                <mouse>
                        <!-- only for outside view -->
                        <minScrollZoom>1</minScrollZoom>
                        <maxScrollZoom>40</maxScrollZoom>
                        <scrollSensitivityFactor>5</scrollSensitivityFactor>
                </mouse>
        </controllers>

HW (wheel) is recognized as:

[38251.069167] usb 4-1.6: new full-speed USB device number 3 using ehci-pci
[38251.166178] usb 4-1.6: New USB device found, idVendor=046d, idProduct=c294
[38251.166182] usb 4-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[38251.166183] usb 4-1.6: Product: Driving Force GT
[38251.442454] hidraw: raw HID events driver (C) Jiri Kosina
[38251.455419] usbcore: registered new interface driver usbhid
[38251.455423] usbhid: USB HID core driver
[38251.497440] input: Driving Force GT as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.6/4-1.6:1.0/0003:046D:C294.0001/input/input12
[38251.497647] logitech 0003:046D:C294.0001: input,hidraw0: USB HID v1.00 Joystick [Driving Force GT] on usb-0000:00:1d.0-1.6/input0
[38251.587675] usb 4-1.6: USB disconnect, device number 3
[38251.874259] usb 4-1.6: new full-speed USB device number 4 using ehci-pci
[38251.971767] usb 4-1.6: New USB device found, idVendor=046d, idProduct=c29a
[38251.971773] usb 4-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[38251.971775] usb 4-1.6: Product: Driving Force GT
[38251.978669] input: Driving Force GT as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.6/4-1.6:1.0/0003:046D:C29A.0002/input/input13
[38252.034673] logitech 0003:046D:C29A.0002: input,hidraw0: USB HID v1.11 Joystick [Driving Force GT] on usb-0000:00:1d.0-1.6/input0
[38252.034698] logitech 0003:046D:C29A.0002: Force feedback support for Logitech Gaming Wheels

The problem is:

  • wheel is probably recognized (as HW, the joystickDump.txt) but not picked up by the game (=I do not control the game with the wheel)
@breznak breznak modified the milestone: Demo on FEL FEst Jun 8, 2016
@breznak
Copy link
Owner Author

breznak commented Jun 13, 2016

Some info on https://steamcommunity.com/sharedfiles/filedetails/?id=142372419
We have Logitech DrivingForce GT 6 wheel + pedals

This was referenced Jun 13, 2016
@breznak
Copy link
Owner Author

breznak commented Jun 14, 2016

Installed jstest (package joystick) to test/calibrate the wheel.

@JohnnyMarek
Copy link
Collaborator

This is my main priority for today. Will try to reslove it till tomorrow

@breznak
Copy link
Owner Author

breznak commented Oct 14, 2016

@schaemar @Kobtul you guys had the wheel + openDS running for FelFest, could you please post me the settings.xml, or the whole settings directory for the scenario? I hope it'd help us make it run too.

@JohnnyMarek
Copy link
Collaborator

JohnnyMarek commented Oct 17, 2016

I just solved steering and gas / brake pedals. Now I am trying to set it to manual, to utilize gear switching.

@JohnnyMarek
Copy link
Collaborator

JohnnyMarek commented Oct 18, 2016

The wheel is ready for driving the car, just need to look at the manual better tomorrow and find appropriate settings. otherwise it works the same like with keyboard now (steering will go to sides and gas forward, brake slowing, automatic gear changing). I found the keybind in the code for switching to manual, just need to work on moving this option on steering wheel button. Going to sleep now and i will contact you tomorrow about the upload.

@breznak
Copy link
Owner Author

breznak commented Oct 18, 2016

@JohnnyMarek yes, please upload the XML file for setting the wheel. Is it smoother/more natural than then keyboard?

@schaemar
Copy link

sorry, our demo laptop is not working now, I can't find the right settings. But hopefully @JohnnyMarek made it work too..

@breznak
Copy link
Owner Author

breznak commented Oct 18, 2016

No prob, thanks for the info Martin.

@JohnnyMarek
Copy link
Collaborator

yes it's much smoother than the steering through keyboard . will make the upload when i am back home today

@breznak
Copy link
Owner Author

breznak commented Oct 18, 2016

Work done in latest commit. Please add new sections in the XML for new wheel, eg (keep the dummyWheel, add LogitechG27 (copy of the dummy), add LogitechGT (our new), call the new setting in scenario XML.

Please test if the code works with the ODS 4.0 branch.

@breznak breznak closed this as completed Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants