View Single Post
  #1   Spotlight this post!  
Unread 06-02-2010, 16:56
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Potentiometer issues

Our team was trying to wire up a potentiometer to our control system so that we can use it to control the force of our kicking mechanism. The problem we're having is in reading the value from the potentiometer--we are reading the value using the GetValue method of AnalogChannel, but instead of registering a static value, the value continually either climbs up or climbs down. We're resetting the accumulator on the channel after each read that we do, so we know that it's just that we're reading an accumulated value. We've had problems simil;ar to this in the past, and I vaguely suspect that it is related to the wiring of the pot. Has anyone had this problem or know how to resolve it?
__________________
Get yer robot source code here!