Go to Post Your best friends are all team members and you could never live without any of them because robotics people are the best people. - Riverdance [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
  #2   Spotlight this post!  
Unread 22-02-2005, 10:58
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Delay in autonomous mode

Quote:
Originally Posted by SpeakerSilenced
Is there a simple way of delaying in autonomous mode?
At the top of your user_routines_fast.c:

Code:
static unsigned int sleeper = 0;
Where you want to delay:

Code:
if (sleeper > ???)
{
     /* code you want delayed */
}
else
     sleeper++;
For a simple autonomous mode, usually you structure your autonomous mode with a "switch/case" control block to seperate the different "sections" of your autonomous program. If you're doing this, make one of your sections the above delay, and under "code you want delayed" you place the code that moves you to your next "section".

-SlimBoJones...
 


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
a simple autonomous mode question chippermonky Programming 3 18-02-2005 01:54
A little question about the autonomous mode Anton Programming 4 18-01-2005 14:08
Future of Autonomous Mode FadyS. Programming 41 24-05-2004 19:45
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 00:15.

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