Go to Post Mostly, however, I find that once the students start building a robotics project, they are too busy learning for me to teach. - dtengineering [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 24-02-2004, 13:47
BobcatProgramer BobcatProgramer is offline
Registered User
AKA: Brian
FRC #0758 (Roboticats)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2002
Location: University of Western Ontario
Posts: 12
BobcatProgramer is an unknown quantity at this point
Send a message via MSN to BobcatProgramer
Question Looping Atonomous

I know that if you are programing a loop in the MAIN section it loops like 38ms or something but what is it when you are in the users_routins_fast section! I want to make a program in that atonomous section but I have no idea where to start because I don't know how long to make each part of it. Could someone please tell me the number of loops the fast section does a second!!
  #2   Spotlight this post!  
Unread 24-02-2004, 14:02
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Looping Atonomous

actually in the auton section of the user_fast code, the auton looks for new input data on each loop - so I take that as meaning, the auton code will run the same as the process_data_ from_uP loop

26.2mS per loop

unless you take that statement to look for new input out of the auton code.
  #3   Spotlight this post!  
Unread 24-02-2004, 14:06
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,112
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: Looping Atonomous

Quote:
Originally Posted by BobcatProgramer
Could someone please tell me the number of loops the fast section does a second!!
The "fast section" runs flat out, as quickly as it can, with occasional interruptions every 26ms or so as the "non-fast section" does some work. The number of loops per second depends on how long the routine takes to complete.

If you want to keep track of time, you can 1) use interrupts, 2) poll the PIC timer registers, or 3) use the 26ms-or-so communication as a timebase.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: 84's Atonomous Stack Slapper CD47-Bot Extra Discussion 2 06-04-2003 22:43
control program looping??? ctartist236 Programming 1 08-02-2002 10:09


All times are GMT -5. The time now is 10:48.

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