Log in

View Full Version : Delay


ShadowWing
31-01-2012, 23:04
Hello everyone,

There's a five millisecond (0.005 sec) delay in some of the given codes, such as that shown in pg 13 of the "Getting Started with Java for FRC" (by Worcester Polytechnic Institute Robotics Resource Center) manual.

What is the purpose of this short delay?

~Team 3501,
Sunnyvale, CA

RyanCahoon
01-02-2012, 00:52
That bit is probably in code that repeats as fast as possible, either in a while loop or in one of the *Continuous methods of IterativeRobot. It ensures that that particular part of the program doesn't consume all of the CPU resources, giving other processes time to run.