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 add, int ch, int type)
 

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...
 
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< posTm_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...
 

Detailed Description

Definition at line 99 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 130 of file picoMotorCtrl.hpp.

◆ motorChannel() [2/2]

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

Definition at line 135 of file picoMotorCtrl.hpp.

Member Data Documentation

◆ m_address

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().

◆ m_channel

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().

◆ m_currCounts

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().

◆ m_doMove

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().

◆ m_indiP_presetName

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

Definition at line 120 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 117 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 103 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 101 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 111 of file picoMotorCtrl.hpp.

◆ m_presetPositions

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

Definition at line 112 of file picoMotorCtrl.hpp.

◆ m_property

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

Definition at line 119 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 122 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 126 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 124 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 128 of file picoMotorCtrl.hpp.

◆ m_type

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.


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