Go to Post Building a robot to survive 2 districts, a Regional, a Region Championship, and World Championships (plus 4 - soon to be 5 - off season events) is a challenge in itself. - Jared Russell [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 14-01-2008, 10:33
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
Re: Help Autonomous code not working

you cant do the delay like that it would delay the 26 ms. loop time which in turn would cause a code error on the robot. i figured that out in the summer. the only way you could pull off a delay is by adding a global vaiable that counts the number of iterations of the while loop in the autonomous code.

1. declare a variable at the top
2. put a (variable)++ in the loop
3. use the variable as a counter for your delay.
__________________
, Sean

TEAM 867
-electrical
-pneumatics
-programming



2008 Autodesk Visualization Grand Prize Winner
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Incrementation Code not working benhulett Programming 6 12-02-2007 17:39
easyc demo code not working sniggel Programming 5 28-01-2007 16:40
Camera not working in autonomous Roger Programming 9 09-03-2006 07:38
Camera code not working.... DemonYawgmoth Programming 5 11-02-2006 09:21
Gyro not working in Autonomous? kaszeta Programming 7 11-02-2006 01:28


All times are GMT -5. The time now is 21:09.

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