#include <motor.h>
Public Member Functions | |
DefaultHomingMode (ObjectStorageSharedPtr storage) | |
virtual bool | executeHoming (canopen::LayerStatus &status) |
virtual bool | read (const uint16_t &sw) |
virtual bool | start () |
virtual bool | write (OpModeAccesser &cw) |
Public Member Functions inherited from canopen::HomingMode | |
HomingMode () | |
Public Member Functions inherited from canopen::Mode | |
Mode (uint16_t id) | |
virtual bool | setTarget (const double &val) |
virtual | ~Mode () |
Private Types | |
enum | SW_masks { MASK_Reached = (1<<State402::SW_Target_reached), MASK_Attained = (1<<SW_Attained), MASK_Error = (1<<SW_Error) } |
Private Member Functions | |
bool | error (canopen::LayerStatus &status, const std::string &msg) |
Private Attributes | |
boost::condition_variable | cond_ |
boost::atomic< bool > | execute_ |
canopen::ObjectStorage::Entry< int8_t > | homing_method_ |
boost::mutex | mutex_ |
uint16_t | status_ |
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_ |
Protected Types inherited from canopen::HomingMode | |
enum | CW_bits { CW_StartHoming = Command402::CW_Operation_mode_specific0 } |
enum | SW_bits { SW_Attained = State402::SW_Operation_mode_specific0, SW_Error = State402::SW_Operation_mode_specific1 } |
|
private |
|
inline |
|
inlineprivate |
|
virtual |
Implements canopen::HomingMode.
|
virtual |
Implements canopen::Mode.
|
virtual |
Implements canopen::Mode.
|
virtual |
Implements canopen::Mode.
|
private |
|
private |
|
private |