Go to Post (Respecting a decision) != (Agreeing with it) - dtengineering [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-02-2005, 15:16
archimedes archimedes is offline
Registered User
#1303
 
Join Date: Dec 2004
Location: Wyoming
Posts: 4
archimedes is an unknown quantity at this point
Calibration/Zeroing of Joystick

We are trying to use a different joystick then what came in the kit. Its center is not at (127, 127). We need a way to center. Right now, we have a button that is not on the joystick wired up so that we can press it and it will then be calibrated. We don't have the code to do this. Our code right now will add a constant (either pos. or neg) to the joystick values which would then in theory have the joystick centered. The problem comes in getting that constant. How can we keep a constant wth the looped structure of the FRC code? We have tried putting it in User_Initialization and also at the spot that where the inputs are mapped to the drive PWMs. Any help would be appreciated.

archimedes, Wyoming Aftershock
 


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
Tri-axis Analog Joystick KVermilion Control System 5 19-01-2005 00:24
Changing 1 joystick code to 2 (rookie team) Brawler006 Programming 5 20-02-2004 17:00
robot goes haywire with the one joystick default code Miles Programming 7 24-01-2003 14:58
joystick problem archiver 2000 12 23-06-2002 23:08
switching joystick axis????? team222badbrad Technical Discussion 9 16-01-2002 23:07


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

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