![]() |
Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
|
Miscellaneous collection of useful utilities. More...
#include "rnr/rnrconfig.h"#include "rnr/units.h"Go to the source code of this file.
Functions | |
| INLINE_IN_H int | imax (int a, int b) |
| Return maximum integer of a and b. More... | |
| INLINE_IN_H int | imin (int a, int b) |
| Return minimum integer of a and b. More... | |
| INLINE_IN_H int | iabs (int a) |
| Return absolute value of a. More... | |
| INLINE_IN_H int | irange (int a, int m, int M) |
| Return value of a within minimum,maximum range. More... | |
| INLINE_IN_H int | imod (int a, int b) |
| a mod b, ≥ 0. More... | |
| INLINE_IN_H const char * | dynaUnitsSym (units_t u) |
| Convert units to short symbol name. More... | |
Miscellaneous collection of useful utilities.
Definition in file DynaOlio.h.
| INLINE_IN_H const char* dynaUnitsSym | ( | units_t | u | ) |
Convert units to short symbol name.
| u | Units to look up. |
Definition at line 132 of file DynaOlio.h.
| INLINE_IN_H int iabs | ( | int | a | ) |
Return absolute value of a.
| a | Integer value a. |
Definition at line 91 of file DynaOlio.h.
Referenced by DynaServoGeneric::AgentWriteGoalSpeed(), DynaServoGeneric::AgentWriteGoalSpeedPos(), DynaPidSpeed::CalcDpDt(), DynaBgThread::execPosCtl(), DynaServoGeneric::PackGoalSpeed(), DynaChain::SyncWriteGoalSpeed(), DynaServo::UpdateOdometer(), and DynaServoGeneric::WriteGoalSpeed().
| INLINE_IN_H int imax | ( | int | a, |
| int | b | ||
| ) |
Return maximum integer of a and b.
| a | Integer value a. |
| b | Integer value b. |
Definition at line 66 of file DynaOlio.h.
| INLINE_IN_H int imin | ( | int | a, |
| int | b | ||
| ) |
Return minimum integer of a and b.
| a | Integer value a. |
| b | Integer value b. |
Definition at line 79 of file DynaOlio.h.
| INLINE_IN_H int imod | ( | int | a, |
| int | b | ||
| ) |
a mod b, ≥ 0.
param a The dividend. param b The divisor.
Definition at line 119 of file DynaOlio.h.
Referenced by DynaServo::OdometerToEncoder().
| INLINE_IN_H int irange | ( | int | a, |
| int | m, | ||
| int | M | ||
| ) |
Return value of a within minimum,maximum range.
| a | Integer value a. |
| m | Minimum value of a. |
| M | Maximum value of a. |
Definition at line 105 of file DynaOlio.h.