Go to Post it was beautifull just beautifull... then i took my earmuffs off. - Tytus Gerrish [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
  #1   Spotlight this post!  
Unread 15-01-2006, 19:25
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
Need a little help with how to break out of the box

I want to do some automation. I put Automation(); in the user routines fast.c under the 'insert auto in here'. Does this need to be Automation(void);?

I put Automation(); in the userroutines.h. Does this need to be automation(void);?

What would be an example of why the void is used? I know it is something like if the function returns output but do I need to expressly say this function has run?

I put my my automation function in user_routines.c defining it as void automation(void) {

Please tell me if all that I said is o.k.

Now how do I make it so that I can put Automation in its own .c file? Will it need its own .h? Do I have to define the .c file in ht userroutines.h? How will it know to use automation.h? to get to automation.c? to get to automation().

Now, how do I test this auto code without being in a match? Do I just move the call to automation from urf.c to ur.c?
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
 


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
Pre-manufactured control box for FIRST Ben.V.293 Technical Discussion 19 22-08-2005 12:53
Autonomous Camera Integration GregC Programming 2 06-02-2005 14:34
box grabbing matt111 3D Animation and Competition 3 27-01-2003 23:08
project box archiver 2000 2 23-06-2002 23:01
Gray box limitations Tim Skloss Technical Discussion 1 23-01-2002 07:38


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

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