#include <motor.h>
Public Member Functions | |
T | getTarget () |
bool | hasTarget () |
ModeTargetHelper (uint16_t mode) | |
virtual bool | setTarget (const double &val) |
virtual bool | start () |
Public Member Functions inherited from canopen::Mode | |
Mode (uint16_t id) | |
virtual bool | read (const uint16_t &sw)=0 |
virtual bool | write (OpModeAccesser &cw)=0 |
virtual | ~Mode () |
Private Attributes | |
boost::atomic< bool > | has_target_ |
T | target_ |
Additional Inherited Members | |
Public Types inherited from canopen::Mode | |
typedef WordAccessor<(1<< Command402::CW_Operation_mode_specific0)|(1<< Command402::CW_Operation_mode_specific1)|(1<< Command402::CW_Operation_mode_specific2)|(1<< Command402::CW_Operation_mode_specific3)> | OpModeAccesser |
Public Attributes inherited from canopen::Mode | |
const uint16_t | mode_id_ |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from canopen::Mode.
|
inlinevirtual |
Implements canopen::Mode.
Reimplemented in canopen::ProfiledPositionMode.
|
private |
|
private |