Go to Post The major items of FIRST are still what they always were.....understand the game, build a reliable quality machine to play it, train you drivers to use it to its full potential. If you do these things, you can win with or without any specific machine feature. - Jim Zondag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2007, 19:37
LieAfterLie's Avatar
LieAfterLie LieAfterLie is offline
Registered User
FRC #2028
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Hampton, VA
Posts: 35
LieAfterLie is an unknown quantity at this point
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?
__________________
SEMPER UBI SUB UBI
  #2   Spotlight this post!  
Unread 14-02-2007, 19:52
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,559
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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
  #3   Spotlight this post!  
Unread 14-02-2007, 20:16
LieAfterLie's Avatar
LieAfterLie LieAfterLie is offline
Registered User
FRC #2028
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Hampton, VA
Posts: 35
LieAfterLie is an unknown quantity at this point
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.
__________________
SEMPER UBI SUB UBI
  #4   Spotlight this post!  
Unread 14-02-2007, 21:44
fimmel's Avatar
fimmel fimmel is offline
Founding Mentor, Team 2370
AKA: Forest Immel
FRC #2370 (iBots 2370)
Team Role: Mentor
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Castleton, Vermont
Posts: 325
fimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond repute
Re: Joystick Input calibration in software

try opening the joystick and seeing if the pots are adjustable

/forest
__________________



Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
issues limiting a joystick input Unholy Programming 7 12-02-2006 19:53
Gyro Calibration ImmortalAres Programming 1 07-06-2005 13:29
Calibration/Zeroing of Joystick archimedes Programming 3 21-02-2005 19:10
Calibration of CmuCam xxmaddjxx Technical Discussion 1 09-01-2005 18:39
2.5 is alive !!!! (input ! .. more input ! ) Lloyd Burns Programming 2 14-01-2003 19:15


All times are GMT -5. The time now is 10:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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