Manual

www.nexusrobot.com Robot Kits manual
39
Parameters:
unsigned int PWM
The PWM set for Motor
See: Motor:: runPWM()
bool setDesiredDir(bool dir)
The desired direction set for the motor
This will lie within the range specified at Motor::getDesiredDir()
Parameters:
Bool dir
The direction set for Motor
See: Motor::getDesiredDir()
bool getDesiredDir() const
Get the desired direction
Return: Desired Direction
bool reverseDesiredDir()
Get the reverse desired direction
Return: Desired Direction
bool setCurrDir()
Set a current direction on the basis of the digitalRead(pinIRQB)
Return:
Current Direction If getPinIRQB() was defined
false otherwise
bool getCurrDir() const
Get the current direction
Return: Current Direction
unsigned int getSpeedRPM() const
Get the speed of the motor (round per minute)
This will lie within the range specified at SPEEDPPS2SPEEDRPM().
See: SPEEDPPS2SPEEDRPM().