Manual
www.nexusrobot.com Robot Kits manual
111
};
for(int i=0;i<10;++i) { //the car have 10 demo actions
(this->*carAction[i])(0); // default parameters not available in function
pointer
setCarSpeedMMPS(speedMMPS,uptime); //in the uptime , the car’s speed accelerate
from 0 to speedMMPS
delayMS(duration,debug); //the car’s state last “duration” times
setCarSlow2Stop(uptime); //stop the car slowly in uptime
}
setCarStop(); //stop the car
delayMS(duration); //delay(duration)
switchMotors(); //switch the motors.
}