View Single Post
  #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).