API
MagAOX::app::picoMotorCtrl::motorChannel Struct Reference
Collaboration diagram for MagAOX::app::picoMotorCtrl::motorChannel:
Collaboration graph

Public Member Functions

 motorChannel (picoMotorCtrl *p)
 
 motorChannel (picoMotorCtrl *p, const std::string &n, int ch)
 

Public Attributes

picoMotorCtrlm_parent {nullptr}
 A pointer to this for thread starting. More...
 
std::string m_name
 The name of this channel, from the config section. More...
 
std::vector< std::string > m_presetNames
 
std::vector< posTm_presetPositions
 
int m_channel {-1}
 The number of this channel, where the motor is plugged in. More...
 
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...
 

Detailed Description

Definition at line 55 of file picoMotorCtrl.hpp.

Constructor & Destructor Documentation

◆ motorChannel() [1/2]

MagAOX::app::picoMotorCtrl::motorChannel::motorChannel ( picoMotorCtrl p)
inline
Parameters
[in]pThe parent point to set

Definition at line 82 of file picoMotorCtrl.hpp.

◆ motorChannel() [2/2]

MagAOX::app::picoMotorCtrl::motorChannel::motorChannel ( picoMotorCtrl p,
const std::string &  n,
int  ch 
)
inline
Parameters
[in]pThe parent point to set
[in]nThe name of this channel
[in]chThe number of this channel

Definition at line 87 of file picoMotorCtrl.hpp.

Member Data Documentation

◆ m_channel

int MagAOX::app::picoMotorCtrl::motorChannel::m_channel {-1}

The number of this channel, where the motor is plugged in.

Definition at line 64 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_currCounts

posT MagAOX::app::picoMotorCtrl::motorChannel::m_currCounts {0}

The current counts, the cumulative position.

Definition at line 66 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_doMove

bool MagAOX::app::picoMotorCtrl::motorChannel::m_doMove {false}

Flag indicating that a move is requested.

Definition at line 68 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_indiP_presetName

pcf::IndiProperty MagAOX::app::picoMotorCtrl::motorChannel::m_indiP_presetName

Definition at line 72 of file picoMotorCtrl.hpp.

◆ m_moving

bool MagAOX::app::picoMotorCtrl::motorChannel::m_moving {false}

Flag to indicate that we are actually moving.

Definition at line 69 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_name

std::string MagAOX::app::picoMotorCtrl::motorChannel::m_name

The name of this channel, from the config section.

Definition at line 59 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_parent

picoMotorCtrl* MagAOX::app::picoMotorCtrl::motorChannel::m_parent {nullptr}

A pointer to this for thread starting.

Definition at line 57 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadStart().

◆ m_presetNames

std::vector<std::string> MagAOX::app::picoMotorCtrl::motorChannel::m_presetNames

Definition at line 61 of file picoMotorCtrl.hpp.

◆ m_presetPositions

std::vector<posT> MagAOX::app::picoMotorCtrl::motorChannel::m_presetPositions

Definition at line 62 of file picoMotorCtrl.hpp.

◆ m_property

pcf::IndiProperty MagAOX::app::picoMotorCtrl::motorChannel::m_property

Definition at line 71 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_thread

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 74 of file picoMotorCtrl.hpp.

Referenced by motorChannel().

◆ m_threadID

pid_t MagAOX::app::picoMotorCtrl::motorChannel::m_threadID {0}

The ID of the thread.

Definition at line 78 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_threadInit

bool MagAOX::app::picoMotorCtrl::motorChannel::m_threadInit {true}

Thread initialization flag.

Definition at line 76 of file picoMotorCtrl.hpp.

Referenced by MagAOX::app::picoMotorCtrl::channelThreadExec().

◆ m_threadProp

pcf::IndiProperty MagAOX::app::picoMotorCtrl::motorChannel::m_threadProp

The property to hold the thread details.

Definition at line 80 of file picoMotorCtrl.hpp.


The documentation for this struct was generated from the following file: