www.nexusrobot.com Robot Kits manual
43
Define a Pointer named isr, as the member of the struct ISRVars
¾
Private members
unsigned char
pinPWM
The PWM pin.
unsigned char
pinDir
The diretion pin
unsigned char
pinIRQ
The IRQ pin
unsigned char
pinIRQB
The IRQB pin
bool
desiredDirection
The desired direction
unsigned int
speedPWM
Save the current PWM
int
speedRPMInput
Save the Motor’s current speed.it will be used in class PID
int
speedRPMOutput
Save the speed of the Motor output.
int
speedRPMDesired
Save the speed the user want to set
bool
pidCtrl
The class PID work’s mode
Motor
()
Construct a new Motor instance.
After this the class Motor’s explain is over
¾
Class GearedMotor
Interface for visit of peripherals and it’s Inherit from the Public Motor.
¾
Public functions
GearedMotor
(unsigned char _pinPWM,unsigned char _pinDir,
Содержание Nexus Robot
Страница 74: ...www nexusrobot com Robot Kits manual 70 Sample Wiring Diagram for RB004 2WD V2 0...
Страница 92: ...www nexusrobot com Robot Kits manual 88 Diagram for Omni3WD_V1 0...
Страница 96: ...www nexusrobot com Robot Kits manual 92 Diagram_Omni3WD_V3 3...
Страница 118: ...www nexusrobot com Robot Kits manual 114 Sample Wiring Diagram for RB011 Mecanum 4WD V4 1...