Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardware: steering wheel and pedals?
08-22-2007, 04:01 PM,
#81
 
Thanks for the code cuckoo!
I managed to get the full 900 degrees working OK on the G25 wheel and was thrilled (for a while)....

My limited knowledge of C, compilation and IDE software meant that I could not quite get your code to compile to a useable state so, instead, I essentially used bits of your code within the demo file from libusb-0.1.12. (the file testlibusb.c) and then simply used sudo make to get an executable.

I had been trying to use usb_control_msg before you made me realise that usb_interrupt_write is much more appropriate and easier to use. I added the code into the print_device(.....) function of libusb-0.1.12 demo file (testlibusb.c) and compiled & ran it as root. Note that, as root in a shell console, I manually unbound and rebound the interface before and after running testlibusb. Not very elegant, but just within my capabilities and it got the job done.

When successful, the usb functions returned the following:
usb_claim_interface ---->status=0 (OK); usb_interrupt_write ----> returned 7 (which corresponds to the number of bytes sent, as expected); usb_release_interface ----> status=0 (OK)

I have not experienced any of the problems you mentioned; however, I did find deadzone problems.

I'm puzzled: The first time I did the four steps, the wheel responded absolutely perfectly. Full 900 degrees and _no deadzone_. It was tested with the TORCS driving simulator and, more objectively, with jstest /dev/input/js0.
It was fantastic! (Even under WinXP, with proprietary Logitech drivers I remember having a deadzone of approx +/- 15 %).

However, after performing the '4 steps' again, the wheel had a very large (+/- 45 degrees!!!) deadzone. I haven't been able to get it back to its perfect state. After a reboot, it went to its previous 'default' state (limited to approx +/- 90 deg steering including +/- 15 deg deadzone) but sending the 7 bytes to it again resulted in 900 deg incl +/- 45 degree deadzone. Very disappointing and still not understood. Especially now that I know _no deadzone_ is possible.

I'm still persevering to replicate the full 900 degrees and zero deadzone. I'll post here if I learn anything new.
Reply


