Manual
www.nexusrobot.com Robot Kits manual
60
STAT_ROTATELEFT
STAT_ROTATERIGHT
This will lie within the range specified at R2WD::GetCarSpeedMMPS()
Parameters:
unsigned int speedMMPS=0
The speed for the car to moves ,initialize it
unsigned int ms=1000
The time the car’s speed changed from 0 to speedMMPS used
see : R2WD::getCarSpeedMMPS()
unsigned int setCarSpeedMMPSArc(unsigned int speedMMPS=0,unsigned int
radiusMM=WHEELSPAN,unsigned int ms=1000)
Set the car’s speed, when the car’s state was one of the following :
STAT_UPPERLEFT
STAT_LOWERLEFT
STAT_LOWERRIGHT
STAT_UPPERRIGHT
This will lie within the range specified at R2WD::getCarSpeedMMPS()
Parameters:
unsigned int speedMMPS=0
The speed for the car to moves ,initialize it
unsigned int radiusMM=WHEELSPAN
The radius the car moves
unsigned int ms=1000
The time the car’s speed changed from 0 to speedMMPS used
see : R2WD::getCarSpeedMMPS()
unsigned int setCarSlow2Stop(unsigned int ms=1000)
Stop the car slowly
This will lie within the range specified at R2WD::setCarSpeedMMPS() or
R2WD::setCarSpeedMMPSArc()
Parameters:
unsigned int ms=1000
The time stop the car used,initialize it
see : R2WD::getCarSpeedMMPS()