Manual
www.nexusrobot.com Robot Kits manual 
  50
In your sketch. This will create a R2WD object called R2WD. You can then use any of its methods; for 
instance, to control a R2WD attached to pins, you could write 
Parameters: 
MotorWheel*wheelLeft 
A point named wheelLeft as the object of MotorWheel,left wheel 
MotorWheel*wheelRight 
A point named wheelRight as the object of MotorWhee,right wheel 
unsigned int wheelspanMM=WHEELSPAN 
The two wheels’ span   
unsigned int getWheelspanMM() const 
 Get the wheel span (millimeter) 
Return :  Wheel span 
unsigned int setWheelspanMM(unsigned int wheelspan) 
 Set the wheel span 
This will lie within the range specified at R2WD::getWheelspanMM() 
Parameters: 
Unsigned int wheelspan 
The value want to set       
see :  R2WD::getWheelspanMM() 
unsigned char switchMotors() 
 Switch the motor to control 
This will lie within the range specified at R2WD::getSwitchMotorsStat() 
see :  R2WD::getSwitchMotorsStat() 
unsigned char switchMotorsReset() 
      Reset the switch about motor’s control 
This will lie within the range specified at R2WD::getSwitchMotorsStat() 
see :  R2WD::getSwitchMotorsStat() 
unsigned int setCarStop() 
    Set the car stop 
This will lie within the range specified at R2WD::setCarStat() and R2WD::setMotorAll() 










