www.nexusrobot.com Robot Kits manual
36
¾
Motorwheel
This page describes how to control the built-in Motorwheel.
¾
Motorwheel Class Reference
This document describes how to use the Motor library to control Motors. On the Introduction, you will
know how to controls the motor’s PWM, direction and
speed .
This motorwheel library version 1.1,compatible with maple.
Contents:
Struct ISRVars
Class Motor
Class GearedMotor
Class MotorWheel
struct ISRVars Reference
This section gives a full listing of the capabilities of a struct ISRVars
struct ISRVars
Define a struct named of IRSVars.In the struct ,there are 7 values.
Values:
void (
*ISRfunc
)()
A pointer function
volatile long
pulses
The pulse which got from the interrupt pin, will be used to confirm the direction
volatile unsigned long
pulseStartMicros
Save the time when the start pulse
volatile unsigned long
pulseEndMicros
Save the time when the end pulse
volatile unsigned int
speedPPS
Save the speed of the pulse(pulse per second)
volatile bool
currDirection
Save the current direction
unsigned char
pinIRQB
The IRQB pin
Содержание 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...