Quote:
Originally Posted by Just_In_Time
Hello. I recently installed some encoders on our robot's arm in the hopes that I could press a button to allow the arm to go to a certain position regardless of the previous position the arm was at, essentially the same thing one would do with a servo. However, when I tried using Encoder Target Distances, it simply went in one direction for however many rotations instead of rotating back to the same position. Does anyone know of a way that I could accomplish this so the Tetrix motor acts like a servo and returns to a previously set position? Any help is greatly appreciated. Thanks.
JIT
|
From memory the Encoder Target Distance function only works with the LEGO motors. You'll need to implement (at least) a Proportional controller which measures the arm position and adjusts motor power according to the error between your Set Point and the Current Position. Also the PID controller built into HiTechnic DC Motor controllers didn't work out for us in a past season so we ended up writing our own. It all seems like partial implementations in these motor controllers which is frustrating.