View Single Post
  #1   Spotlight this post!  
Unread 15-01-2006, 11:06
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
While Loop Require in OperatorControl?

I've seen now two videos of a couple of engineers from Intellitek that are teaching a seminar on EasyC and both of them show creating a WHILE (1) LOOP in the operatorcontrol function and putting your code inside the loop.

Is this required? I've got my code to excute just fine without putting a while (1) loop inside the OperatorControl function. Doesn't it loop anyway?

I know the autonmous mode does not excute in a loop, once it completes to the end it's done, unless you put a while loop in there.

One thing that would be handy to see is a generic FLOW CHART on your "Competion Template". Like the one we get when we download default code from innovation first.

I am wondering if this loop is required and part of my problem of timing my standard CPU "Scan time". In another post.
Attached Thumbnails
Click image for larger version

Name:	flow.jpg
Views:	62
Size:	14.4 KB
ID:	3822  
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369