View Single Post
  #3   Spotlight this post!  
Unread 20-03-2015, 21:42
stopyourself stopyourself is offline
Registered User
FRC #2335 (Sargon)
Team Role: Leadership
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Prairie Village
Posts: 35
stopyourself is on a distinguished road
Re: Controlling Motors in Auto

As another rookie programmer, I can't explain the details to you very well but might be able to help you past some rookie mistakes. This picture would be moving the robot during auto using a flat sequence structure.
You can either use a flat sequence structure or while loops to do autonomous. Make sure you call the motor every 50ms or so -- if you tell it to do something once every 3 seconds or so, it will shut off after 0.5 seconds. Also, I've heard excessive while loops (bad stop conditions?) will bog up the processors and make it run slower. If you encounter this, fix that.
__________________
2013-2016: Team 2335
Reply With Quote