Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Joystick Input calibration in software (http://www.chiefdelphi.com/forums/showthread.php?t=54162)

LieAfterLie 14-02-2007 19:37

Joystick Input calibration in software
 
We've found a working serial joystick with 4 analog axes, but the problem is it's not calibrated, and there are no calibration wheels on the stick. It's meant to be calibrated by a driver of some sort. My question is is there a way to manually set the voltage range to map the 0-254 input to?

Joe Ross 14-02-2007 19:52

Re: Joystick Input calibration in software
 
If I understand what you want, the code that Dave Flowerday posted in this thread should help: http://www.chiefdelphi.com/forums/sh...ad.php?t=53527

LieAfterLie 14-02-2007 20:16

Re: Joystick Input calibration in software
 
I could do that, but then I would lose everything outside of the joystick's current range. It's centered at 69, it's maximum is 245, so 0 includes a huge range at the bottom. 0 includes what should be 0 - 107 (245-69-69), so I need to change both the center voltage and the mV per input tick. All of the 4 axes are off by alot.

fimmel 14-02-2007 21:44

Re: Joystick Input calibration in software
 
try opening the joystick and seeing if the pots are adjustable

/forest


All times are GMT -5. The time now is 04:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi