RMRobotics / FTC_5421_2014-2015

Assets for 2014-2015 Team 5421 FIRST Tech Challenge.
MIT License
6 stars 1 forks source link

Add ability to run motor for a specified time length and then stop #63

Open jimmyli97 opened 9 years ago

jimmyli97 commented 9 years ago

If we do #62, then this could be accomplished really easily - all we have to do is keep track of the time that the motor started, and then calculate time elapsed since then. This would also let us do deadlines (e.g. give up if the motor hasn't hit the encoder target after 30 seconds).