![]() |
Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
|
RoadNarrows Dynamixel Library Error and Logging Routines. More...
Go to the source code of this file.
Functions | |
const char * | DynaStrError (int ecode) |
Get the error string describing the Dynamixel error code. More... | |
void | DynaPrintBuf (FILE *fp, const char *sPreface, byte_t buf[], const char *sFmt, size_t uCount, size_t uNLFreq, uint_t uCol) |
Pretty print a byte buffer to opened file stream. More... | |
void | DynaLogServoAlarms (int nServoId, uint_t uAlarms) |
Log servo alarms. More... | |
void | DynaLogBuf (const char *sPreface, byte_t buf[], size_t uCount, const char *sFmt) |
Log integer data. More... | |
RoadNarrows Dynamixel Library Error and Logging Routines.
Definition in file DynaError.h.
void DynaLogBuf | ( | const char * | sPreface, |
byte_t | buf[], | ||
size_t | uCount, | ||
const char * | sFmt | ||
) |
Log integer data.
Print diagnostic logging of the contents of a buffer of bytes.
sPreface | Buffer preface string. |
buf | Buffer contents to log. |
uCount | Number of entries to log. |
sFmt | Buffer entry format string. |
Definition at line 206 of file DynaError.cxx.
void DynaLogServoAlarms | ( | int | nServoId, |
uint_t | uAlarms | ||
) |
Log servo alarms.
nServoId | Servo id. |
uAlarms | Alarm bits fields. |
Definition at line 183 of file DynaError.cxx.
References DYNA_ALARM_NONE, and DynaComm::GetAlarmsString().
void DynaPrintBuf | ( | FILE * | fp, |
const char * | sPreface, | ||
byte_t | buf[], | ||
const char * | sFmt, | ||
size_t | uCount, | ||
size_t | uNLFreq, | ||
uint_t | uCol | ||
) |
Pretty print a byte buffer to opened file stream.
fp | File pointer. |
sPreface | Optional buffer preface string (set to NULL for no preface). |
buf | Buffer to print. |
sFmt | Buffer entry format string. |
uCount | Number of entries to print. |
uNLFreq | Newline frequency (set to 0 for no newlines). |
uCol | Column alignment number. |
Definition at line 155 of file DynaError.cxx.
const char* DynaStrError | ( | int | ecode | ) |
Get the error string describing the Dynamixel error code.
The absolute value of the error code is taken prior retrieving the string. An unknown or out-of-range error code will be mapped to DYNA_ECODE_BADEC.
ecode | Dynamixel error code. |
Definition at line 141 of file DynaError.cxx.
References DYNA_ECODE_BADEC, and DynaEcodeStrTbl.
Referenced by DynaShellCmdPlay::ControlToGoals(), DynaShell::Error(), DynaShellCmdPlay::PidSetPoint(), and DynaShellCmdPlay::SetRecordGoals().