1 #ifndef PROFILED_POSITION_MODE_HPP
2 #define PROFILED_POSITION_MODE_HPP
13 const uint16_t index = 0x607A;
14 std::shared_ptr<LelyDriverBridge> driver;
35 this->driver = driver;
41 last_target_ = std::numeric_limits<double>::quiet_NaN();
44 virtual bool read(
const uint16_t & sw)
63 driver->universal_set_value(index, 0x0, target);
65 last_target_ = target;
@ CW_Operation_mode_specific3
Definition: command.hpp:52
@ CW_Operation_mode_specific1
Definition: command.hpp:48
@ CW_Operation_mode_specific0
Definition: command.hpp:47
Definition: mode_target_helper.hpp:20
virtual bool start()
Definition: mode_target_helper.hpp:66
bool hasTarget()
Definition: mode_target_helper.hpp:26
int32_t getTarget()
Definition: mode_target_helper.hpp:27
Motor Base Class.
Definition: base.hpp:16
Definition: profiled_position_mode.hpp:12
virtual bool write(OpModeAccesser &cw)
Definition: profiled_position_mode.hpp:49
CW_bits
Definition: profiled_position_mode.hpp:27
@ CW_NewPoint
Definition: profiled_position_mode.hpp:28
@ CW_Immediate
Definition: profiled_position_mode.hpp:29
@ CW_Blending
Definition: profiled_position_mode.hpp:30
ProfiledPositionMode(std::shared_ptr< LelyDriverBridge > driver)
Definition: profiled_position_mode.hpp:32
virtual bool start()
Definition: profiled_position_mode.hpp:38
virtual bool read(const uint16_t &sw)
Definition: profiled_position_mode.hpp:44
SW_masks
Definition: profiled_position_mode.hpp:21
@ MASK_Acknowledged
Definition: profiled_position_mode.hpp:23
@ MASK_Error
Definition: profiled_position_mode.hpp:24
@ MASK_Reached
Definition: profiled_position_mode.hpp:22
@ SW_Target_reached
Definition: state.hpp:25
@ SW_Operation_mode_specific0
Definition: state.hpp:27
@ SW_Operation_mode_specific1
Definition: state.hpp:28
Definition: word_accessor.hpp:10
bool reset(uint8_t bit)
Definition: word_accessor.hpp:21
bool set(uint8_t bit)
Definition: word_accessor.hpp:15
bool get(uint8_t bit) const
Definition: word_accessor.hpp:27
Definition: configuration_manager.hpp:28