View Single Post
  #2   Spotlight this post!  
Unread 24-02-2004, 21:19
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: Can You help us???

besides the control variables ( that should only change loop-to-loop ) first has not made you any variables. you put any variables you want in the user_routines.c file in the section right under where it sais
Code:
/*** DEFINE USER VARIABLES AND INITIALIZE THEM HERE ***/
/* EXAMPLES: (see MPLAB C18 User's Guide, p.9 for all types)
unsigned char wheel_revolutions = 0; (can vary from 0 to 255)
unsigned int  delay_count = 7;       (can vary from 0 to 65,535)
int           angle_deviation = 142; (can vary from -32,768 to 32,767)
unsigned long very_big_counter = 0;  (can vary from 0 to 4,294,967,295)
*/
and if you wana get realy fancy ( which i dont think, from this post, you are too intrested in ) you can go into the user_routiens.h file and do typedefs... etc but if you wana declare a counter variable, say, you would simply put
Code:
unsigned counter1 = 0;
and there ya go. simple eh? theres a bunch of variable types, im not even gonna start goin there. good luck guys
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"