|
Re: How to program autonomous
Read about the Timer Class.
Set a timer when you start your motors.
Each loop (autonomous periodic), check the timer.
When you reach the desired time mark, do something.
FYI: You might also want to put encoders on your motors, and check the distance (revolutions) the encoders say you went.
|