Public Member Functions | |
motorChannel (picoMotorCtrl *p) | |
motorChannel (picoMotorCtrl *p, const std::string &n, int add, int ch, int type) | |
Public Attributes | |
picoMotorCtrl * | m_parent {nullptr} |
A pointer to this for thread starting. More... | |
std::string | m_name |
The name of this channel, from the config section. More... | |
int | m_address {1} |
The controller address, default is 1. More... | |
int | m_channel {-1} |
The number of this channel, where the motor is plugged in. More... | |
int | m_type {3} |
The motor type of this channel, default is 3. More... | |
std::vector< std::string > | m_presetNames |
std::vector< posT > | m_presetPositions |
posT | m_currCounts {0} |
The current counts, the cumulative position. More... | |
bool | m_doMove {false} |
Flag indicating that a move is requested. More... | |
bool | m_moving {false} |
Flag to indicate that we are actually moving. More... | |
pcf::IndiProperty | m_property |
pcf::IndiProperty | m_indiP_presetName |
std::thread * | m_thread {nullptr} |
Thread for managing this channel. A pointer to allow copying, but must be deleted in d'tor of parent. More... | |
bool | m_threadInit {true} |
Thread initialization flag. More... | |
pid_t | m_threadID {0} |
The ID of the thread. More... | |
pcf::IndiProperty | m_threadProp |
The property to hold the thread details. More... | |
Definition at line 99 of file picoMotorCtrl.hpp.
|
inline |
[in] | p | The parent point to set |
Definition at line 130 of file picoMotorCtrl.hpp.
|
inline |
[in] | p | The parent point to set |
[in] | n | The name of this channel |
[in] | add | The controller address |
[in] | ch | The number of this channel |
[in] | type | The motor type of this channel |
Definition at line 135 of file picoMotorCtrl.hpp.
int MagAOX::app::picoMotorCtrl::motorChannel::m_address {1} |
The controller address, default is 1.
Definition at line 105 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
int MagAOX::app::picoMotorCtrl::motorChannel::m_channel {-1} |
The number of this channel, where the motor is plugged in.
Definition at line 107 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
posT MagAOX::app::picoMotorCtrl::motorChannel::m_currCounts {0} |
The current counts, the cumulative position.
Definition at line 114 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
bool MagAOX::app::picoMotorCtrl::motorChannel::m_doMove {false} |
Flag indicating that a move is requested.
Definition at line 116 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
pcf::IndiProperty MagAOX::app::picoMotorCtrl::motorChannel::m_indiP_presetName |
Definition at line 120 of file picoMotorCtrl.hpp.
bool MagAOX::app::picoMotorCtrl::motorChannel::m_moving {false} |
Flag to indicate that we are actually moving.
Definition at line 117 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
std::string MagAOX::app::picoMotorCtrl::motorChannel::m_name |
The name of this channel, from the config section.
Definition at line 103 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
picoMotorCtrl* MagAOX::app::picoMotorCtrl::motorChannel::m_parent {nullptr} |
A pointer to this for thread starting.
Definition at line 101 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadStart().
std::vector<std::string> MagAOX::app::picoMotorCtrl::motorChannel::m_presetNames |
Definition at line 111 of file picoMotorCtrl.hpp.
std::vector<posT> MagAOX::app::picoMotorCtrl::motorChannel::m_presetPositions |
Definition at line 112 of file picoMotorCtrl.hpp.
pcf::IndiProperty MagAOX::app::picoMotorCtrl::motorChannel::m_property |
Definition at line 119 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
std::thread* MagAOX::app::picoMotorCtrl::motorChannel::m_thread {nullptr} |
Thread for managing this channel. A pointer to allow copying, but must be deleted in d'tor of parent.
Definition at line 122 of file picoMotorCtrl.hpp.
Referenced by motorChannel().
pid_t MagAOX::app::picoMotorCtrl::motorChannel::m_threadID {0} |
The ID of the thread.
Definition at line 126 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
bool MagAOX::app::picoMotorCtrl::motorChannel::m_threadInit {true} |
Thread initialization flag.
Definition at line 124 of file picoMotorCtrl.hpp.
Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().
pcf::IndiProperty MagAOX::app::picoMotorCtrl::motorChannel::m_threadProp |
The property to hold the thread details.
Definition at line 128 of file picoMotorCtrl.hpp.
int MagAOX::app::picoMotorCtrl::motorChannel::m_type {3} |
The motor type of this channel, default is 3.
Definition at line 109 of file picoMotorCtrl.hpp.