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
Содержание Nexus Robot
Страница 74: ...www nexusrobot com Robot Kits manual 70 Sample Wiring Diagram for RB004 2WD V2 0...
Страница 92: ...www nexusrobot com Robot Kits manual 88 Diagram for Omni3WD_V1 0...
Страница 96: ...www nexusrobot com Robot Kits manual 92 Diagram_Omni3WD_V3 3...
Страница 118: ...www nexusrobot com Robot Kits manual 114 Sample Wiring Diagram for RB011 Mecanum 4WD V4 1...