www.nexusrobot.com Robot Kits manual
76
¾
Public functions
Omni3WD
(MotorWheel* wheelBack,MotorWheel* wheelRight,MotorWheel* wheelLeft)
Construct a new Omni3WD instance.
in your sketch. This will create a Omni3WD object called Omni3WD. You can then use any of its methods;
for instance, to control a Omni3WD attached to pins, you could write
Parameters:
MotorWheel* wheelBack
A point named wheelBack as the object of MotorWheel,back wheel
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 char
switchMotorsLeft
()
Rotate left to choose the motors
This will lie within the range specified at
Omni3WD::getSwitchMotorsStat
()
See:
Omni3WD::getSwitchMotorsStat
()
unsigned char
switchMotorsRight
()
Rotate right to choose the motors
This will lie within the range specified at
Omni3WD::getSwitchMotorsStat
()
See:
Omni3WD::getSwitchMotorsStat
()
unsigned char
switchMotorsReset
()
Reset the rotate direction to choose the motor
This will lie within the range specified at
Omni3WD::getSwitchMotorsStat
()
See:
Omni3WD::getSwitchMotorsStat
()
unsigned int
setMotorAll
(unsigned int speedMMPS=0,bool dir=DIR_ADVANCE)
Set all the motors’ speed and direction
This will lie within the range specified at
Omni3WD::wheelBackSetSpeedMMPS
() and
Omni3WD::wheelRightSetSpeedMMPS
() and
Omni3WD::wheelLeftSetSpeedMMPS
()
Parameters: unsigned int speedMMPS=0
Summary of Contents for Nexus Robot
Page 74: ...www nexusrobot com Robot Kits manual 70 Sample Wiring Diagram for RB004 2WD V2 0...
Page 92: ...www nexusrobot com Robot Kits manual 88 Diagram for Omni3WD_V1 0...
Page 96: ...www nexusrobot com Robot Kits manual 92 Diagram_Omni3WD_V3 3...
Page 118: ...www nexusrobot com Robot Kits manual 114 Sample Wiring Diagram for RB011 Mecanum 4WD V4 1...