Manual
www.nexusrobot.com Robot Kits manual
110
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 Omni4WD::getSwitchMotorsStat()
Parameters: unsigned char switchMotorsStat
The state want to set
See: Omni4WD::getSwitchMotorsStat()
Omni4WD()
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 four wheels car to show
void Omni4WD::demoActions(unsigned int speedMMPS,unsigned int duration,
unsigned int uptime,bool debug) {
unsigned int (Omni4WD::*carAction[])(unsigned int speedMMPS)={
&Omni4WD::setCarAdvance, // Car advance
&Omni4WD::setCarBackoff, //Car back off
&Omni4WD::setCarLeft, //Car turn left
&Omni4WD::setCarRight, //Car turn right
&Omni4WD::setCarUpperLeft, //Car upper left
&Omni4WD::setCarLowerRight, //Car lower right
&Omni4WD::setCarLowerLeft, //Car lower left
&Omni4WD::setCarUpperRight, //Car upper right
&Omni4WD::setCarRotateLeft, // Car rotate left
&Omni4WD::setCarRotateRight //Car rotate right