View Single Post
  #2   Spotlight this post!  
Unread 11-02-2010, 15:44
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Problems with Encoder

You need to create an Encoder object from the WPILib stuff. Then you start it, and use Get to get the value. Reset will reset it.

You could for instance then do something like run a motor until encoder get returns 10, or 100 or whatever.
Reply With Quote