
www.nexusrobot.com Robot Kits manual
38
Return:
Direction pin
unsigned char
getPinIRQ
() const
Get the IRQ Pin number
Return:
IRQ pin
unsigned char
getPinIRQB
() const
Get the IRQB Pin number
Return:
IRQB pin
unsigned int
runPWM
(unsigned int PWM,bool dir,bool saveDir=true);
Set the PWM and direction for Motors .then return the PWM.
Parameters:
unsigned int PWM
The PWM set for the Motor
Bool dir
The direction set for the Motor
Bool saveDir
A flag to confirm if the direction will be reset
Return:
PWM
unsigned int
getPWM
() const
Get the motor’s current pwm
Return:
Speed PWM
unsigned int
advancePWM
(unsigned int PWM)
Set the pwm when the motor run advance
Parameters:
unsigned int PWM
The PWM set for Motor
Return:
runPWM(PWM,DIR_ADVANCE)
See:
Motor::
runPWM
()
unsigned int
backoffPWM
(unsigned int PWM);
Set the pwm when the motor backoff
This will lie within the range specified at
Motor::runPWM
()
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...