![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
RoboClaw motor controller class interface. More...
#include <sys/types.h>
#include <string>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
Go to the source code of this file.
Classes | |
class | motor::roboclaw::RoboClawChipSelect |
RoboClaw motor controller chip select class. More... | |
class | motor::roboclaw::RoboClawComm |
RoboClaw communication class. More... | |
class | motor::roboclaw::RoboClaw |
RoboClaw 2 motor controller class. More... | |
Variables | |
static const int | motor::roboclaw::SerBaud2400 = 2400 |
2400 serial baudrate | |
static const int | motor::roboclaw::SerBaud9600 = 9600 |
9600 serial baudrate | |
static const int | motor::roboclaw::SerBaud19200 = 19200 |
19200 serial baudrate | |
static const int | motor::roboclaw::SerBaud38400 = 38400 |
38400 serial baudrate | |
static const int | motor::roboclaw::SerBaud115200 = 115200 |
115200 serial baudrate | |
static const int | motor::roboclaw::SerBaud230400 = 230400 |
230400 serial baudrate | |
static const int | motor::roboclaw::SerBaud460800 = 460800 |
460800 serial baudrate | |
static const int | motor::roboclaw::USBBaud1Mbps = 1000000 |
1Mbps USB typical baudrate | |
static const byte_t | motor::roboclaw::AddrMin = 0x80 |
minimum controller address | |
static const byte_t | motor::roboclaw::AddrMax = 0x87 |
maximum controller address | |
static const byte_t | motor::roboclaw::AddrDft = 0x80 |
default controller address | |
static const byte_t | motor::roboclaw::CheckSumMask = 0x7f |
checksum mask | |
static const byte_t | motor::roboclaw::AckReqBit = 0x80 |
request ack to write commands | |
static const byte_t | motor::roboclaw::RspAck = 0xff |
ack response to write commands | |
static const byte_t | motor::roboclaw::ParamSpeedMin = 0 |
minimum absolute speed | |
static const byte_t | motor::roboclaw::ParamSpeedMax = 127 |
maximum absolute speed | |
static const byte_t | motor::roboclaw::ParamStop = 0 |
stop | |
static const byte_t | motor::roboclaw::ParamSpeed7MaxBwd = 0 |
minimum absolute speed | |
static const byte_t | motor::roboclaw::ParamStop7 = 64 |
all stop | |
static const byte_t | motor::roboclaw::ParamSpeed7MaxFwd = 127 |
maximum absolute speed | |
static const byte_t | motor::roboclaw::ParamTurnMin = 0 |
min absolute turn speed | |
static const byte_t | motor::roboclaw::ParamTurnMax = 127 |
max absolute turn speed | |
static const byte_t | motor::roboclaw::ParamNoTurn = 0 |
no turn | |
static const byte_t | motor::roboclaw::ParamTurn7MaxLeft = 0 |
full turn left | |
static const byte_t | motor::roboclaw::ParamNoTurn7 = 64 |
no turn | |
static const byte_t | motor::roboclaw::ParamTurn7MaxRight = 127 |
full turn right | |
static const int | motor::roboclaw::ParamDutyCycleMin = -32767 |
-100% duty cycle | |
static const int | motor::roboclaw::ParamDutyCycleStop = 0 |
0% duty cycle | |
static const int | motor::roboclaw::ParamDutyCycleMax = 32767 |
100% duty cycle | |
static const size_t | motor::roboclaw::ParamVerLen = 48 |
version string length. | |
static const size_t | motor::roboclaw::ParamVerLenMin = 4 |
version minimum length. | |
static const double | motor::roboclaw::ParamVoltScale = 0.1 |
10/th of a volt | |
static const double | motor::roboclaw::ParamVoltMainMin = 6.0 |
min main battery voltage | |
static const double | motor::roboclaw::ParamVoltLogicMin = 5.5 |
minimum logic voltage | |
static const double | motor::roboclaw::ParamVoltMax = 34.0 |
maximum voltage | |
static const double | motor::roboclaw::ParamAmpScale = 0.01 |
sensed_value * S = A | |
static const double | motor::roboclaw::ParamAmpMin = 0.0 |
minimum amps | |
static const double | motor::roboclaw::ParamAmpMinSane = 0.5 |
minimum amps for operation | |
static const double | motor::roboclaw::ParamAmpMax = 15.0 |
maximum amps | |
static const byte_t | motor::roboclaw::ParamVoltMinMainMin = 0 |
0 == 6 volts | |
static const byte_t | motor::roboclaw::ParamVoltMinMainMax = 120 |
120 == 30 volts | |
static const double | motor::roboclaw::ParamVoltMinMainOff = 6.0 |
V @ 0 value. | |
static const double | motor::roboclaw::ParamVotlMinMainDft = 6.0 |
default on reset | |
static const byte_t | motor::roboclaw::ParamVoltMaxMainMin = 0 |
0 == 0 volts | |
static const byte_t | motor::roboclaw::ParamVoltMaxMainMax = 154 |
154 == 30 volts | |
static const byte_t | motor::roboclaw::ParamVoltMinLogicMin = 0 |
0 == 6 volts | |
static const byte_t | motor::roboclaw::ParamVoltMinLogicMax = 140 |
120 == 30 volts | |
static const double | motor::roboclaw::ParamVoltMinLogicOff = 6.0 |
V @ 0 value. | |
static const byte_t | motor::roboclaw::ParamVoltMaxLogicMin = 30 |
30 == 6 volts | |
static const byte_t | motor::roboclaw::ParamVoltMaxLogicMax = 175 |
175 == 34 volts | |
static const double | motor::roboclaw::ParamVoltMinS = 5.0 |
(V - Off) * S = value | |
static const double | motor::roboclaw::ParamVoltMaxS = 5.12 |
V * S = value. | |
static const double | motor::roboclaw::ParamVoltSensedS = 0.1 |
sensed_value * S = V | |
static const double | motor::roboclaw::ParamTempScale = 0.1 |
sensed_value * S = C | |
static const byte_t | motor::roboclaw::ParamEncModeRCAnalogBit = 0x80 |
RC/analog bit. | |
static const byte_t | motor::roboclaw::ParamEncModeRCAnalogDis = 0x00 |
RC/analog disable. | |
static const byte_t | motor::roboclaw::ParamEncModeRCAnalogEn = 0x80 |
RC/analog enable. | |
static const byte_t | motor::roboclaw::ParamEncModeQuadAbsBit = 0x01 |
quad/absolute bit | |
static const byte_t | motor::roboclaw::ParamEncModeQuad = 0x00 |
quadrature encoder | |
static const byte_t | motor::roboclaw::ParamEncModeAbs = 0x01 |
absolute encoder | |
static const long long | motor::roboclaw::ParamEncQuadMin = 0 |
quadrature encoder min | |
static const long long | motor::roboclaw::ParamEncQuadMax = 4294967295LL |
quadrature encoder max | |
static const long | motor::roboclaw::ParamVelPidQppsDft = 44000 |
speed of encoder at max | |
static const long | motor::roboclaw::ParamVelPidPDft = 0x00010000 |
vel proportional const | |
static const long | motor::roboclaw::ParamVelPidIDft = 0x00008000 |
vel integrative const | |
static const long | motor::roboclaw::ParamVelPidDDft = 0x00004000 |
vel derivative const | |
static const long | motor::roboclaw::ParamVelPidCvt = 0x00010000 |
vel const conversion | |
static const long | motor::roboclaw::ParamPosPidPDft = 0 |
pos proportional const | |
static const long | motor::roboclaw::ParamPosPidIDft = 0 |
pos integrative const | |
static const long | motor::roboclaw::ParamPosPidDDft = 0 |
pos derivative const | |
static const long | motor::roboclaw::ParamPosPidMaxIDft = 0 |
max I windup | |
static const long | motor::roboclaw::ParamPosPidDeadzoneDft = 0 |
deadzone | |
static const long | motor::roboclaw::ParamPosPidMinPos = 0 |
min position | |
static const long | motor::roboclaw::ParamPosPidMaxPos = 0 |
max position | |
static const byte_t | motor::roboclaw::ParamCmdBufQueue = 0 |
queue command | |
static const byte_t | motor::roboclaw::ParamCmdBufPreempt = 1 |
preempt all buffered cmds | |
static const byte_t | motor::roboclaw::ParamCmdBufSize = 31 |
cmd buffer size (num q'd) | |
static const byte_t | motor::roboclaw::ParamCmdBufExec = 0 |
last command is executing | |
static const byte_t | motor::roboclaw::ParamCmdBufEmpty = 0x80 |
buffer is empty | |
static const uint_t | motor::roboclaw::CmdTimeout = 10000 |
command timeout (usec) | |
static const uint_t | motor::roboclaw::RspTimeout = 12000 |
response timeout (usec) | |
static const int | motor::roboclaw::CmdMaxBufLen = 64 |
maximum command length (bytes) | |
static const int | motor::roboclaw::RspMaxBufLen = 64 |
maximum response length (bytes) | |
static const int | motor::roboclaw::CmdHdrLen = 2 |
cmd header length [address,cmdid] | |
static const int | motor::roboclaw::FieldPosAddr = 0 |
controller address position | |
static const int | motor::roboclaw::FieldPosCmd = 1 |
command id position | |
static const int | motor::roboclaw::Motor1 = 0 |
motor 1 | |
static const int | motor::roboclaw::Motor2 = 1 |
motor 2 | |
static const int | motor::roboclaw::NumMotors = 2 |
number of motors/controller | |
static const int | motor::roboclaw::MotorDirUnknown = 0 |
unknown | |
static const int | motor::roboclaw::MotorDirNormal = 1 |
normal | |
static const int | motor::roboclaw::MotorDirReverse = -1 |
reverse (forward=backward, etc) | |
static const int | motor::roboclaw::MotorSpeedMaxBackward = -127 |
full reverse | |
static const int | motor::roboclaw::MotorSpeedStop = 0 |
stop | |
static const int | motor::roboclaw::MotorSpeedMaxForward = 127 |
full forward | |
RoboClaw motor controller class interface.
RoboClaw is from Ion Motion Control.
Definition in file RoboClaw.h.
enum motor::roboclaw::Cmd |
Commands Ids.
Definition at line 120 of file RoboClaw.h.
Command and response message formats.
Definition at line 105 of file RoboClaw.h.
Encoder status on read.
Enumerator | |
---|---|
ParamEncStatusUnderFlow |
quadrature encoder underflow |
ParamEncStatusDirBackward |
direction (sign) |
ParamEncStatusOverFlow |
quadrature encoder overflow |
Definition at line 350 of file RoboClaw.h.
Board status bits.
Definition at line 312 of file RoboClaw.h.