Manual
www.nexusrobot.com Robot Kits manual
46
unsigned char _pinIRQ
The IRQ pin
unsigned char _pinIRQB
The IRQB pin
struct ISRVars* _isr
A point of the struct IRSVars’s member
unsigned int _ratio
A variable equal 60
unsigned int cirMM
A variable equal 314 mm
unsigned int getCirMM() const
Get the Circumference of the wheel
Return: _cirMM
unsigned int setCirMM(unsigned int cirMM=CIRMM);
Set the Circumference of the wheel
This will lie within the range specified at MotorWheel::getCirMM();
parameters
unsigned int cirMM
The value want to set
See: MotorWheel::getCirMM()
unsigned int getSpeedCMPM() const
Get the speed(centimeter per minute)
This will lie within the range specified at GearedMotor::getGearedSpeedRPM().
See: GearedMotor::getGearedSpeedRPM()
unsigned int setSpeedCMPM(unsigned int cm,bool dir)
Set the speed for motor
This will lie within the range specified at GearedMotor::setGearedSpeedRPM().
Then you will see MotorWheel::getspeedCMPM()
See:
GearedMotor::setGearedSpeedRPM()
MotorWheel::getspeedCMPM()