Dynamixel  2.9.5
RoadNarrows Robotics Dynamixel Package
Dynamixel Direction Common Values

Macros

#define DYNA_DIR_CW   (-1)
 clockwise direction
 
#define DYNA_DIR_NONE   0
 no direction
 
#define DYNA_DIR_CCW   1
 counterclockwise direction
 
#define DYNA_GET_DIR(scalar)   ((scalar)<0? DYNA_DIR_CW: DYNA_DIR_CCW)
 Get the direction component, given the rotational scalar. More...
 

Detailed Description

Macro Definition Documentation

#define DYNA_GET_DIR (   scalar)    ((scalar)<0? DYNA_DIR_CW: DYNA_DIR_CCW)

Get the direction component, given the rotational scalar.

Parameters
scalarSigned rotational scaler such as speed or load.

Definition at line 200 of file Dynamixel.h.

Referenced by DynaBgThread::execDynamics(), and DynaBgThread::execTorqueCtl().