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
()
Содержание 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...