|
Best way for "servo" from motor & potentiometer?
This year one of our structures on the robot will need precise control over a motor's positioning. We'd like to hook up a potentiometer to the motor and use it like a really high powered servo (an encoder would be another option; however that offers relative rather than absolute positioning). What would the best way to code this be? Should I create a new class which uses a Jaguar and an AnalogChannel and does some fancy PID routines to provide accurate positioning? Am I missing a something in the library which already does this or something similar? (I'm not talking about the built in Servo class -- that's meant for servos connected to the digital sidecar) Any ideas/input would be helpful! Thanks!
__________________
Team 811 (Nashua, NH) - Mentor
Previously Team Lead & Programming Lead
|