Quote:
Originally Posted by asid61
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.