Go to Post And now I'll just take a moment and say that you've all gone completely insane. That is all. - galewind [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 14-01-2006, 15:17
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
CPU loop speed

Last year 1 loop on through the code on the CPU was about 1.36 secs (depending on amount of code). Now that the processor is faster is the time any different?
  #2   Spotlight this post!  
Unread 14-01-2006, 17:44
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: CPU loop speed

Is it changed at all?
  #3   Spotlight this post!  
Unread 14-01-2006, 18:02
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: CPU loop speed

(I don't have a copy of the code handy, so please forgive small errors in function names.)

The "fast" loop, process_data_from_local_IO(), is essentially called again as soon as it returns, so it runs more often if it takes less time. Ours two years ago was quick enough to deal with polling digital sensors that changed every couple of milliseconds. The "slow" loop, Default_Routine(), is called every time there is a new communication packet available from the OI, approximately 39 times per second.

I have no idea where your "1.36 seconds" came from.
  #4   Spotlight this post!  
Unread 14-01-2006, 20:53
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: CPU loop speed

1.36!!!! that is VERY slow... lol... i think the Default routine is called every 26.2 ms ... but the actual loop time of other functions varies based on a lot of other factrs.
__________________
Team 701
  #5   Spotlight this post!  
Unread 14-01-2006, 21:03
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: CPU loop speed

Sounds like the "other end" that you're using to "measure" the "loop speed" isn't accurate -- note that serial ports don't magically report data back in realtime...

The new controller (PIC18F8722) just boasts more storage all around, and does not improve on speed.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #6   Spotlight this post!  
Unread 06-02-2007, 14:25
last_decesion last_decesion is offline
Registered User
FRC #1926
 
Join Date: Jan 2007
Location: Rough Rock, Arizona
Posts: 1
last_decesion is an unknown quantity at this point
Question Re: Cam Program

Who here has the latest progamming for the CPU Cam2?
  #7   Spotlight this post!  
Unread 07-02-2007, 15:22
shawger shawger is offline
Programming Subteam Leader
FRC #1732 (Hilltopper Robotics)
Team Role: Alumni
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Wisconsin
Posts: 60
shawger will become famous soon enough
Re: Cam Program

Quote:
Originally Posted by last_decesion View Post
Who here has the latest progamming for the CPU Cam2?
Do you mean Kevin Watson's code? You can find the latest version at his website www.kevin.org/frc
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
Electronic Speed Controllers for DC Motor Spindle Robotics Education and Curriculum 12 23-04-2005 09:18
Autonomous loop speed BillyJ Programming 6 08-03-2005 14:10
Rewriting main loop Max Lobovsky Programming 4 04-01-2005 18:35
Joining 2 dif. motors K.Shaw Motors 32 14-10-2004 19:40
Power, speed, and torque... AGH Gui Cavalcanti Technical Discussion 5 10-11-2002 19:02


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

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