Messages In This Thread
[No subject] - by thelusiv - 11-05-2006, 11:49 PM
[No subject] - by kcid - 11-06-2006, 10:29 AM
[No subject] - by reece146 - 11-06-2006, 11:52 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-07-2006, 01:43 AM
[No subject] - by Nigo - 11-10-2006, 07:34 AM
[No subject] - by cotharyus - 11-10-2006, 11:23 AM
[No subject] - by cotharyus - 12-02-2006, 12:22 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-02-2006, 03:35 PM
[No subject] - by Nigo - 12-03-2006, 10:49 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-03-2006, 12:20 PM
[No subject] - by Nigo - 12-03-2006, 12:36 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-03-2006, 12:41 PM
[No subject] - by Nigo - 12-03-2006, 01:51 PM
[No subject] - by cotharyus - 12-03-2006, 05:20 PM
[No subject] - by Nigo - 12-04-2006, 05:53 AM
[No subject] - by cotharyus - 12-04-2006, 02:00 PM
[No subject] - by osiris - 12-04-2006, 02:04 PM
[No subject] - by Nigo - 12-05-2006, 05:21 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-05-2006, 10:54 AM
[No subject] - by Nigo - 12-05-2006, 12:45 PM
[No subject] - by cotharyus - 12-06-2006, 08:53 AM
[No subject] - by stenyak - 02-05-2007, 07:53 PM
[No subject] - by stenyak - 02-05-2007, 09:12 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-05-2007, 11:02 PM
[No subject] - by stenyak - 02-06-2007, 02:14 AM
[No subject] - by thelusiv - 02-06-2007, 02:33 AM
[No subject] - by Nigo - 02-06-2007, 06:03 AM
[No subject] - by stenyak - 02-06-2007, 08:56 AM
[No subject] - by thelusiv - 02-06-2007, 09:47 AM
[No subject] - by joevenzon_phpbb2_import3 - 02-06-2007, 10:50 AM
[No subject] - by thelusiv - 02-06-2007, 06:58 PM
[No subject] - by stenyak - 02-06-2007, 09:31 PM
[No subject] - by thelusiv - 02-06-2007, 10:44 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-07-2007, 10:51 AM
[No subject] - by Nigo - 02-07-2007, 12:32 PM
[No subject] - by stenyak - 02-07-2007, 01:37 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-07-2007, 10:58 PM
[No subject] - by thelusiv - 02-09-2007, 04:32 AM
[No subject] - by stenyak - 02-09-2007, 04:37 AM
[No subject] - by thelusiv - 02-09-2007, 04:50 AM
[No subject] - by stenyak - 02-09-2007, 05:16 AM
[No subject] - by Nigo - 02-09-2007, 05:30 PM
[No subject] - by stenyak - 02-09-2007, 06:06 PM
[No subject] - by thelusiv - 02-09-2007, 06:41 PM
[No subject] - by jdeneux - 02-16-2007, 05:03 PM
[No subject] - by thelusiv - 02-16-2007, 09:55 PM
[No subject] - by Nigo - 02-17-2007, 05:24 AM
[No subject] - by jdeneux - 02-17-2007, 02:53 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-18-2007, 03:11 PM
[No subject] - by thelusiv - 02-19-2007, 01:52 PM
[No subject] - by stenyak - 02-19-2007, 02:18 PM
[No subject] - by thelusiv - 02-20-2007, 04:36 AM
[No subject] - by stenyak - 02-20-2007, 06:28 AM
[No subject] - by Nigo - 02-20-2007, 12:48 PM
[No subject] - by thelusiv - 02-20-2007, 05:34 PM
[No subject] - by stenyak - 02-20-2007, 05:52 PM
[No subject] - by thelusiv - 02-20-2007, 06:45 PM
[No subject] - by stenyak - 02-20-2007, 06:47 PM
[No subject] - by thelusiv - 02-20-2007, 07:03 PM
[No subject] - by stenyak - 02-22-2007, 03:01 PM
[No subject] - by eckzow - 02-23-2007, 12:59 AM
[No subject] - by stenyak - 02-23-2007, 02:57 AM
[No subject] - by Nigo - 02-23-2007, 06:31 AM
[No subject] - by thelusiv - 02-23-2007, 04:09 PM
[No subject] - by stenyak - 02-23-2007, 07:22 PM
[No subject] - by eckzow - 02-24-2007, 01:54 AM
[No subject] - by stenyak - 02-24-2007, 11:27 AM
[No subject] - by Nigo - 02-24-2007, 12:34 PM
[No subject] - by eckzow - 02-24-2007, 02:50 PM
[No subject] - by thelusiv - 02-25-2007, 12:38 PM
[No subject] - by eckzow - 03-12-2007, 08:58 PM
[No subject] - by thelusiv - 03-12-2007, 10:38 PM
[No subject] - by stenyak - 03-13-2007, 02:46 AM
G25 FF protocol info - by anrp - 05-10-2007, 08:38 PM
[No subject] - by thelusiv - 05-15-2007, 11:44 PM
[No subject] - by reece146 - 06-28-2007, 10:18 PM
[No subject] - by kidrock - 07-13-2007, 12:12 AM
[No subject] - by synapse247 - 08-21-2007, 12:23 AM
[No subject] - by cuckoo - 08-22-2007, 10:33 AM
[No subject] - by synapse247 - 08-22-2007, 04:01 PM
[No subject] - by eckzow - 08-22-2007, 09:28 PM
[No subject] - by synapse247 - 08-23-2007, 11:22 AM
[No subject] - by cotharyus - 08-23-2007, 12:10 PM
[No subject] - by cuckoo - 08-28-2007, 06:50 AM
[No subject] - by thelusiv - 08-28-2007, 10:47 AM
[No subject] - by reece146 - 08-28-2007, 10:50 AM
[No subject] - by Keith_Beef - 10-15-2009, 11:28 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-16-2009, 01:15 AM
[No subject] - by Keith_Beef - 10-17-2009, 10:23 AM
[No subject] - by joevenzon_phpbb2_import3 - 10-20-2009, 10:20 PM

Forum Jump:


Users browsing this thread: 13 Guest(s)