View Single Post
  #2   Spotlight this post!  
Unread 08-03-2016, 13:23
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 162
nickbrickmaster is an unknown quantity at this point
Re: Timing, threads, the Field Management System, etc

The robot calls periodic methods at 50hz. You can start your own threads if you want. If you write an infinite loop in a periodic method, then no other control methods will be called, as there is a single main thread that reads FMS/input and calls control methods. If you have code that takes too much time, the robot well wait until that is finished. If you want more control over timing, such as faster updates, look into the SampleRobot class.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-