Go to Post No, no, no, it's a fire game. The pool is there in case of accidents. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-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 02-05-2005, 05:45 PM
gemccnp gemccnp is offline
Registered User
no team
 
Join Date: Jan 2005
Location: Montana
Posts: 10
gemccnp is an unknown quantity at this point
Best Way To Insert Autonomous Code Into Default then load help.? :-)?

Hello Robot Gurus, I am not as experienced in C as I should be but am trying to help out our team.

I know I have good default code but I am wanting to add autonomous code in the right places. I have found some good documents. I know there is one main file. Does anyone have any links or docs on how to do this. Which file do I edit ? Do I edit one file and then recompile the frc default ?

It looks like I need to add a file called auto.h to the rest of them, is this true? The camera.c file with the default code seems adequate but is it just for controls?

Thanks for any help and links.

Sincerely
George Murphy
Team #1696
  #2   Spotlight this post!  
Unread 02-05-2005, 05:51 PM
probizzle's Avatar
probizzle probizzle is offline
Registered User
AKA: Prabhas Pokharel
#0639 (Code Red)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Ithaca
Posts: 78
probizzle will become famous soon enoughprobizzle will become famous soon enough
Send a message via AIM to probizzle
Re: Best Way To Insert Autonomous Code Into Default then load help.? :-)?

The place for adding autonomous code is in User_Autonomous() in user_routines_fast.c, under the comment
/* Add your own autonomous code here */

It will be a good idea to make an auto.h/auto.c to have all your autonomous functions, and use user_routines_fast.c to call a central function (auto_main() perhaps).

Anyway, look at http://kevin.org/frc for lot's of more cool information.

[edit] Also, look at http://www.ifirobotics.com/docs/lega...2-apr-2004.pdf too. This is last year's programming reference guide. Most of hte things there still apply. Obviously though, you won't find any references to the camera there. (and don't bother about references to the line tracker, which was "last year's camera"). [/edit]
__________________
Code Red Team 639 Winners of the 2005 FingerLakes Regional with 191 and 494.
--
http://pset.deu83.com << my baby
http://www.setgame.com/set/ << it's mother

Last edited by probizzle : 02-05-2005 at 05:56 PM.
  #3   Spotlight this post!  
Unread 02-05-2005, 05:58 PM
gemccnp gemccnp is offline
Registered User
no team
 
Join Date: Jan 2005
Location: Montana
Posts: 10
gemccnp is an unknown quantity at this point
Thumbs up Re: Best Way To Insert Autonomous Code Into Default then load help.? :-)?

Thanks a ton for the quick response and great info. That clears up a lot for us!

Cheers!


Quote:
Originally Posted by probizzle
The place for adding autonomous code is in User_Autonomous() in user_routines_fast.c, under the comment
/* Add your own autonomous code here */

It will be a good idea to make an auto.h/auto.c to have all your autonomous functions, and use user_routines_fast.c to call a central function (auto_main() perhaps).

Anyway, look at http://kevin.org/frc for lot's of more cool information.

[edit] Also, look at http://www.ifirobotics.com/docs/lega...2-apr-2004.pdf too. This is last year's programming reference guide. Most of hte things there still apply. Obviously though, you won't find any references to the camera there. (and don't bother about references to the line tracker, which was "last year's camera"). [/edit]
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
Where to insert code Autonomous mode caderader Programming 5 02-18-2005 03:49 PM
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 01-31-2005 09:28 PM
heres the code. y this not working omega Programming 16 03-31-2004 02:18 PM
How long does it take you to load the default code? vegasmcse Robotics Education and Curriculum 10 11-03-2003 08:41 PM


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi