Thread: auton variables
View Single Post
  #2   Spotlight this post!  
Unread 26-03-2005, 12:13
Goobergunch Goobergunch is offline
Registered User
FRC #1168 (Malvern Robotics)
Team Role: Alumni
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Paoli, PA
Posts: 246
Goobergunch is a name known to allGoobergunch is a name known to allGoobergunch is a name known to allGoobergunch is a name known to allGoobergunch is a name known to allGoobergunch is a name known to all
Re: auton variables

I'd declare my variable like this:
Code:
/*** DEFINE USER VARIABLES AND INITIALIZE THEM HERE ***/
int slow;
and further down:
Code:
void User_Autonomous_Code(void)
{
slow = 190;
and then even further down:
Code:
/* Add your own autonomous code here.*/

pwm14 = slow;
pwm15 = slow;