|
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.
|