View Single Post
  #1   Spotlight this post!  
Unread 20-02-2011, 16:16
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
programming C++ for potentiometer

could someone post a sample code for reading the output of a potentiometer? We've got ours hooked up to AnalogChannel(1), and upon pressing a certain button on the gamepad, want to run a motor until the potentiometer reaches a certain value.
i have searched all over for sample code here, but have found what's there to be of limited use to us, being the novices with this as we are.
Thanks so much!
Reply With Quote