View Single Post
  #1   Spotlight this post!  
Unread 01-29-2016, 04:31 PM
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,117
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
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.
Reply With Quote