View Single Post
  #11   Spotlight this post!  
Unread 12-03-2013, 02:05
kidteddy kidteddy is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: New York
Posts: 1
kidteddy is an unknown quantity at this point
Re: Encoders with Java

Hi,
I also started using encoders this year. After reading this thread and researching online in the past few weeks, I understood part of programming encoders. Now, I'm just wondering how to move the bot x feet in autonomous using encoders on drivetrain. What methods do I use if I want the bot to move forward, let's say, for 7 feet? If you provide me with sample code for this, it would be greatly appreciated. I'm writing in java commandbased, and drivetrain that consists of left and right motors where encoders mounted on each side.
Reply With Quote