Manual

www.nexusrobot.com Robot Kits manual
54
see :
R2WD::setCarBackoff()
R2WD::setCarStrightdistance()
unsigned int setCarRotateLeftAngle(unsigned int speedMMPS,float radian);
Set the angle when the car moves as rotate left
This will lie within the range specified at R2WD::setCarRotateLeft()and R2WD::setCarRotateAngle()
Parameters:
unsigned int speedMMPS
The speed ofthe car moves , initialize it
float radian
The radian when the car move as rotate left
see :
R2WD::setCarRotateLeft()
R2WD::setCarRotateAngle()
unsigned int setCarRotateRightAngle(unsigned int speedMMPS=0,float radian=0);
Set the angle when the car moves rotate right
This will lie within the range specified at R2WD::setCarRotateRight()and R2WD::setCarRotateAngle()
Parameters:
unsigned int speedMMPS =0
The speed ofthe car moves , initialize it
float radian =0
The radian when the car move as rotate right, initialize it with 0
see :
R2WD::setCarRotateRight()
R2WD::setCarRotateAngle()
unsigned int setCarUpperLeftTime(unsigned int speedMMPS=0,unsigned int
radiusMM=WHEELSPAN,unsigned long duration=5000,unsigned int uptime=500);
Set period of time for the car moves upper left
This will lie within the range specified at R2WD::setCarUpperLeft()and R2WD::setCarArcTime ()
Parameters:
unsigned int speedMMPS =0
The speed of the car moves , initialize it
unsigned int radiusMM=WHEELSPAN
The radiusMM of the car move as upper left, initialize it
unsigned long duration=5000