View Single Post
  #5   Spotlight this post!  
Unread 09-02-2009, 20:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Can any one help us with programing the encoder to control the motor by ticks?

So, now you are missing code to read the encoder and compare the value of the encoder to the value that you want it to be. Then set the motor either forward, backward, or stopped depending on the error. Once you get it working to some degree, you can look at adding PID to make it be better controlled.

Greg McKaskle
Reply With Quote