Manual
www.nexusrobot.com Robot Kits manual
109
unsigned char getCarStat() const
Get the state of the car
return : The car’s state
Motor _state enum
Used to configure the behavior of a motor.
Note that not all motors can be configured in every state.
Variables:
MOTORS_FB
The switchmotorstat is front back
MOTORS_BF
The switchmotorstat is back front
unsigned char getSwitchMotorsStat() const
Get the state of the Motor
return : The motor’s state
¾ Private parameters
MotorWheel* _wheelUL
A point named _wheelUL as the object of MotorWheel
MotorWheel* _wheelLL
A point named _wheelLL as the object of MotorWheel
MotorWheel* _wheelLR
A point named _wheelLR as the object of MotorWheel
MotorWheel* _wheelUR
A point named _wheelUR 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