Go to Post Own your words. - Joe Johnson [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 08-01-2007, 13:07
brennerator brennerator is offline
Registered User
#1560
 
Join Date: Jan 2005
Location: Silicon Valley
Posts: 75
brennerator is an unknown quantity at this point
Difference between user_routines

What is the difference between user_routines.c and user_routines_fast.c?

Also, how do I generate hex files in FusionEdit?
  #2   Spotlight this post!  
Unread 08-01-2007, 13:19
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Difference between user_routines

Generally speaking the functions you would edit in user_routines.c (Such as default routines) loop at a specific rate (26.2 ms) where as functions such at Process_Data_From_Local_IO in user_routines_fast.c run as fast as the chip can process them, while managing everything else.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #3   Spotlight this post!  
Unread 08-01-2007, 15:22
Davx's Avatar
Davx Davx is offline
Davux
AKA: Dave Amenta
FRC #0195 (Cyber Knights)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Southington, Connecticut
Posts: 16
Davx will become famous soon enoughDavx will become famous soon enough
Send a message via AIM to Davx Send a message via MSN to Davx
Re: Difference between user_routines

brennerator : Read the comments in main.c, user_routines.c, and user_routines_fast.c. Know that statusflag.NEW_SPI_DATA will equal 1 once every 26.2ms. The functions in user_routines_fast are generally for interrupt handling and fast loops. Understand how the structure works before you start programming, otherwise you'll end up with some strange problems that are completely avoidable.
__________________
--David Amenta - Dave Amenta .com - Person Meets Profession
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
Number of lines of code in user_routines.c teh_pwnerer795 Programming 12 01-01-2007 09:10
Strength difference between aluminum sdcantrell56 Technical Discussion 3 21-01-2006 10:07
What is the Difference between Parker and Bimba generalachoo Pneumatics 3 23-01-2005 16:58
Difference Between Motors shyra1353 Motors 4 13-01-2004 10:12
Difference in aluminum archiver 2001 1 23-06-2002 23:49


All times are GMT -5. The time now is 20:41.

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