Manual
www.nexusrobot.com Robot Kits manual
65
See:
R2WD:: wheelLeftSetSpeedMMPS()
R2WD:: wheelRightSetSpeedMMPS()
R2WD::getCarSpeedMMPS()
unsigned int setCarBackoffBase(unsigned int speedMMPSL=0,unsigned int speedMMPSR=0)
Set car moves backoff
This will lie within the range specified at R2WD:: wheelLeftSetSpeedMMPS() and
R2WD::wheelRightSetSpeedMMPS() and R2WD::getCarSpeedMMPS()
Parameters:
unsigned int speedMMPSL=0
The speed set to the left motor
unsigned int speedMMPSR=0
The speed set to the right motor
See:
R2WD:: wheelLeftSetSpeedMMPS()
R2WD:: wheelRightSetSpeedMMPS()
R2WD::getCarSpeedMMPS()
unsigned int setCarRotateAngle(unsigned int speedMMPS=0,float radian=0)
Set the angle when the car moves rotate
This will lie within the range specified at R2WD::getWheelspanMM()
Parameters:
unsigned int speedMMPS=0
The speed set to the motors,initialize it
float radian=0
The radian set to the car moves,initialize it
Return: timeMS,the time the car moves
See: R2WD::getWheelspanMM()
unsigned int setCarStraightDistance(unsigned int speedMMPS=0,unsigned long distance=0);
Set the straight distance the car moves
Parameters:
unsigned int speedMMPS=0
The speed set the motors at,initialize it
unsigned long distance=0
The distance set the car moves,initialize it