Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Joystick help
02-10-2007, 07:47 AM,
#13
 
After a lot of searching on the net, I found out, how to get around the actual problem - jscalibrator was not saving its data somehow. Now I just have to execute a script every time I start KDE and it sets my joystick as calibrated even if jscal -t /dev/input/js0 says it is not calibrated. Actions I took:
1. Run jscal -c /dev/input/js0 to calibrate my stick
2. Run jscal -p /dev/input/js0 to get correction values
2. Made a script with return of last command, looks like that:

#!/bin/bash
jscal -s 6,1,0,90,90,9418500,8658944,1,0,97,97,7780500,8388352,1,0,87,87,8134160,8012754,1,0,91,92,7354172,6795627,1,0,0,0,-2147483648,-2147483648,1,0,0,0,-2147483648,-2147483648 /dev/input/js0

3. The script was a text file made with kate (pico, vi or whatever), made it executable and placed in ~/.kde/Autostart
I hope it will run every time I start my PC. But it works when I run it by hand. Now all my axes are fully usable, and the car is much easier to steer (actually it was off center before, which I compensated with deadzone, felt wrong). And at calibration, it starts in the middle and expands 100%.
Reply


Messages In This Thread
Joystick help - by y2kkmac - 01-17-2007, 07:01 PM
[No subject] - by cotharyus - 01-17-2007, 08:35 PM
[No subject] - by joevenzon_phpbb2_import3 - 01-18-2007, 11:07 AM
[No subject] - by thelusiv - 01-18-2007, 04:09 PM
[No subject] - by y2kkmac - 01-19-2007, 09:08 PM
[No subject] - by Nigo - 02-06-2007, 05:30 AM
[No subject] - by uldics - 02-09-2007, 02:45 AM
[No subject] - by thelusiv - 02-09-2007, 02:50 AM
[No subject] - by uldics - 02-09-2007, 02:59 AM
[No subject] - by thelusiv - 02-09-2007, 03:17 AM
[No subject] - by uldics - 02-09-2007, 05:57 AM
[No subject] - by thelusiv - 02-09-2007, 08:28 PM
[No subject] - by uldics - 02-10-2007, 07:47 AM
[No subject] - by thelusiv - 02-11-2007, 01:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)