![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
RoboClaw motor controller class implementation. More...
#include <sys/types.h>#include <unistd.h>#include <stdio.h>#include <string>#include "rnr/rnrconfig.h"#include "rnr/log.h"#include "rnr/serdev.h"#include "Laelaps/RoboClaw.h"Go to the source code of this file.
Macros | |
| #define | ROBOCLAW_TRY_MOTOR(motor) |
| Test for valid motor index. More... | |
| #define | ROBOCLAW_DBG(addr, cmdNum, fmt, ...) |
| Debug print disabled. | |
| #define | ROBOCLAW_DBG_MSG(addr, cmdNum, buf, len, fmt, ...) |
| Debug print message disabled. | |
| #define | ROBOCLAW_DBG_BUF(buf, len, fmt, ...) |
| Debug print buffer disabled. | |
Functions | |
| s64_t | iabs (s64_t a) |
| Integer absolute value. More... | |
Variables | |
| static RoboClawChipSelect | csNoOp |
RoboClaw motor controller class implementation.
Definition in file RoboClaw.cxx.
| #define ROBOCLAW_TRY_MOTOR | ( | motor | ) |
Test for valid motor index.
This macro only within RoboClaw methods.
| motor | Motor index. |
Definition at line 78 of file RoboClaw.cxx.
Referenced by motor::roboclaw::RoboClaw::cmdDutyDrive2(), motor::roboclaw::RoboClaw::cmdQDrive2(), motor::roboclaw::RoboClaw::cmdQDriveForDist(), motor::roboclaw::RoboClaw::cmdQDriveWithAccel(), motor::roboclaw::RoboClaw::cmdQDriveWithAccelForDist(), motor::roboclaw::RoboClaw::cmdQDriveWithProfileToPos(), motor::roboclaw::RoboClaw::cmdReadEncoderMode(), and motor::roboclaw::RoboClaw::cmdReadQSpeed().
|
inline |
Integer absolute value.
| a | Integer value. |
Definition at line 176 of file RoboClaw.cxx.
Referenced by laelaps::LaeKinematics::isStopped(), and laelaps::LaeKinematics::senseDynamics().
|
static |
Fixed no-op selection object.
Definition at line 202 of file RoboClaw.cxx.
Referenced by motor::roboclaw::RoboClawComm::RoboClawComm().