Code for use of a potentiometer

Included in the kit this year is new potentiometers. I dont know if anyone has used them yet but our team was thinking about it. The idea is to use them as a feedback mechanism to control the droopage of the arm. We know that we are also going to use some sort of mechanical counterweight also. The problem is that we are not too strong on the programming end of things. If anyone has some sample code or could write some simple code, it would be a great help to us all. any start on the project would help. I am able enough to adapt it to our use without too much trouble. thanks

Adam

Within OCCRA, I know that Jim Zondag (the ref) has written a lot of code; team 47 uses pots during the FIRST season and might be another source. If you go to the Technical Forum of this website and asked the same question, you’d probably get replies from people all across the country.

I’ll put a link from the tech forum to this message…