|
Autonomous Programming Help
Hello, I'm writing the code for our FTC bot in RobotC and I have ran into a bit of trouble trying to optimize the code a bit, I want to be able to define to variable for on string of code in my function like this
void goForward(const int Speed, nTime)
{
motor[1] = Speed;
wait1MSec(nTime);
}
basically so I can define the speed and how long it runs in the main task without editing the function, but the above code doesn't seem to work, and would greatly appreciate any help.
|