Thread: auton variables
View Single Post
  #1   Spotlight this post!  
Unread 26-03-2005, 11:59
sirbleedsalot's Avatar
sirbleedsalot sirbleedsalot is offline
Registered User
FRC #0939
Team Role: Student
 
Join Date: Feb 2004
Location: New Effington South Dakota
Posts: 178
sirbleedsalot has a spectacular aura aboutsirbleedsalot has a spectacular aura aboutsirbleedsalot has a spectacular aura about
auton variables

I am trying to create an autonomous program. Currently I just have everything where it says "add your autonomous code here" however I would like to change it. What I want to do is have some variable like say slow which I could put in my autonomous to make the motors drive at half speed. From what I have read I have to define my variables in the user routines fast.c file like this



/*** DEFINE USER VARIABLES AND INITIALIZE THEM HERE ***/
#define slow



however I don't understand how that would know to set pwms 14 and 15 to 190. I am missing a large portion of the puzzle.
__________________
our web site