18#ifndef DEFAULT_HOMING_MODE_HPP
19#define DEFAULT_HOMING_MODE_HPP
29 const uint16_t index = 0x6098;
30 std::shared_ptr<LelyDriverBridge> driver;
32 std::atomic<bool> execute_;
35 std::condition_variable cond_;
38 const int homing_timeout_seconds_;
46 bool error(
const std::string & msg)
49 std::cout << msg << std::endl;
55 : homing_timeout_seconds_(homing_timeout_seconds)
57 this->driver = driver;
60 virtual bool read(
const uint16_t & sw);
Definition default_homing_mode.hpp:28
virtual bool executeHoming()
DefaultHomingMode(std::shared_ptr< LelyDriverBridge > driver, int homing_timeout_seconds)
Definition default_homing_mode.hpp:54
virtual bool read(const uint16_t &sw)
virtual bool write(OpModeAccesser &cw)
Definition homing_mode.hpp:26
@ SW_Error
Definition homing_mode.hpp:31
@ SW_Attained
Definition homing_mode.hpp:30
@ SW_Target_reached
Definition state.hpp:42
Definition word_accessor.hpp:27
Definition configuration_manager.hpp:28