49 #ifndef _HEK_OPTICAL_H 50 #define _HEK_OPTICAL_H 52 #include "rnr/rnrconfig.h" 54 #include "Dynamixel/Dynamixel.h" 100 static const byte_t HekIOExpPort0Base0 = 0x01;
101 static const byte_t HekIOExpPort0Base180 = 0x02;
102 static const byte_t HekIOExpPort0Shoulder = 0x04;
103 static const byte_t HekIOExpPort0Elbow = 0x08;
104 static const byte_t HekIOExpPort0WristPitch = 0x10;
105 static const byte_t HekIOExpPort0WristRot0 = 0x20;
106 static const byte_t HekIOExpPort0Rsrv1 = 0x40;
107 static const byte_t HekIOExpPort0Rsrv2 = 0x80;
197 return ~byBits & byMask;
212 return byBits & byMask;
220 #endif // _HEK_OPTICAL_H static const int HekOptLimitMaxEdges
max edges/limit
static const byte_t HekIOExpConstPolarity0
port 0 not inverted
static const byte_t HekIOExpPort1Rsrv3
reserved
static const byte_t HekIOExpPort0Elbow
elbow limit
byte_t m_uBit
i/o expander bit position
static const byte_t HekIOExpPort0WristRot0
wrist rot 0 °
static const byte_t HekIOExpPort0Base180
base 180 ° lim.
static const byte_t HekIOExpPort0WristPitch
wrist pitch limit
static const byte_t HekIOExpUnassigned
unassigned port bit
static const byte_t HekIOExpPort1Rsrv2
reserved
static const byte_t HekIOExpI2CAddr
i2c 7-bit address
double m_fMinBlackPos
minimum complete occlusion position
static const byte_t HekIOExpCmdOutput0
write port 0 command
static const byte_t HekIOExpPort0Base0
base 0 ° limit
HekOpticalLimit_T operator=(const HekOpticalLimit_T &rhs)
Assignment operator.
static const byte_t HekIOExpPort0Shoulder
shoulder limit
double m_fMaxEdgePos
maxinum edge position of occlusion band
static const byte_t HekIOExpLight
optical switch is lit
double m_fMaxBlackPos
maximum complete occlusion position
static const byte_t HekIOExpPort1Rsrv5
reserved
double m_fMinEdgePos
mininum edge position of occlusion band
static byte_t getDarkOpticalLimits(byte_t byBits, byte_t byMask)
Test if any of the optical limits have been triggered (occluded).
static const byte_t HekIOExpPort1EEUser2
user defined 2
static const byte_t HekIOExpCmdConfig1
configuration port 1 cmd
static const byte_t HekIOExpCmdInput0
read port 0 command
static const byte_t HekIOExpPort1Rsrv4
reserved
static const int HekOptLimitMaxPerJoint
max limits/joint
Top-level package include file.
static const byte_t HekIOExpCmdInput1
read port 1 command
static const byte_t HekIOExpPort1Rsrv6
reserved
static const byte_t HekIOExpCmdPolarity0
polarity inversion port 0
static byte_t getLitOpticalLimits(byte_t byBits, byte_t byMask)
Test if any of the optical limits are lit (not occluded).
static const byte_t HekIOExpConstConfig0
port 0 all input
static const byte_t HekIOExpPort1EEUser1
user defined 1
static const byte_t HekIOExpCmdConfig0
configuration port 0 cmd
static const byte_t HekIOExpPort0Rsrv2
reserved
static const byte_t HekIOExpPort0Rsrv1
reserved
static const byte_t HekIOExpDark
optic switch blocked
static const byte_t HekIOExpCmdOutput1
write port 1 command
static const byte_t HekIOExpCmdPolarity1
polarity inversion port 1
double m_fCenterPos
center of operation position
The <b><i>Hekateros</i></b> namespace encapsulates all <b><i>Hekateros</i></b> related constructs...
static const byte_t HekIOExpPort1Rsrv1
reserved