Nexus Automation Nexus Robot User Manual page 42

Kits
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Nexus Robot and is the answer not in the manual?

Questions and answers

Table of Contents