View Single Post
  #7   Spotlight this post!  
Unread 20-02-2015, 20:19
Oromus's Avatar
Oromus Oromus is offline
Lead Programmer, Community Liason
AKA: Ryan
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Florida
Posts: 82
Oromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to behold
Re: Piggie Plotter: Changing the very nature of Autonomous Mode

Quote:
Originally Posted by asid61 View Post
This is incredible. Does it take encoder inputs to get distance traveled, or can you set up time intervals?
Piggy Plotter just measures the distance in inches; when it comes to implementing driving X inches on the robot, we used the following formula to calculate what the encoder value would need to be in order to move X inches:

inches / (Math.PI * wheelDiameter) * (whatever encoder value equals one rotation)

However, you can implement it however you want. So that means you can use encoder values, time intervals, or anything else that works.

Last edited by Oromus : 20-02-2015 at 20:45.
Reply With Quote