View Single Post
  #8   Spotlight this post!  
Unread 06-03-2015, 14:45
budman budman is offline
Registered User
FTC #9010 (Robotic Rangers)
Team Role: Coach
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Plano, TX
Posts: 12
budman is an unknown quantity at this point
Re: Autonomous Programming Help

After waiting the amount of time for the motor to move, you will need to turn the motor off.
For example:

void sweepIn(int Speed, int nTime)
{
motor[Sweep] = Speed;
wait1Msec(nTime);
motor[Sweep] = 0;
}

Also, the "const" declarations on the function parameters are not necessary. Just declare as "int". See above in green.