54 #ifndef _MOT_ROBOTEQ_SMALL_H 55 #define _MOT_ROBOTEQ_SMALL_H 58 #include "rnr/rnrconfig.h" 59 #include "rnr/units.h" 74 MotRoboteqSmall(
float maxSpeed,
float minSpeed,
float speedStepSize,
float maxBrake,
float minBrake,
float brakeStepSize) :
Mot(maxSpeed, minSpeed, speedStepSize, maxBrake, minBrake, brakeStepSize)
83 int open(
const std::string &devName,
int baudRate);
85 int sendCommand(
int fd, byte_t *buf,
int nBytes,
int timeout);
86 int recvResponse(
int fd, byte_t *buf,
int timeout);
88 int setSpeed(
int motID,
float speed, units_t units=units_norm);
89 int setSpeed(VecSpeedTupples vecSpeedTupple, units_t units=units_norm);
90 int setSpeedRaw(
int motID,
int speed);
91 int setSpeedRaw(VecSpeedRawTupples vecSpeedRawTupple);
96 int getCurrent(
int motID, units_t units=units_amp);
114 #endif // _MOT_ROBOTEQ_SMALL_H int setVoltageLimits(int lowVoltage, int overVoltage)
Function sets the minimum and maximum limits for applied voltage for all motors.
int eStop()
Function simultaneously halts motor rotation for all motors by setting speeds to zero.
int getCurrent(int motID, units_t units=units_amp)
Function retrieves value for current load on a single motor.
int eStopRelease()
Function releases emergency stop condition and allows normal ops.
int setSpeedProfile(int motID, int accel, int decel=DEF_DEC)
Function retrieves value for voltage applied to a single motor.
int setSpeed(int motID, float speed, units_t units=units_norm)
Description.
int setCurrentLimits(int motID, int current, units_t units=units_amp)
Function sets minimum and maximum limits for current.
int open(const std::string &devName, int baudRate)
Function opens serial communication with motor controller device.
bool motIDIsValid(int motID)
Function sends commands to the motor controller and receives responses from the motor controller...
int close()
Function closes serial communication with motor controller device.
int getVoltageLimits()
Function retrieves value for current load on a single motor.
RoadNarrows Robotics standard namespace.
int getCurrentLimits()
Function determines if a motor controller can monitor current.
int stop(int motID)
Function stops motor specified.
Common Motor Controller Interface.
int getVoltage()
Function retrieves value for voltage applied to a single motor.