Manual

www.nexusrobot.com Robot Kits manual
84
¾ Private parameters
MotorWheel* _wheelBack
A point named wheelBack as the object of MotorWheel
MotorWheel* _wheelRight
A point named wheelright as the object of MotorWheel
MotorWheel* _wheelLeft
A point named wheelLeft as the object of MotorWheel
unsigned char _carStat
To save the car’s state
unsigned char setCarStat(unsigned char stat)
Set the state of the car
Parameters: unsigned char stat
The state want to set
return :
Carstate if the stat in the range of the want
STAT_UNKNOWN otherwise
unsigned char _switchMotorsStat
Switch the motors’ state
unsigned char setSwitchMotorsStat(unsigned char switchMotorsStat)
Set the Motors’ state
This will lie within the range specified at Omni3WD::getSwitchMotorsStat()
Parameters: unsigned char switchMotorsStat
The state want to set
See: Omni3WD::getSwitchMotorsStat()
Omni3WD()
Construct a new R2DW instance.
void demoActions(unsigned int speedMMPS=100,unsigned int duration=5000,
unsigned int uptime=500,bool debug=false)
A demo function for three wheels car to show