I'm trying to create a function that allows me to more easily start a motor, but I'm running into a problem, I don't know the type to use for the motorName
argument. I'm using a VEX 269 Motor. Here's the function.
void runMotor(MotorTypeHere motorName, int speed, int time)
{
startMotor(motorName, speed);
wait(time);
}
I just don't know what type to put for the motorName
argument. What type would it be?