#include <motor.h>
Public Member Functions | |
DefaultHomingMode (boost::shared_ptr< ObjectStorage > storage) | |
virtual bool | executeHoming (canopen::LayerStatus &status) |
virtual bool | read (const uint16_t &sw) |
virtual bool | start () |
virtual bool | write (OpModeAccesser &cw) |
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_ |
enum canopen::DefaultHomingMode::SW_masks [private] |
canopen::DefaultHomingMode::DefaultHomingMode | ( | boost::shared_ptr< ObjectStorage > | storage | ) | [inline] |
bool canopen::DefaultHomingMode::error | ( | canopen::LayerStatus & | status, |
const std::string & | msg | ||
) | [inline, private] |
bool canopen::DefaultHomingMode::executeHoming | ( | canopen::LayerStatus & | status | ) | [virtual] |
Implements canopen::HomingMode.
bool canopen::DefaultHomingMode::read | ( | const uint16_t & | sw | ) | [virtual] |
Implements canopen::Mode.
bool canopen::DefaultHomingMode::start | ( | ) | [virtual] |
Implements canopen::Mode.
bool canopen::DefaultHomingMode::write | ( | Mode::OpModeAccesser & | cw | ) | [virtual] |
Implements canopen::Mode.
boost::condition_variable canopen::DefaultHomingMode::cond_ [private] |
boost::atomic<bool> canopen::DefaultHomingMode::execute_ [private] |
canopen::ObjectStorage::Entry<int8_t> canopen::DefaultHomingMode::homing_method_ [private] |
boost::mutex canopen::DefaultHomingMode::mutex_ [private] |
uint16_t canopen::DefaultHomingMode::status_ [private] |