Go to Post IRI: it's FIRSTmas in July! - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2012, 23:04
ShadowWing's Avatar
ShadowWing ShadowWing is offline
Registered User
FRC #3501
 
Join Date: Jan 2011
Location: Sunnyvale
Posts: 11
ShadowWing is an unknown quantity at this point
Delay

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
  #2   Spotlight this post!  
Unread 01-02-2012, 00:52
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Delay

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.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi