|
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-
|