View Single Post
  #1   Spotlight this post!  
Unread 05-05-2016, 16:57
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 216
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Set Motor position with Encoder?

Hi,

I tried searching this problem all over and was surprised that I couldn't find anything. Maybe I had the wrong keywords or something....

Anyways, I want to be able to control our PG71 with the included encoder with servo like control. On a servo, you can set it to go to angle 162 and it would be really accurate. I would use a servo, but we need a lot of torque and the servos that are legal are not even close to powerful enough. So basically, I want to be able to say to the motor, go to position 5 and it would go there accurately each time.

From researching this, I did find in FTC they have a "setTargetPosition" for their encoders, but I couldn't find any information on the FRC documentation of a similar function. Any help would be greatly appreciated!
__________________
#Python4Life
Reply With Quote