View Single Post
  #11   Spotlight this post!  
Unread 27-01-2005, 15:04
Meandmyself's Avatar
Meandmyself Meandmyself is offline
Registered Magic Programming User
AKA: Gordon
#1123 (AIM robotics Crimson Lightning)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: springfield, VA
Posts: 26
Meandmyself will become famous soon enough
Re: number of joysticks

One thing to try is to put tape over the calibrators to keep them in position.
As for the looseness in the joystick, you can always fix that in the code. My team had a "dead zone" around neutral where any joystick input from 117 to 137 came out as 127. That solved our problems.

Quote:
pwm01 = p1_y;
pwm02 = p2_y;

if (pwm01 >=117 && pwm01 <= 137) {pwm01 = 127}
if (pwm02 >=117 && pwm02 <= 137) {pwm02 = 127}
This should work.
__________________
They call me the Idea man.
Not because my ideas work,
But because I have ideas...


I'm not a programmer. I'm an electrical guy who can program. If only I understood C!

www.aim-robotics.org //team website
www.tjhsst.edu/~gburgett //cool stuff for school

Last edited by Meandmyself : 28-01-2005 at 14:03.
Reply With Quote