View Single Post
  #5   Spotlight this post!  
Unread 06-03-2014, 12:39
Wingus&Dingus Wingus&Dingus is offline
Registered User
FTC #7440
 
Join Date: Dec 2013
Rookie Year: 2009
Location: New Zealand
Posts: 11
Wingus&Dingus is an unknown quantity at this point
Re: [FTC]: Use Tetrix Encoders to Hold Positions?

Quote:
Originally Posted by Just_In_Time View Post
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.
Reply With Quote