18#ifndef PROFILED_POSITION_MODE_HPP
19#define PROFILED_POSITION_MODE_HPP
30 const uint16_t index = 0x607A;
31 std::shared_ptr<LelyDriverBridge> driver;
52 this->driver = driver;
58 last_target_ = std::numeric_limits<double>::quiet_NaN();
61 virtual bool read(
const uint16_t & sw)
80 driver->universal_set_value(index, 0x0, target);
82 last_target_ = target;
@ CW_Operation_mode_specific3
Definition command.hpp:69
@ CW_Operation_mode_specific1
Definition command.hpp:65
@ CW_Operation_mode_specific0
Definition command.hpp:64
Definition mode_target_helper.hpp:37
virtual bool start()
Definition mode_target_helper.hpp:83
bool hasTarget()
Definition mode_target_helper.hpp:43
int32_t getTarget()
Definition mode_target_helper.hpp:44
Motor Base Class.
Definition base.hpp:32
Definition profiled_position_mode.hpp:29
virtual bool write(OpModeAccesser &cw)
Definition profiled_position_mode.hpp:66
CW_bits
Definition profiled_position_mode.hpp:44
@ CW_NewPoint
Definition profiled_position_mode.hpp:45
@ CW_Immediate
Definition profiled_position_mode.hpp:46
@ CW_Blending
Definition profiled_position_mode.hpp:47
ProfiledPositionMode(std::shared_ptr< LelyDriverBridge > driver)
Definition profiled_position_mode.hpp:49
virtual bool start()
Definition profiled_position_mode.hpp:55
virtual bool read(const uint16_t &sw)
Definition profiled_position_mode.hpp:61
SW_masks
Definition profiled_position_mode.hpp:38
@ MASK_Acknowledged
Definition profiled_position_mode.hpp:40
@ MASK_Error
Definition profiled_position_mode.hpp:41
@ MASK_Reached
Definition profiled_position_mode.hpp:39
@ SW_Target_reached
Definition state.hpp:42
@ SW_Operation_mode_specific0
Definition state.hpp:44
@ SW_Operation_mode_specific1
Definition state.hpp:45
Definition word_accessor.hpp:27
bool reset(uint8_t bit)
Definition word_accessor.hpp:38
bool set(uint8_t bit)
Definition word_accessor.hpp:32
bool get(uint8_t bit) const
Definition word_accessor.hpp:44
Definition configuration_manager.hpp:28