Go to Post Whatever you do, do it in graciously professional manner. - EricH [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 20-02-2004, 23:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Answers for Dead Reckoning... FOR BEGINNERS

Quote:
Originally Posted by KenWittlief
its very easy to have a variable that you increment everytime you loop through your auton code, and use that as a rough timer - if it increments in the main loop it will have a 26mS period
I'm doing something even simpler -- I'm simply zeroing a specific variable every time through the 26ms loop. The fast loop code just checks to see when it becomes zero, and maintains its own timers.
Quote:
If you increment it in the user_fast code it will be even smaller (I forget the period off the top of my head)
Doesn't user_fast just go "as fast as possible"? The period will just depend on how much time it takes to execute the function.
Quote:
and you dont have to mess with interrupts that way.
Messing with interrupts is, um, messy.
 


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
What to do with autonomous Rickertsen2 Programming 48 17-02-2004 16:22
FIRST message board- no answers? Jeff Waegelin General Forum 2 13-01-2003 22:40
Answers...Answers... archiver 2001 1 24-06-2002 03:58


All times are GMT -5. The time now is 23:57.

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