API
MagAOX::app::pvcamCtrl Class Reference

The MagAO-X pvcam controller. More...

#include <pvcamCtrl.hpp>

Inheritance diagram for MagAOX::app::pvcamCtrl:
Inheritance graph
Collaboration diagram for MagAOX::app::pvcamCtrl:
Collaboration graph

Classes

struct  gain
 
struct  port
 
struct  speed
 

Public Types

typedef logger::logManager< MagAOXApp< _useINDI >, logFileRawlogManagerT
 The log manager type. More...
 
enum  fgFlip
 
typedef logger::logManager< pvcamCtrl, logFileRaw > logManagerT
 The log manager type. More...
 

Public Member Functions

 pvcamCtrl ()
 Default c'tor. More...
 
 ~pvcamCtrl () noexcept
 D'tor, declared and defined for noexcept. More...
 
virtual void setupConfig ()
 
int loadConfigImpl (mx::app::appConfigurator &_config)
 Implementation of loadConfig logic, separated for testing. More...
 
virtual void loadConfig ()
 
virtual int appStartup ()
 Startup function. More...
 
virtual int appLogic ()
 Implementation of the FSM for pvcamCtrl. More...
 
virtual int appShutdown ()
 Shutdown the app. More...
 
int powerOnDefaults ()
 
int setTempControl ()
 
int setTempSetPt ()
 
int setReadoutSpeed ()
 
int setVShiftSpeed ()
 
int setEMGain ()
 
int setExpTime ()
 
int setFPS ()
 
int checkNextROI ()
 Check the next ROI. More...
 
int setNextROI ()
 
int setShutter (int sh)
 Sets the shutter state, via call to dssShutter::setShutterState(int) [stdCamera interface]. More...
 
int configureAcquisition ()
 
float fps ()
 
int startAcquisition ()
 
int acquireAndCheckValid ()
 
int loadImageIntoStream (void *dest)
 
int reconfig ()
 
int connect ()
 
int fillSpeedTable ()
 
void dumpEnum (uns32 paramID, const std::string &paramMnem)
 
int getTemp ()
 
void endOfFrameCallback (FRAME_INFO *finfo)
 
int shutdown ()
 Get the value of the shutdown flag. More...
 
virtual void setDefaults (int argc, char **argv)
 Set the paths for config files. More...
 
virtual void setupBasicConfig ()
 The basic MagAO-X configuration setup method. Should not normally be overridden. More...
 
virtual void loadBasicConfig ()
 The basic MagAO-X configuration processing method. Should not normally be overridden. More...
 
virtual void checkConfig ()
 Check for unused and unrecognized config options and settings. More...
 
virtual int execute ()
 The execute method implementing the standard main loop. Should not normally be overridden. More...
 
void setupConfig (mx::app::appConfigurator &config)
 Setup the configuration system. More...
 
void loadConfig (mx::app::appConfigurator &config)
 load the configuration system results More...
 
int onPowerOff ()
 Actions on power off. More...
 
int whilePowerOff ()
 Actions while powered off. More...
 
void setupConfig (mx::app::appConfigurator &config)
 Setup the configuration system. More...
 
void loadConfig (mx::app::appConfigurator &config)
 load the configuration system results More...
 
int onPowerOff ()
 On power off, sets m_reconfig to true. More...
 
void setupConfig (mx::app::appConfigurator &config)
 Setup the configuration system. More...
 
void loadConfig (mx::app::appConfigurator &config)
 load the configuration system results More...
 
int onPowerOff ()
 Actions on power off. More...
 
int whilePowerOff ()
 Actions while powered off. More...
 
int setShutterState (int sh)
 Change shutter state. More...
 
int open ()
 Open the shutter. More...
 
int shut ()
 Shut the shutter. More...
 
int telem (const typename telT::messageT &msg)
 Make a telemetry recording. More...
 
int telem ()
 Make a telemetry recording, for an empty record. More...
 
int setupConfig (appConfigurator &config)
 Setup an application configurator for the device section. More...
 
int loadConfig (appConfigurator &config)
 Load the device section from an application configurator. More...
 
int checkRecordTimes (const telT &tel, telTs... tels)
 Check the time of the last record for each telemetry type and make an entry if needed. More...
 
int checkRecordTimes (timespec &ts, const telT &tel, telTs... tels)
 Worker function to actually perform the record time checking logic. More...
 
int checkRecordTimes (timespec &ts)
 Empty function called at the end of the template list. More...
 
Telemeter Interface
int checkRecordTimes ()
 
int recordTelem (const telem_stdcam *)
 
int recordTelem (const telem_fgtimings *)
 
Threads
int threadStart (std::thread &thrd, bool &thrdInit, pid_t &tpid, pcf::IndiProperty &thProp, int thrdPrio, const std::string &cpuset, const std::string &thrdName, thisPtr *thrdThis, Function &&thrdStart)
 Start a thread, using this class's privileges to set priority, etc. More...
 
Member Accessors
std::string configName ()
 Get the config name. More...
 
std::string configDir ()
 Get the config directory. More...
 
std::string driverInName ()
 Get the INDI input FIFO file name. More...
 
std::string driverOutName ()
 Get the INDI output FIFO file name. More...
 
std::string driverCtrlName ()
 Get the INDI control FIFO file name. More...
 
Telemeter Interface
int recordCamera (bool force=false)
 
Telemeter Interface
int recordFGTimings (bool force=false)
 

Static Public Member Functions

static void st_endOfFrameCallback (FRAME_INFO *finfo, void *pvcamCtrlInst)
 

Public Attributes

logManagerT m_tel
 
double m_maxInterval
 The maximum interval, in seconds, between telemetry records. Default is 10.0 seconds. More...
 

Static Public Attributes

app::dev Configurations
static constexpr bool c_stdCamera_tempControl = false
 app::dev config to tell stdCamera to expose temperature controls More...
 
static constexpr bool c_stdCamera_temp = false
 app::dev config to tell stdCamera to expose temperature More...
 
static constexpr bool c_stdCamera_readoutSpeed = true
 app::dev config to tell stdCamera to expose readout speed controls More...
 
static constexpr bool c_stdCamera_vShiftSpeed = false
 app:dev config to tell stdCamera to expose vertical shift speed control More...
 
static constexpr bool c_stdCamera_emGain = false
 app::dev config to tell stdCamera to expose EM gain controls More...
 
static constexpr bool c_stdCamera_exptimeCtrl = true
 app::dev config to tell stdCamera to expose exposure time controls More...
 
static constexpr bool c_stdCamera_fpsCtrl = true
 app::dev config to tell stdCamera not to expose FPS controls More...
 
static constexpr bool c_stdCamera_fps = true
 app::dev config to tell stdCamera not to expose FPS status More...
 
static constexpr bool c_stdCamera_synchro = false
 app::dev config to tell stdCamera to not expose synchro mode controls More...
 
static constexpr bool c_stdCamera_usesModes = false
 app:dev config to tell stdCamera not to expose mode controls More...
 
static constexpr bool c_stdCamera_usesROI = true
 app:dev config to tell stdCamera to expose ROI controls More...
 
static constexpr bool c_stdCamera_cropMode = false
 app:dev config to tell stdCamera to expose Crop Mode controls More...
 
static constexpr bool c_stdCamera_hasShutter = true
 app:dev config to tell stdCamera to expose shutter controls More...
 
static constexpr bool c_stdCamera_usesStateString = false
 app::dev confg to tell stdCamera to expose the state string property More...
 
static constexpr bool c_frameGrabber_flippable = false
 app:dev config to tell framegrabber this camera can be flipped More...
 

Protected Types

typedef uint16_t cbIndexT
 

Protected Member Functions

int createReadoutSpeed (const mx::meta::trueFalseT< true > &t)
 
int createReadoutSpeed (const mx::meta::trueFalseT< false > &f)
 
int createVShiftSpeed (const mx::meta::trueFalseT< true > &t)
 
int createVShiftSpeed (const mx::meta::trueFalseT< false > &f)
 
void * loadImageIntoStreamCopy (void *dest, void *src, size_t width, size_t height, size_t szof)
 

Protected Attributes

int16 m_handle { -1 }
 Camera handle, set when camera is opened. More...
 
std::string m_camName
 Camera name, filled in as part of opening the camera. More...
 
std::vector< portm_ports
 
bool m_8bit {false}
 
uns32 m_circBuffBytes {0}
 
uns8 * m_circBuff {nullptr}
 
FRAME_INFO m_frameInfo
 
sem_t m_frSemaphore
 Semaphore used to signal that a frame is ready. More...
 
std::string MagAOXPath
 The base path of the MagAO-X system. More...
 
std::string m_configName
 The name of the configuration file (minus .conf). More...
 
std::string m_configDir
 The path to configuration files for MagAOX. More...
 
std::string m_configBase
 The name of a base config class for this app (minus .conf). More...
 
std::string m_calibDir
 The path to calibration files for MagAOX. More...
 
std::string sysPath
 The path to the system directory, for PID file, etc. More...
 
std::string secretsPath
 Path to the secrets directory, where passwords, etc, are stored. More...
 
unsigned long m_loopPause
 The time in nanoseconds to pause the main loop. The appLogic() function of the derived class is called every m_loopPause nanoseconds. Default is 1,000,000,000 ns. Config with loopPause=X. More...
 
int m_shutdown
 Flag to signal it's time to shutdown. When not 0, the main loop exits. More...
 
int m_currentFlip
 
uint32_t m_width
 The width of the image, once deinterlaced etc. More...
 
uint32_t m_height
 The height of the image, once deinterlaced etc. More...
 
uint8_t m_dataType
 The ImageStreamIO type code. More...
 
size_t m_typeSize
 The size of the type, in bytes. Result of sizeof. More...
 
int m_xbinning
 The x-binning according to the framegrabber. More...
 
int m_ybinning
 The y-binning according to the framegrabber. More...
 
timespec m_currImageTimestamp
 The timestamp of the current image. More...
 
bool m_reconfig
 Flag to set if a camera reconfiguration requires a framegrabber reset. More...
 
IMAGE * m_imageStream
 The ImageStreamIO shared memory buffer. More...
 
mx::sigproc::circularBufferIndex< timespec, cbIndexTm_atimes
 
mx::sigproc::circularBufferIndex< timespec, cbIndexTm_wtimes
 
std::vector< double > m_atimesD
 
std::vector< double > m_wtimesD
 
std::vector< double > m_watimesD
 
timespec m_dummy_ts
 
uint64_t m_dummy_cnt
 
char m_dummy_c
 
double m_mna
 
double m_vara
 
double m_mnw
 
double m_varw
 
double m_mnwa
 
double m_varwa
 
int m_powerState
 The current power state, -1 is unknown, 0 is off, 1 is on. More...
 
int m_sensorState
 The current sensor state, -1 is unknown, 0 is shut, 1 is open. More...
 
int m_triggerState
 The current trigger state. -1 is unknown, 0 is low, 1 is high. More...
 
Configurable Parameters
std::string m_serialNumber
 The camera serial number.
More...
 
float m_tempTol {0.1}
 Tolerance in degrees C to declare the temperature control locked. More...
 
uint32_t m_circBuffMaxBytes {536870912}
 Max size in bytes of the circular buffer to allocate. Default is 0.5 GB. More...
 
cpusets

The path to the cpusets mount is configured by the environment varialbe defined by MAGOX_env_cpuset in environment.hpp. This environment varialbe is normally named "CGROUPS1_CPUSET_MOUNTPOINT". If the environment variable is not set, the default defined by MAGAOX_cpusetPath in paths.hpp is used. This is normally "/opt/MagAOX/cpuset/"

std::string m_cpusetPath
 
Configurable Parameters
cameraConfigMap m_cameraModes
 Map holding the possible camera mode configurations. More...
 
std::string m_startupMode
 The camera mode to load during first init after a power-on. More...
 
float m_startupTemp
 The temperature to set after a power-on. Set to <= -999 to not use [default]. More...
 
std::string m_defaultReadoutSpeed
 The default readout speed of the camera. More...
 
std::string m_defaultVShiftSpeed
 The default readout speed of the camera. More...
 
Temperature Control Interface
float m_minTemp
 
float m_maxTemp
 
float m_stepTemp
 
float m_ccdTemp
 The current temperature, in C. More...
 
float m_ccdTempSetpt
 The desired temperature, in C. More...
 
bool m_tempControlStatus
 Whether or not temperature control is active. More...
 
bool m_tempControlStatusSet
 Desired state of temperature control. More...
 
bool m_tempControlOnTarget
 Whether or not the temperature control system is on its target temperature. More...
 
std::string m_tempControlStatusStr
 Camera specific description of temperature control status. More...
 
pcf::IndiProperty m_indiP_temp
 
pcf::IndiProperty m_indiP_tempcont
 
pcf::IndiProperty m_indiP_tempstat
 
Readout Control
std::vector< std::string > m_readoutSpeedNames
 
std::vector< std::string > m_readoutSpeedNameLabels
 
std::string m_readoutSpeedName
 The current readout speed name. More...
 
std::string m_readoutSpeedNameSet
 The user requested readout speed name, to be set by derived() More...
 
std::vector< std::string > m_vShiftSpeedNames
 
std::vector< std::string > m_vShiftSpeedNameLabels
 
std::string m_vShiftSpeedName
 The current vshift speed name. More...
 
std::string m_vShiftSpeedNameSet
 The user requested vshift speed name, to be set by derived() More...
 
float m_adcSpeed
 
float m_vshiftSpeed
 
float m_emGain
 The camera's current EM gain (if available). More...
 
float m_emGainSet
 The camera's EM gain, as set by the user. More...
 
float m_maxEMGain
 The configurable maximum EM gain. To be enforced in derivedT. More...
 
pcf::IndiProperty m_indiP_readoutSpeed
 
pcf::IndiProperty m_indiP_vShiftSpeed
 
pcf::IndiProperty m_indiP_emGain
 
Exposure Control
float m_minExpTime
 The minimum exposure time, used for INDI attributes. More...
 
float m_maxExpTime
 The maximum exposure time, used for INDI attributes. More...
 
float m_stepExpTime
 The maximum exposure time stepsize, used for INDI attributes. More...
 
float m_expTime
 The current exposure time, in seconds. More...
 
float m_expTimeSet
 The exposure time, in seconds, as set by user. More...
 
float m_minFPS
 The minimum FPS, used for INDI attributes. More...
 
float m_maxFPS
 The maximum FPS, used for INDI attributes. More...
 
float m_stepFPS
 The FPS step size, used for INDI attributes. More...
 
float m_fps
 The current FPS. More...
 
float m_fpsSet
 The commanded fps, as set by user. More...
 
pcf::IndiProperty m_indiP_exptime
 
pcf::IndiProperty m_indiP_fps
 
External Synchronization
bool m_synchroSet
 Target status of m_synchro. More...
 
bool m_synchro
 Status of synchronization, true is on, false is off. More...
 
pcf::IndiProperty m_indiP_synchro
 
Modes
std::string m_modeName
 The current mode name. More...
 
std::string m_nextMode
 The mode to be set by the next reconfiguration. More...
 
pcf::IndiProperty m_indiP_mode
 Property used to report the current mode. More...
 
pcf::IndiProperty m_indiP_reconfig
 Request switch which forces the framegrabber to go through the reconfigure process. More...
 
ROIs

ROI controls are exposed if derivedT::c_stdCamera_usesROI==true

roi m_currentROI
 
roi m_nextROI
 
roi m_lastROI
 
float m_minROIx
 
float m_maxROIx
 
float m_stepROIx
 
float m_minROIy
 
float m_maxROIy
 
float m_stepROIy
 
int m_minROIWidth
 
int m_maxROIWidth
 
int m_stepROIWidth
 
int m_minROIHeight
 
int m_maxROIHeight
 
int m_stepROIHeight
 
int m_minROIBinning_x
 
int m_maxROIBinning_x
 
int m_stepROIBinning_x
 
int m_minROIBinning_y
 
int m_maxROIBinning_y
 
int m_stepROIBinning_y
 
float m_default_x
 Power-on ROI center x coordinate. More...
 
float m_default_y
 Power-on ROI center y coordinate. More...
 
int m_default_w
 Power-on ROI width. More...
 
int m_default_h
 Power-on ROI height. More...
 
int m_default_bin_x
 Power-on ROI x binning. More...
 
int m_default_bin_y
 Power-on ROI y binning. More...
 
float m_full_x
 The full ROI center x coordinate. More...
 
float m_full_y
 The full ROI center y coordinate. More...
 
int m_full_w
 The full ROI width. More...
 
int m_full_h
 The full ROI height. More...
 
int m_full_bin_x
 The x-binning in the full ROI. More...
 
int m_full_bin_y
 The y-binning in the full ROI. More...
 
float m_full_currbin_x
 The current-binning full ROI center x coordinate. More...
 
float m_full_currbin_y
 The current-binning full ROI center y coordinate. More...
 
int m_full_currbin_w
 The current-binning full ROI width. More...
 
int m_full_currbin_h
 The current-binning full ROI height. More...
 
pcf::IndiProperty m_indiP_roi_x
 Property used to set the ROI x center coordinate. More...
 
pcf::IndiProperty m_indiP_roi_y
 Property used to set the ROI x center coordinate. More...
 
pcf::IndiProperty m_indiP_roi_w
 Property used to set the ROI width. More...
 
pcf::IndiProperty m_indiP_roi_h
 Property used to set the ROI height. More...
 
pcf::IndiProperty m_indiP_roi_bin_x
 Property used to set the ROI x binning. More...
 
pcf::IndiProperty m_indiP_roi_bin_y
 Property used to set the ROI y binning. More...
 
pcf::IndiProperty m_indiP_fullROI
 Property used to preset the full ROI dimensions. More...
 
pcf::IndiProperty m_indiP_roi_check
 Property used to trigger checking the target ROI. More...
 
pcf::IndiProperty m_indiP_roi_set
 Property used to trigger setting the ROI. More...
 
pcf::IndiProperty m_indiP_roi_full
 Property used to trigger setting the full ROI. More...
 
pcf::IndiProperty m_indiP_roi_fullbin
 Property used to trigger setting the full in current binning ROI. More...
 
pcf::IndiProperty m_indiP_roi_loadlast
 Property used to trigger loading the last ROI as the target. More...
 
pcf::IndiProperty m_indiP_roi_last
 Property used to trigger setting the last ROI. More...
 
pcf::IndiProperty m_indiP_roi_default
 Property used to trigger setting the default and startup ROI. More...
 
Crop Mode

Crop mode controls are exposed if derivedT::c_stdCamera_cropMode==true

bool m_cropMode
 Status of crop mode ROIs, if enabled for this camera. More...
 
bool m_cropModeSet
 Desired status of crop mode ROIs, if enabled for this camera. More...
 
pcf::IndiProperty m_indiP_cropMode
 Property used to toggle crop mode on and off. More...
 
Shutter Control

Shutter controls are exposed if derivedT::c_stdCamera_hasShutter == true.

std::string m_shutterStatus
 
int m_shutterState
 
pcf::IndiProperty m_indiP_shutterStatus
 State of the shutter. 0 = shut, 1 = open, -1 = unknown. More...
 
pcf::IndiProperty m_indiP_shutter
 Property used to control the shutter, a switch. More...
 
State String

The State string is exposed if derivedT::c_stdCamera_usesStateString is true.

pcf::IndiProperty m_indiP_stateString
 
Configurable Parameters
std::string m_shmimName
 The name of the shared memory image, is used in /tmp/<shmimName>.im.shm. Derived classes should set a default. More...
 
int m_fgThreadPrio
 Priority of the framegrabber thread, should normally be > 00. More...
 
std::string m_fgCpuset
 The cpuset to assign the framegrabber thread to. Not used if empty, the default. More...
 
uint32_t m_circBuffLength
 Length of the circular buffer, in frames. More...
 
uint16_t m_latencyCircBuffMaxLength
 Maximum length of the latency measurement circular buffers. More...
 
float m_latencyCircBuffMaxTime
 Maximum time of the latency meaurement circular buffers. More...
 
int m_defaultFlip
 
Configurable Parameters
std::string m_powerDevice
 The device controlling this shutter's power. More...
 
std::string m_powerChannel
 The channel controlling this shutter's power. More...
 
std::string m_dioDevice
 The device controlling this shutter's digital I/O. More...
 
std::string m_sensorChannel
 The channel reading this shutter's sensor. More...
 
std::string m_triggerChannel
 The channel sending this shutter's trigger. More...
 
unsigned m_shutterWait
 The time to pause between checks of the sensor state during open/shut [msec]. Default is 100. More...
 
unsigned m_shutterTimeout
 Total time to wait for sensor to change state before timing out [msec]. Default is 2000. More...
 

Private Types

typedef dev::stdCamera< pvcamCtrlstdCameraT
 
typedef dev::frameGrabber< pvcamCtrlframeGrabberT
 
typedef dev::dssShutter< pvcamCtrlshutterT
 
typedef dev::telemeter< pvcamCtrltelemeterT
 
typedef MagAOXApp MagAOXAppT
 

Private Member Functions

int clearFSMAlert ()
 Clear the FSM alert state. More...
 
pvcamCtrlderived ()
 

Friends

class pvcamCtrl_test
 
class dev::stdCamera< pvcamCtrl >
 
class dev::frameGrabber< pvcamCtrl >
 
class dev::dssShutter< pvcamCtrl >
 
class dev::telemeter< pvcamCtrl >
 

Logging

static logManagerT m_log
 
void logMessage (bufferPtrT &b)
 Handle a log message from the logging system. More...
 
static int log (const typename logT::messageT &msg, logPrioT level=logPrio::LOG_DEFAULT)
 Make a log entry. More...
 
static int log (logPrioT level=logPrio::LOG_DEFAULT)
 Make a log entry. More...
 
static void configLog (const std::string &name, const int &code, const std::string &value, const std::string &source)
 Callback for config system logging. More...
 

PID Locking

Each MagAOXApp has a PID lock file in the system directory. The app will not startup if it detects that the PID is already locked, preventing duplicates. This is based on the configured name, not the invoked name (argv[0]).

std::string pidFileName
 The name of the PID file. More...
 
pid_t m_pid
 This process's PID. More...
 
int lockPID ()
 Attempt to lock the PID by writing it to a file. Fails if a process is already running with the same config name. More...
 
int unlockPID ()
 Remove the PID file. More...
 

INDI Interface

For reference: "Get" and "New" refer to properties we own. "Set" refers to properties owned by others. So we respond to GetProperties by listing our own properties, and NewProperty is a request to change a property we own. Whereas SetProperty is a notification that someone else has changed a property.

std::unordered_map< std::string, indiCallBack > m_indiNewCallBacks
 Map to hold the NewProperty indiCallBacks for this App, with fast lookup by property name. More...
 
std::unordered_map< std::string, indiCallBack > m_indiSetCallBacks
 Map to hold the SetProperty indiCallBacks for this App, with fast lookup by property name. More...
 
bool m_allDefsReceived
 Flag indicating that all registered Set properties have been updated since last Get. More...
 
std::string m_driverInName
 Full path name of the INDI driver input FIFO. More...
 
std::string m_driverOutName
 Full path name of the INDI driver output FIFO. More...
 
std::string m_driverCtrlName
 Full path name of the INDI driver control FIFO. More...
 
pcf::IndiProperty m_indiP_state
 indi Property to report the application state. More...
 
pcf::IndiProperty m_indiP_clearFSMAlert
 indi Property to clear an FSM alert. More...
 
int createStandardIndiText (pcf::IndiProperty &prop, const std::string &propName, const std::string &label="", const std::string &group="")
 Create a standard R/W INDI Text property with target and current elements. More...
 
int createROIndiText (pcf::IndiProperty &prop, const std::string &propName, const std::string &elName, const std::string &propLabel="", const std::string &propGroup="", const std::string &elLabel="")
 Create a standard ReadOnly INDI Text property, with at least one element. More...
 
int createStandardIndiNumber (pcf::IndiProperty &prop, const std::string &name, const T &min, const T &max, const T &step, const std::string &format, const std::string &label="", const std::string &group="")
 Create a standard R/W INDI Number property with target and current elements. More...
 
int createROIndiNumber (pcf::IndiProperty &prop, const std::string &propName, const std::string &propLabel="", const std::string &propGroup="")
 Create a ReadOnly INDI Number property. More...
 
int createStandardIndiToggleSw (pcf::IndiProperty &prop, const std::string &name, const std::string &label="", const std::string &group="")
 Create a standard R/W INDI switch with a single toggle element. More...
 
int createStandardIndiRequestSw (pcf::IndiProperty &prop, const std::string &name, const std::string &label="", const std::string &group="")
 Create a standard R/W INDI switch with a single request element. More...
 
int createStandardIndiSelectionSw (pcf::IndiProperty &prop, const std::string &name, const std::vector< std::string > &elements, const std::vector< std::string > &elementLabels, const std::string &label="", const std::string &group="")
 Create a standard R/W INDI selection (one of many) switch with vector of elements and element labels. More...
 
int createStandardIndiSelectionSw (pcf::IndiProperty &prop, const std::string &name, const std::vector< std::string > &elements, const std::string &label="", const std::string &group="")
 Create a standard R/W INDI selection (one of many) switch with vector of elements using the element strings as their own labels. More...
 
int registerIndiPropertyReadOnly (pcf::IndiProperty &prop)
 Register an INDI property which is read only. More...
 
int registerIndiPropertyReadOnly (pcf::IndiProperty &prop, const std::string &propName, const pcf::IndiProperty::Type &propType, const pcf::IndiProperty::PropertyPermType &propPerm, const pcf::IndiProperty::PropertyStateType &propState)
 Register an INDI property which is read only. More...
 
int registerIndiPropertyNew (pcf::IndiProperty &prop, int(*)(void *, const pcf::IndiProperty &))
 Register an INDI property which is exposed for others to request a New Property for. More...
 
int registerIndiPropertyNew (pcf::IndiProperty &prop, const std::string &propName, const pcf::IndiProperty::Type &propType, const pcf::IndiProperty::PropertyPermType &propPerm, const pcf::IndiProperty::PropertyStateType &propState, int(*)(void *, const pcf::IndiProperty &))
 Register an INDI property which is exposed for others to request a New Property for. More...
 
int registerIndiPropertyNew (pcf::IndiProperty &prop, const std::string &propName, const pcf::IndiProperty::Type &propType, const pcf::IndiProperty::PropertyPermType &propPerm, const pcf::IndiProperty::PropertyStateType &propState, const pcf::IndiProperty::SwitchRuleType &propRule, int(*)(void *, const pcf::IndiProperty &))
 Register an INDI property which is exposed for others to request a New Property for, with a switch rule. More...
 
int registerIndiPropertySet (pcf::IndiProperty &prop, const std::string &devName, const std::string &propName, int(*)(void *, const pcf::IndiProperty &))
 Register an INDI property which is monitored for updates from others. More...
 
void sendGetPropertySetList (bool all=false)
 
void handleDefProperty (const pcf::IndiProperty &ipRecv)
 Handler for the DEF INDI properties notification. More...
 
void handleGetProperties (const pcf::IndiProperty &ipRecv)
 Handler for the get INDI properties request. More...
 
void handleNewProperty (const pcf::IndiProperty &ipRecv)
 Handler for the new INDI property request. More...
 
void handleSetProperty (const pcf::IndiProperty &ipRecv)
 Handler for the set INDI property request. More...
 
typedef std::pair< std::string, indiCallBack > callBackValueType
 Value type of the indiCallBack map. More...
 
typedef std::unordered_map< std::string, indiCallBack >::iterator callBackIterator
 Iterator type of the indiCallBack map. More...
 
typedef std::pair< callBackIterator, bool > callBackInsertResult
 Return type of insert on the indiCallBack map. More...
 
constexpr static bool m_useINDI
 Flag controlling whether INDI is used. If false, then no INDI code executes. More...
 
indiDriver< MagAOXApp > * m_indiDriver
 The INDI driver wrapper. Constructed and initialized by execute, which starts and stops communications. More...
 
std::mutex m_indiMutex
 Mutex for locking INDI communications. More...
 
int createINDIFIFOS ()
 Create the INDI FIFOs. More...
 
int startINDI ()
 Start INDI Communications. More...
 
void updateIfChanged (pcf::IndiProperty &p, const std::string &el, const T &newVal, pcf::IndiProperty::PropertyStateType ipState=pcf::IndiProperty::Ok)
 Update an INDI property element value if it has changed. More...
 
void updateIfChanged (pcf::IndiProperty &p, const std::string &el, const char *newVal, pcf::IndiProperty::PropertyStateType ipState=pcf::IndiProperty::Ok)
 Update an INDI property element value if it has changed. More...
 
void updateIfChanged (pcf::IndiProperty &p, const std::string &el, const std::vector< T > &newVals, pcf::IndiProperty::PropertyStateType ipState=pcf::IndiProperty::Ok)
 Update an INDI property if values have changed. More...
 
void updateIfChanged (pcf::IndiProperty &p, const std::vector< std::string > &els, const std::vector< T > &newVals)
 Update an INDI property if values have changed. More...
 
void updateSwitchIfChanged (pcf::IndiProperty &p, const std::string &el, const pcf::IndiElement::SwitchStateType &newVal, pcf::IndiProperty::PropertyStateType ipState=pcf::IndiProperty::Ok)
 Update an INDI switch element value if it has changed. More...
 
int indiTargetUpdate (pcf::IndiProperty &localProperty, T &localTarget, const pcf::IndiProperty &remoteProperty, bool setBusy=true)
 Get the target element value from an new property. More...
 
int sendNewProperty (const pcf::IndiProperty &ipSend, const std::string &el, const T &newVal)
 Send a newProperty command to another device (using the INDI Client interface) More...
 
int sendNewProperty (const pcf::IndiProperty &ipSend)
 Send a newProperty command to another device (using the INDI Client interface) More...
 
int sendNewStandardIndiToggle (const std::string &device, const std::string &property, bool onoff)
 Send a new property commmand for a standard toggle switch. More...
 
int newCallBack_clearFSMAlert (const pcf::IndiProperty &ipRecv)
 The callback called by the static version, to actually process the FSM Alert Clear request. More...
 
static int st_newCallBack_clearFSMAlert (void *app, const pcf::IndiProperty &ipRecv)
 The static callback function to be registered for requesting to clear the FSM alert. More...
 

Power Management

For devices which have remote power management (e.g. from one of the PDUs) we implement a standard power state monitoring and management component for the FSM. This needs to be enabled in the derived app constructor. To stay enabled, m_powerDevice and m_powerChannel must be not empty strings after the configuration. These could be set in the derived app defaults.

If power management is enabled, then while power is off, appLogic will not be called. Instead a parrallel set of virtual functions is called, onPowerOff (to allow apps to perform cleanup) and whilePowerOff (to allow apps to keep variables updated, etc). Note that these could merely call appLogic if desired.

bool m_powerMgtEnabled
 Flag controls whether power mgt is used. Set this in the constructor of a derived app. If true, then if after loadConfig the powerDevice and powerChannel are empty, then the app will exit with a critical error. More...
 
std::string m_powerDevice
 The INDI device name of the power controller. More...
 
std::string m_powerChannel
 The INDI property name of the channel controlling this device's power. More...
 
std::string m_powerElement
 The INDI element name to monitor for this device's power state. More...
 
std::string m_powerTargetElement
 The INDI element name to monitor for this device's power state. More...
 
unsigned long m_powerOnWait
 Time in sec to wait for device to boot after power on. More...
 
int m_powerOnCounter
 Counts numer of loops after power on, implements delay for device bootup. If -1, then device was NOT powered off on app startup. More...
 
int m_powerState
 Current power state, 1=On, 0=Off, -1=Unk. More...
 
int m_powerTargetState
 Current target power state, 1=On, 0=Off, -1=Unk. More...
 
pcf::IndiProperty m_indiP_powerChannel
 INDI property used to communicate power state. More...
 
int powerState ()
 Returns the current power state. More...
 
int powerStateTarget ()
 Returns the target power state. More...
 
 INDI_SETCALLBACK_DECL (MagAOXApp, m_indiP_powerChannel)
 
virtual int onPowerOff ()
 This method is called when the change to poweroff is detected. More...
 
virtual int whilePowerOff ()
 This method is called while the power is off, once per FSM loop. More...
 
bool powerOnWaitElapsed ()
 This method tests whether the power on wait time has elapsed. More...
 

Framegrabber Thread

This thread actually manages the framegrabbing hardware

bool m_fgThreadInit
 Synchronizer for thread startup, to allow priority setting to finish. More...
 
pid_t m_fgThreadID
 The ID of the framegrabber thread. More...
 
pcf::IndiProperty m_fgThreadProp
 The property to hold the f.g. thread details. More...
 
std::thread m_fgThread
 A separate thread for the actual framegrabbings. More...
 
void fgThreadExec ()
 Execute framegrabbing. More...
 
static void fgThreadStart (frameGrabber *o)
 Thread starter, called by MagAOXApp::threadStart on thread construction. Calls fgThreadExec. More...
 

INDI

pcf::IndiProperty m_indiP_shmimName
 Property used to report the shmim buffer name. More...
 
pcf::IndiProperty m_indiP_frameSize
 Property used to report the current frame size. More...
 
pcf::IndiProperty m_indiP_timing
 
int updateINDI ()
 Update the INDI properties for this device controller. More...
 

Open/Shut Threads

Separate threads are used since we need INDI updates while trying to open/shut. These threads sleep(1), unless interrupted by a signal. When signaled, they check for the m_doOpen or m_doShut flag, and if true the appropriate open() or shut() function is called. If not, they go back to sleep unless m_shutdown is true.

bool m_doOpen
 Flag telling the open thread that it should actually open the shutter, not just go back to sleep. More...
 
bool m_openThreadInit
 Initialization flag for the open thread. More...
 
pid_t m_openThreadID
 Open thread PID. More...
 
pcf::IndiProperty m_openThreadProp
 The property to hold the open thread details. More...
 
std::thread m_openThread
 The opening thread. More...
 
bool m_doShut
 Flag telling the shut thread that it should actually shut the shutter, not just go back to sleep. More...
 
bool m_shutThreadInit
 Initialization flag for the shut thread. More...
 
pid_t m_shutThreadID
 Shut thread PID. More...
 
pcf::IndiProperty m_shutThreadProp
 The property to hold the shut thread details. More...
 
std::thread m_shutThread
 The shutting thread. More...
 
void openThreadExec ()
 Open thread function. More...
 
void shutThreadExec ()
 Shut thread function. More...
 
static void openThreadStart (dssShutter *d)
 Open thread starter function. More...
 
static void shutThreadStart (dssShutter *d)
 Shut thread starter function. More...
 

INDI

pcf::IndiProperty m_indiP_powerChannel
 Property used to monitor the shutter's power state. More...
 
pcf::IndiProperty m_indiP_sensorChannel
 Property used to monitor the shutter's hall sensor. More...
 
pcf::IndiProperty m_indiP_triggerChannel
 Property used to monitor and set the shutter's trigger. More...
 
int setCallBack_powerChannel (const pcf::IndiProperty &ipRecv)
 The callback called by the static version, to actually process the new request. More...
 
int setCallBack_sensorChannel (const pcf::IndiProperty &ipRecv)
 The callback called by the static version, to actually process the new request. More...
 
int setCallBack_triggerChannel (const pcf::IndiProperty &ipRecv)
 The callback called by the static version, to actually process the new request. More...
 
static int st_setCallBack_powerChannel (void *app, const pcf::IndiProperty &ipRecv)
 The static callback function to be registered for shutter power channel changes. More...
 
static int st_setCallBack_sensorChannel (void *app, const pcf::IndiProperty &ipRecv)
 The static callback function to be registered for shutter sensor channel changes. More...
 
static int st_setCallBack_triggerChannel (void *app, const pcf::IndiProperty &ipRecv)
 The static callback function to be registered for shutter trigger channel changes. More...
 

Application State

stateCodes::stateCodeT state ()
 Get the current state code. More...
 
void state (const stateCodes::stateCodeT &s, bool stateAlert=false)
 Set the current state code. More...
 
int stateLogged ()
 Updates and returns the value of m_stateLogged. Will be 0 on first call after a state change, >0 afterwards. More...
 
stateCodes::stateCodeT m_state
 The application's state. Never ever set this directly, use state(const stateCodeT & s). More...
 
bool m_stateAlert
 
bool m_gitAlert
 
int m_stateLogged
 Counter and flag for use to log errors just once. Never ever access directly, use stateLogged(). More...
 

INDI

int newCallBack_stdCamera (const pcf::IndiProperty &ipRecv)
 The callback function for stdCamera properties. More...
 
int setTempSetPt (const mx::meta::trueFalseT< true > &t)
 Interface to setTempSetPt when the derivedT has temperature control. More...
 
int setTempSetPt (const mx::meta::trueFalseT< false > &f)
 Interface to setTempSetPt when the derivedT does not have temperature control. More...
 
int newCallBack_temp (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW CCD temp request. More...
 
int setTempControl (const mx::meta::trueFalseT< true > &t)
 Interface to setTempControl when the derivedT has temperature control. More...
 
int setTempControl (const mx::meta::trueFalseT< false > &f)
 Interface to setTempControl when the derivedT does not have temperature control. More...
 
int newCallBack_temp_controller (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW CCD temp control request. More...
 
int setReadoutSpeed (const mx::meta::trueFalseT< true > &t)
 Interface to setReadoutSpeed when the derivedT has readout speed control. More...
 
int setReadoutSpeed (const mx::meta::trueFalseT< false > &f)
 Interface to setReadoutSpeed when the derivedT does not have readout speed control. More...
 
int newCallBack_readoutSpeed (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW readout speed request. More...
 
int setVShiftSpeed (const mx::meta::trueFalseT< true > &t)
 Interface to setVShiftSpeed when the derivedT has vshift speed control. More...
 
int setVShiftSpeed (const mx::meta::trueFalseT< false > &f)
 Interface to setVShiftSpeed when the derivedT does not have vshift speed control. More...
 
int newCallBack_vShiftSpeed (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW vshift speed request. More...
 
int setEMGain (const mx::meta::trueFalseT< true > &t)
 Interface to setEMGain when the derivedT has EM Gain. More...
 
int setEMGain (const mx::meta::trueFalseT< false > &f)
 Interface to setEMGain when the derivedT does not have EM Gain. More...
 
int newCallBack_emgain (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW EM gain request. More...
 
int setExpTime (const mx::meta::trueFalseT< true > &t)
 Interface to setExpTime when the derivedT uses exposure time controls. More...
 
int setExpTime (const mx::meta::trueFalseT< false > &f)
 Interface to setExptime when the derivedT does not use exposure time controls. More...
 
int newCallBack_exptime (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW exposure time request. More...
 
int setFPS (const mx::meta::trueFalseT< true > &t)
 Interface to setFPS when the derivedT uses FPS controls. More...
 
int setFPS (const mx::meta::trueFalseT< false > &f)
 Interface to setFPS when the derivedT does not use FPS controls. More...
 
int newCallBack_fps (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW fps request. More...
 
int setSynchro (const mx::meta::trueFalseT< true > &t)
 Interface to setSynchro when the derivedT has synchronization. More...
 
int setSynchro (const mx::meta::trueFalseT< false > &f)
 Interface to setSynchro when the derivedT does not have synchronization. More...
 
int newCallBack_synchro (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW synchro request. More...
 
int newCallBack_mode (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW mode request. More...
 
int newCallBack_reconfigure (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW reconfigure request. More...
 
int setCropMode (const mx::meta::trueFalseT< true > &t)
 Interface to setCropMode when the derivedT has crop mode. More...
 
int setCropMode (const mx::meta::trueFalseT< false > &f)
 Interface to setCropMode when the derivedT does not have crop mode. More...
 
int newCallBack_cropMode (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW cropMode request. More...
 
int newCallBack_roi_x (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_x request. More...
 
int newCallBack_roi_y (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_y request. More...
 
int newCallBack_roi_w (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_w request. More...
 
int newCallBack_roi_h (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_h request. More...
 
int newCallBack_roi_bin_x (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW bin_x request. More...
 
int newCallBack_roi_bin_y (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW bin_y request. More...
 
int checkNextROI (const mx::meta::trueFalseT< true > &t)
 Interface to checkNextROI when the derivedT uses ROIs. More...
 
int checkNextROI (const mx::meta::trueFalseT< false > &f)
 Interface to checkNextROI when the derivedT does not use ROIs. More...
 
int newCallBack_roi_check (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_check request. More...
 
int setNextROI (const mx::meta::trueFalseT< true > &t)
 Interface to setNextROI when the derivedT uses ROIs. More...
 
int setNextROI (const mx::meta::trueFalseT< false > &f)
 Interface to setNextROI when the derivedT does not use ROIs. More...
 
int newCallBack_roi_set (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_set request. More...
 
int newCallBack_roi_full (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_full request. More...
 
int newCallBack_roi_fullbin (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_fullbin request. More...
 
int newCallBack_roi_loadlast (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_loadlast request. More...
 
int newCallBack_roi_last (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_last request. More...
 
int newCallBack_roi_default (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW roi_default request. More...
 
int setShutter (int ss, const mx::meta::trueFalseT< true > &t)
 Interface to setShutter when the derivedT has a shutter. More...
 
int setShutter (int ss, const mx::meta::trueFalseT< false > &f)
 Interface to setShutter when the derivedT does not have a shutter. More...
 
int newCallBack_shutter (const pcf::IndiProperty &ipRecv)
 Callback to process a NEW shutter request. More...
 
std::string stateString (const mx::meta::trueFalseT< true > &t)
 Interface to stateString when the derivedT provides it. More...
 
std::string stateString (const mx::meta::trueFalseT< false > &f)
 Interface to stateString when the derivedT does not provide it. More...
 
bool stateStringValid (const mx::meta::trueFalseT< true > &t)
 Interface to stateStringValid when the derivedT provides it. More...
 
bool stateStringValid (const mx::meta::trueFalseT< false > &f)
 Interface to stateStringValid when the derivedT does not provide it. More...
 
int updateINDI ()
 Update the INDI properties for this device controller. More...
 
static int st_newCallBack_stdCamera (void *app, const pcf::IndiProperty &ipRecv)
 The static callback function to be registered for stdCamera properties. More...
 

Signal Handling

libMagAOX/logger/types/software_log.hpp

static MagAOXAppm_self
 Static pointer to this (set in constructor). Used to test whether a a MagAOXApp is already instatiated (a fatal error) and used for getting out of static signal handlers. More...
 
static void _handlerSigTerm (int signum, siginfo_t *siginf, void *ucont)
 The handler called when SIGTERM, SIGQUIT, or SIGINT is received. Just a wrapper for handlerSigTerm. More...
 
int setSigTermHandler ()
 Sets the handler for SIGTERM, SIGQUIT, and SIGINT. More...
 
void handlerSigTerm (int signum, siginfo_t *siginf, void *ucont)
 Handles SIGTERM, SIGQUIT, and SIGINT. Sets m_shutdown to 1 and logs the signal. More...
 

Privilege Management

uid_t m_euidReal
 The real user id of the proces (i.e. the lower privileged id of the user) More...
 
uid_t m_euidCalled
 The user id of the process as called (i.e. the higher privileged id of the owner, root if setuid). More...
 
uid_t m_suid
 The save-set user id of the process. More...
 
int setEuidCalled ()
 Set the effective user ID to the called value, i.e. the highest possible. More...
 
int setEuidReal ()
 Set the effective user ID to the real value, i.e. the file owner. More...
 

Detailed Description

The MagAO-X pvcam controller.

Definition at line 73 of file pvcamCtrl.hpp.


Class Documentation

◆ MagAOX::app::pvcamCtrl::gain

struct MagAOX::app::pvcamCtrl::gain

Definition at line 149 of file pvcamCtrl.hpp.

Collaboration diagram for MagAOX::app::pvcamCtrl::gain:
Collaboration graph
Class Members
int bitDepth
int index
string name

◆ MagAOX::app::pvcamCtrl::port

struct MagAOX::app::pvcamCtrl::port

Definition at line 166 of file pvcamCtrl.hpp.

Collaboration diagram for MagAOX::app::pvcamCtrl::port:
Collaboration graph
Class Members
int index
string name
vector< speed > speeds
int value

◆ MagAOX::app::pvcamCtrl::speed

struct MagAOX::app::pvcamCtrl::speed

Definition at line 157 of file pvcamCtrl.hpp.

Collaboration diagram for MagAOX::app::pvcamCtrl::speed:
Collaboration graph
Class Members
vector< gain > gains
int index
int maxG
int minG
int pixTime

Member Typedef Documentation

◆ callBackInsertResult

typedef std::pair<callBackIterator,bool> MagAOX::app::MagAOXApp< _useINDI >::callBackInsertResult
inherited

Return type of insert on the indiCallBack map.

Definition at line 561 of file MagAOXApp.hpp.

◆ callBackIterator

typedef std::unordered_map<std::string, indiCallBack>::iterator MagAOX::app::MagAOXApp< _useINDI >::callBackIterator
inherited

Iterator type of the indiCallBack map.

Definition at line 558 of file MagAOXApp.hpp.

◆ callBackValueType

typedef std::pair<std::string, indiCallBack> MagAOX::app::MagAOXApp< _useINDI >::callBackValueType
inherited

Value type of the indiCallBack map.

Definition at line 555 of file MagAOXApp.hpp.

◆ cbIndexT

typedef uint16_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::cbIndexT
protectedinherited

Definition at line 120 of file frameGrabber.hpp.

◆ frameGrabberT

◆ logManagerT [1/2]

The log manager type.

Definition at line 54 of file telemeter.hpp.

◆ logManagerT [2/2]

typedef logger::logManager<MagAOXApp<_useINDI>, logFileRaw> MagAOX::app::MagAOXApp< _useINDI >::logManagerT
inherited

The log manager type.

Definition at line 82 of file MagAOXApp.hpp.

◆ MagAOXAppT

Definition at line 91 of file pvcamCtrl.hpp.

◆ shutterT

Definition at line 80 of file pvcamCtrl.hpp.

◆ stdCameraT

Definition at line 78 of file pvcamCtrl.hpp.

◆ telemeterT

Definition at line 81 of file pvcamCtrl.hpp.

Member Enumeration Documentation

◆ fgFlip

Definition at line 81 of file frameGrabber.hpp.

Constructor & Destructor Documentation

◆ pvcamCtrl()

MagAOX::app::pvcamCtrl::pvcamCtrl ( )

Default c'tor.

Definition at line 298 of file pvcamCtrl.hpp.

◆ ~pvcamCtrl()

MagAOX::app::pvcamCtrl::~pvcamCtrl ( )
inlinenoexcept

D'tor, declared and defined for noexcept.

Definition at line 192 of file pvcamCtrl.hpp.

Member Function Documentation

◆ _handlerSigTerm()

void MagAOX::app::MagAOXApp< _useINDI >::_handlerSigTerm ( int  signum,
siginfo_t *  siginf,
void *  ucont 
)
staticprivateinherited

The handler called when SIGTERM, SIGQUIT, or SIGINT is received. Just a wrapper for handlerSigTerm.

Parameters
[in]signumspecifies the signal.
[in]siginfignored by MagAOXApp
[in]ucontignored by MagAOXApp

Definition at line 297 of file MagAOXApp.hpp.

◆ acquireAndCheckValid()

int MagAOX::app::pvcamCtrl::acquireAndCheckValid ( )

Definition at line 862 of file pvcamCtrl.hpp.

◆ appLogic()

int MagAOX::app::pvcamCtrl::appLogic ( )
virtual

Implementation of the FSM for pvcamCtrl.

Returns
0 on no critical error
-1 on an error requiring shutdown
Todo:
why do we run dev appLogics first?

Implements MagAOX::app::MagAOXApp< true >.

Definition at line 430 of file pvcamCtrl.hpp.

◆ appShutdown()

int MagAOX::app::pvcamCtrl::appShutdown ( )
virtual

Shutdown the app.

Todo:
this error code is manually defined
Todo:
error check these base class fxns.

Implements MagAOX::app::MagAOXApp< true >.

Definition at line 519 of file pvcamCtrl.hpp.

◆ appStartup()

int MagAOX::app::pvcamCtrl::appStartup ( )
virtual

Startup function.

Implements MagAOX::app::MagAOXApp< true >.

Definition at line 400 of file pvcamCtrl.hpp.

◆ checkConfig()

void MagAOX::app::MagAOXApp< _useINDI >::checkConfig
virtualinherited

Check for unused and unrecognized config options and settings.

Logs the unused targets as warnings. Unrecognized and unused options are logged as critical, and m_shutdown is set. Any command line argument (not an option) will also be critical and cause shutdown.

Definition at line 174 of file MagAOXApp.hpp.

◆ checkNextROI() [1/3]

int MagAOX::app::pvcamCtrl::checkNextROI ( )

Check the next ROI.

Checks if the target values are valid and adjusts them to the closest valid values if needed.

Returns
0 if successful
-1 otherwise

Definition at line 652 of file pvcamCtrl.hpp.

◆ checkNextROI() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::checkNextROI ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to checkNextROI when the derivedT does not use ROIs.

Tag-dispatch resolution of c_stdCamera_usesROI==false will call this function. This prevents requiring derivedT to have its own checkNextROI().

Definition at line 835 of file stdCamera.hpp.

◆ checkNextROI() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::checkNextROI ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to checkNextROI when the derivedT uses ROIs.

Tag-dispatch resolution of c_stdCamera_usesROI==true will call this function. Calls derivedT::checkNextROI.

Definition at line 829 of file stdCamera.hpp.

◆ checkRecordTimes() [1/4]

int MagAOX::app::pvcamCtrl::checkRecordTimes ( )

Definition at line 1373 of file pvcamCtrl.hpp.

◆ checkRecordTimes() [2/4]

int MagAOX::app::dev::telemeter< pvcamCtrl >::checkRecordTimes ( const telT &  tel,
telTs...  tels 
)
inherited

Check the time of the last record for each telemetry type and make an entry if needed.

This must be called from derivedT::checkRecordTimes(), with one template parameter for ach telemetry log type being recorded.

Returns
0 on succcess
-1 on error
Parameters
[in]tel[unused] object of the telemetry type to record
[in]tels[unused] objects of the additional telemetry types to record

Definition at line 131 of file telemeter.hpp.

◆ checkRecordTimes() [3/4]

int MagAOX::app::dev::telemeter< pvcamCtrl >::checkRecordTimes ( timespec &  ts)
inherited

Empty function called at the end of the template list.

Returns
0 on succcess
-1 on error
Parameters
[in]ts[unused] the timestamp that records are compared to

Definition at line 152 of file telemeter.hpp.

◆ checkRecordTimes() [4/4]

int MagAOX::app::dev::telemeter< pvcamCtrl >::checkRecordTimes ( timespec &  ts,
const telT &  tel,
telTs...  tels 
)
inherited

Worker function to actually perform the record time checking logic.

Recursively calls itself until the variadic template list is exhausted.

Returns
0 on succcess
-1 on error
Parameters
[in]ts[unused] the timestamp that records are compared to
[in]tel[unused] objects of the telemetry type to record
[in]tels[unused] objects of the additional telemetry types to record

Definition at line 142 of file telemeter.hpp.

◆ clearFSMAlert()

int MagAOX::app::MagAOXApp< _useINDI >::clearFSMAlert
privateinherited

Clear the FSM alert state.

This can only be done from within this class, and this should only be possible via user action via INDI.

Definition at line 519 of file MagAOXApp.hpp.

◆ configDir()

std::string MagAOX::app::MagAOXApp< _useINDI >::configDir
inherited

Get the config directory.

Returns
the current value of m_configDir

Definition at line 1064 of file MagAOXApp.hpp.

◆ configLog()

void MagAOX::app::MagAOXApp< _useINDI >::configLog ( const std::string &  name,
const int &  code,
const std::string &  value,
const std::string &  source 
)
staticprivateinherited

Callback for config system logging.

Called by appConfigurator each time a value is set using the config() operator. You never need to call this directly.

Parameters
[in]nameThe name of the config value
[in]codenumeric code specifying the type
[in]valuethe value read by the config system
[in]sourcethe source of the value.

Definition at line 278 of file MagAOXApp.hpp.

◆ configName()

std::string MagAOX::app::MagAOXApp< _useINDI >::configName
inherited

Get the config name.

Returns
the current value of m_configName

Definition at line 1058 of file MagAOXApp.hpp.

◆ configureAcquisition()

int MagAOX::app::pvcamCtrl::configureAcquisition ( )

Definition at line 712 of file pvcamCtrl.hpp.

◆ connect()

int MagAOX::app::pvcamCtrl::connect ( )
Todo:
this error code is manually defined

Definition at line 936 of file pvcamCtrl.hpp.

Referenced by appLogic().

◆ createINDIFIFOS()

int MagAOX::app::MagAOXApp< _useINDI >::createINDIFIFOS
protectedinherited

Create the INDI FIFOs.

Changes permissions to max available and creates the FIFOs at the configured path.

Todo:
make driver FIFO path full configurable.

Definition at line 776 of file MagAOXApp.hpp.

◆ createReadoutSpeed() [1/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::createReadoutSpeed ( const mx::meta::trueFalseT< false > &  f)
protectedinherited

◆ createReadoutSpeed() [2/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::createReadoutSpeed ( const mx::meta::trueFalseT< true > &  t)
protectedinherited

Definition at line 491 of file stdCamera.hpp.

◆ createROIndiNumber()

int MagAOX::app::MagAOXApp< _useINDI >::createROIndiNumber ( pcf::IndiProperty &  prop,
const std::string &  propName,
const std::string &  propLabel = "",
const std::string &  propGroup = "" 
)
inherited

Create a ReadOnly INDI Number property.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]propNamethe name of the property
[in]propLabel[optional] the GUI label suggestion for this property
[in]propGroup[optional] the group for this property

Definition at line 636 of file MagAOXApp.hpp.

◆ createROIndiText()

int MagAOX::app::MagAOXApp< _useINDI >::createROIndiText ( pcf::IndiProperty &  prop,
const std::string &  propName,
const std::string &  elName,
const std::string &  propLabel = "",
const std::string &  propGroup = "",
const std::string &  elLabel = "" 
)
inherited

Create a standard ReadOnly INDI Text property, with at least one element.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]propNamethe name of the property
[in]elNamethe name of the element
[in]propLabel[optional] the GUI label suggestion for this property
[in]propGroup[optional] the group for this property
[in]elLabel[optional] the GUI label suggestion for the element

Definition at line 607 of file MagAOXApp.hpp.

◆ createStandardIndiNumber()

int MagAOX::app::MagAOXApp< _useINDI >::createStandardIndiNumber ( pcf::IndiProperty &  prop,
const std::string &  name,
const T &  min,
const T &  max,
const T &  step,
const std::string &  format,
const std::string &  label = "",
const std::string &  group = "" 
)
inherited

Create a standard R/W INDI Number property with target and current elements.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]namethe name of the property
[in]minthe minimum value for the elements, applied to both target and current
[in]maxthe minimum value for the elements, applied to both target and current
[in]stepthe step size for the elements, applied to both target and current
[in]formatthe _ value for the elements, applied to both target and current. Set to "" to use the MagAO-X standard for type.
[in]label[optional] the GUI label suggestion for this property
[in]group[optional] the group for this property

Definition at line 621 of file MagAOXApp.hpp.

◆ createStandardIndiRequestSw()

int MagAOX::app::MagAOXApp< _useINDI >::createStandardIndiRequestSw ( pcf::IndiProperty &  prop,
const std::string &  name,
const std::string &  label = "",
const std::string &  group = "" 
)
inherited

Create a standard R/W INDI switch with a single request element.

This switch is intended to function like a momentary switch.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]namethe name of the property
[in]label[optional] the GUI label suggestion for this property
[in]group[optional] the group for this property

Definition at line 660 of file MagAOXApp.hpp.

◆ createStandardIndiSelectionSw() [1/2]

int MagAOX::app::MagAOXApp< _useINDI >::createStandardIndiSelectionSw ( pcf::IndiProperty &  prop,
const std::string &  name,
const std::vector< std::string > &  elements,
const std::string &  label = "",
const std::string &  group = "" 
)
inherited

Create a standard R/W INDI selection (one of many) switch with vector of elements using the element strings as their own labels.

This switch is intended to function like drop down menu.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]namethe name of the property,
[in]elementsthe element names to give to the switches
[in]label[optional] the GUI label suggestion for this property
[in]group[optional] the group for this property

Definition at line 686 of file MagAOXApp.hpp.

◆ createStandardIndiSelectionSw() [2/2]

int MagAOX::app::MagAOXApp< _useINDI >::createStandardIndiSelectionSw ( pcf::IndiProperty &  prop,
const std::string &  name,
const std::vector< std::string > &  elements,
const std::vector< std::string > &  elementLabels,
const std::string &  label = "",
const std::string &  group = "" 
)
inherited

Create a standard R/W INDI selection (one of many) switch with vector of elements and element labels.

This switch is intended to function like drop down menu.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]namethe name of the property,
[in]elementsthe element names to give to the switches
[in]elementLabelsthe element labels to give to the switches
[in]label[optional] the GUI label suggestion for this property
[in]group[optional] the group for this property

Definition at line 672 of file MagAOXApp.hpp.

◆ createStandardIndiText()

int MagAOX::app::MagAOXApp< _useINDI >::createStandardIndiText ( pcf::IndiProperty &  prop,
const std::string &  propName,
const std::string &  label = "",
const std::string &  group = "" 
)
inherited

Create a standard R/W INDI Text property with target and current elements.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]propNamethe name of the property
[in]label[optional] the GUI label suggestion for this property
[in]group[optional] the group for this property

Definition at line 596 of file MagAOXApp.hpp.

◆ createStandardIndiToggleSw()

int MagAOX::app::MagAOXApp< _useINDI >::createStandardIndiToggleSw ( pcf::IndiProperty &  prop,
const std::string &  name,
const std::string &  label = "",
const std::string &  group = "" 
)
inherited

Create a standard R/W INDI switch with a single toggle element.

This switch is intended to function like an on/off toggle switch.

Returns
0 on success
-1 on error
Parameters
[out]propthe property to create and setup
[in]namethe name of the property
[in]label[optional] the GUI label suggestion for this property
[in]group[optional] the group for this property

Definition at line 648 of file MagAOXApp.hpp.

◆ createVShiftSpeed() [1/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::createVShiftSpeed ( const mx::meta::trueFalseT< false > &  f)
protectedinherited

◆ createVShiftSpeed() [2/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::createVShiftSpeed ( const mx::meta::trueFalseT< true > &  t)
protectedinherited

Definition at line 495 of file stdCamera.hpp.

◆ derived()

pvcamCtrl & MagAOX::app::dev::stdCamera< pvcamCtrl >::derived ( )
inlineprivateinherited

Definition at line 965 of file stdCamera.hpp.

◆ driverCtrlName()

std::string MagAOX::app::MagAOXApp< _useINDI >::driverCtrlName
inherited

Get the INDI control FIFO file name.

Returns
the current value of m_driverCtrlName

Definition at line 1082 of file MagAOXApp.hpp.

◆ driverInName()

std::string MagAOX::app::MagAOXApp< _useINDI >::driverInName
inherited

Get the INDI input FIFO file name.

Returns
the current value of m_driverInName

Definition at line 1070 of file MagAOXApp.hpp.

◆ driverOutName()

std::string MagAOX::app::MagAOXApp< _useINDI >::driverOutName
inherited

Get the INDI output FIFO file name.

Returns
the current value of m_driverOutName

Definition at line 1076 of file MagAOXApp.hpp.

◆ dumpEnum()

void MagAOX::app::pvcamCtrl::dumpEnum ( uns32  paramID,
const std::string &  paramMnem 
)

Definition at line 1237 of file pvcamCtrl.hpp.

◆ endOfFrameCallback()

void MagAOX::app::pvcamCtrl::endOfFrameCallback ( FRAME_INFO *  finfo)

Definition at line 1361 of file pvcamCtrl.hpp.

Referenced by st_endOfFrameCallback().

◆ execute()

int MagAOX::app::MagAOXApp< _useINDI >::execute ( void  )
virtualinherited

The execute method implementing the standard main loop. Should not normally be overridden.

Performs final startup steps. That is:

Errors in the above steps will cause a process exit.

Then commences the main event loop. Conditions on entry to the main loop:

  • PID locked
  • Log thread running
  • Signal handling installed
  • appStartup successful
  • INDI communications started successfully (if being used)
  • power state known (if being managed)

In the event loop, the power state is checked (if being managed). If power is off, then onPowerOff is called. If power is on, or power is not managed, appLogic is called. These methods are implemented in derived classes, and are called every m_loopPause interval.

If an error is returned by either onPowerOff or appLogic, or a signal is handled, then the shutdown is managed. This includes shutting down INDI, calling appShutdown, and unlocking the PID. The log thread will shutdown.

Todo:
Need a heartbeat update here.

Definition at line 204 of file MagAOXApp.hpp.

◆ fgThreadExec()

void MagAOX::app::dev::frameGrabber< pvcamCtrl >::fgThreadExec
protectedinherited

Execute framegrabbing.

Todo:
this ought to wait until OPERATING, using READY as a sign of "not integrating"

Definition at line 236 of file frameGrabber.hpp.

◆ fgThreadStart()

void MagAOX::app::dev::frameGrabber< pvcamCtrl >::fgThreadStart ( frameGrabber< pvcamCtrl > *  o)
staticprotectedinherited

Thread starter, called by MagAOXApp::threadStart on thread construction. Calls fgThreadExec.

Parameters
[in]oa pointer to a frameGrabber instance (normally this)

Definition at line 233 of file frameGrabber.hpp.

◆ fillSpeedTable()

int MagAOX::app::pvcamCtrl::fillSpeedTable ( )
Todo:
log this properly

Definition at line 1100 of file pvcamCtrl.hpp.

Referenced by connect().

◆ fps()

float MagAOX::app::pvcamCtrl::fps ( )

Definition at line 845 of file pvcamCtrl.hpp.

◆ getTemp()

int MagAOX::app::pvcamCtrl::getTemp ( )

Definition at line 1290 of file pvcamCtrl.hpp.

Referenced by appLogic().

◆ handleDefProperty()

void MagAOX::app::MagAOXApp< _useINDI >::handleDefProperty ( const pcf::IndiProperty &  ipRecv)
inherited

Handler for the DEF INDI properties notification.

Uses the properties registered in m_indiSetCallBacks to process the notification. This is called by m_indiDriver's indiDriver::handleDefProperties.

Parameters
[in]ipRecvThe property being sent.

Definition at line 793 of file MagAOXApp.hpp.

◆ handleGetProperties()

void MagAOX::app::MagAOXApp< _useINDI >::handleGetProperties ( const pcf::IndiProperty &  ipRecv)
inherited

Handler for the get INDI properties request.

Uses the properties registered in m_indiCallBacks to respond to the request. This is called by m_indiDriver's indiDriver::handleGetProperties.

Parameters
[in]ipRecvThe property being requested.

Definition at line 799 of file MagAOXApp.hpp.

◆ handleNewProperty()

void MagAOX::app::MagAOXApp< _useINDI >::handleNewProperty ( const pcf::IndiProperty &  ipRecv)
inherited

Handler for the new INDI property request.

Uses the properties registered in m_indiCallBacks to respond to the request, looking up the callback for this property and calling it.

This is called by m_indiDriver's indiDriver::handleGetProperties.

Todo:
handle errors, are they FATAL?
Parameters
[in]ipRecvThe property being changed.

Definition at line 809 of file MagAOXApp.hpp.

◆ handlerSigTerm()

void MagAOX::app::MagAOXApp< _useINDI >::handlerSigTerm ( int  signum,
siginfo_t *  siginf,
void *  ucont 
)
privateinherited

Handles SIGTERM, SIGQUIT, and SIGINT. Sets m_shutdown to 1 and logs the signal.

Parameters
[in]signumspecifies the signal.
[in]siginfignored by MagAOXApp
[in]ucontignored by MagAOXApp

Definition at line 303 of file MagAOXApp.hpp.

◆ handleSetProperty()

void MagAOX::app::MagAOXApp< _useINDI >::handleSetProperty ( const pcf::IndiProperty &  ipRecv)
inherited

Handler for the set INDI property request.

This is called by m_indiDriver's indiDriver::handleSetProperties.

Todo:
handle errors, are they FATAL?
Todo:
log an error here because callBack should not be null
Todo:
log invalid SetProperty request.
Parameters
[in]ipRecvThe property being changed.

Definition at line 818 of file MagAOXApp.hpp.

◆ INDI_SETCALLBACK_DECL()

MagAOX::app::MagAOXApp< _useINDI >::INDI_SETCALLBACK_DECL ( MagAOXApp< true >  ,
m_indiP_powerChannel   
)
inherited

◆ indiTargetUpdate()

int MagAOX::app::MagAOXApp< _useINDI >::indiTargetUpdate ( pcf::IndiProperty &  localProperty,
T &  localTarget,
const pcf::IndiProperty &  remoteProperty,
bool  setBusy = true 
)
protectedinherited

Get the target element value from an new property.

Returns
0 on success
-1 on error
Parameters
[out]localPropertyThe local property to update
[out]localTargetThe local value to update
[in]remotePropertythe new property received
[in]setBusy[optional] set property to busy if true

Definition at line 908 of file MagAOXApp.hpp.

◆ loadBasicConfig()

void MagAOX::app::MagAOXApp< _useINDI >::loadBasicConfig
virtualinherited

The basic MagAO-X configuration processing method. Should not normally be overridden.

This method processes the standard MagAO-X key=value pairs.

Though it is virtual, it should not normally be overridden unless you need to depart from the MagAO-X standard.

Processing of app specific config goes in loadConfig() implemented by the derived class.

Definition at line 168 of file MagAOXApp.hpp.

◆ loadConfig() [1/5]

void MagAOX::app::pvcamCtrl::loadConfig ( )
virtual

Definition at line 391 of file pvcamCtrl.hpp.

◆ loadConfig() [2/5]

int MagAOX::app::dev::telemeter< pvcamCtrl >::loadConfig ( appConfigurator &  config)
inherited

Load the device section from an application configurator.

Returns
0 on success
-1 on error (nothing implemented yet)
Parameters
[in]configan application configuration from which to load values

Definition at line 95 of file telemeter.hpp.

◆ loadConfig() [3/5]

void MagAOX::app::dev::dssShutter< pvcamCtrl >::loadConfig ( mx::app::appConfigurator &  config)
inherited

load the configuration system results

This should be called in derivedT::loadConfig as

dssShutter<derivedT>::loadConfig(config);

with appropriate error checking.

Parameters
[in]configthe derived classes configurator

Definition at line 88 of file dssShutter.hpp.

◆ loadConfig() [4/5]

void MagAOX::app::dev::frameGrabber< pvcamCtrl >::loadConfig ( mx::app::appConfigurator &  config)
inherited

load the configuration system results

This should be called in derivedT::loadConfig as

framegrabber<derivedT>::loadConfig(config);

with appropriate error checking.

Parameters
[in]configthe derived classes configurator

Definition at line 165 of file frameGrabber.hpp.

◆ loadConfig() [5/5]

void MagAOX::app::dev::stdCamera< pvcamCtrl >::loadConfig ( mx::app::appConfigurator &  config)
inherited

load the configuration system results

This should be called in derivedT::loadConfig as

stdCamera<derivedT>::loadConfig(config);

with appropriate error checking.

Parameters
[in]configthe derived classes configurator

Definition at line 487 of file stdCamera.hpp.

◆ loadConfigImpl()

int MagAOX::app::pvcamCtrl::loadConfigImpl ( mx::app::appConfigurator &  _config)

Implementation of loadConfig logic, separated for testing.

This is called by loadConfig().

Parameters
[in]_configan application configuration from which to load values

Definition at line 356 of file pvcamCtrl.hpp.

Referenced by loadConfig().

◆ loadImageIntoStream()

int MagAOX::app::pvcamCtrl::loadImageIntoStream ( void *  dest)

Definition at line 899 of file pvcamCtrl.hpp.

◆ loadImageIntoStreamCopy()

void * MagAOX::app::dev::frameGrabber< pvcamCtrl >::loadImageIntoStreamCopy ( void *  dest,
void *  src,
size_t  width,
size_t  height,
size_t  szof 
)
protectedinherited

Definition at line 241 of file frameGrabber.hpp.

◆ lockPID()

int MagAOX::app::MagAOXApp< _useINDI >::lockPID
protectedinherited

Attempt to lock the PID by writing it to a file. Fails if a process is already running with the same config name.

First checks the PID file for an existing PID. If found, interrogates /proc to determine if that process is running and if so if the command line matches. If a matching process is currently running, then this returns an error.

Will not fail if a PID file exists but the stored PID does not correspond to a running process with the same command line name.

Reference: https://linux.die.net/man/3/getpid

Returns
0 on success.
-1 on any error, including creating the PID file or if this app is already running.

Definition at line 407 of file MagAOXApp.hpp.

◆ log() [1/2]

int MagAOX::app::MagAOXApp< _useINDI >::log ( const typename logT::messageT &  msg,
logPrioT  level = logPrio::LOG_DEFAULT 
)
staticinherited

Make a log entry.

Wrapper for logManager::log

Template Parameters
logTthe log entry type
retvalthe value returned by this method.
Parameters
[in]msgthe message to log
[in]level[optional] the log level. The default is used if not specified.

Definition at line 252 of file MagAOXApp.hpp.

◆ log() [2/2]

int MagAOX::app::MagAOXApp< _useINDI >::log ( logPrioT  level = logPrio::LOG_DEFAULT)
staticinherited

Make a log entry.

Wrapper for logManager::log

Template Parameters
logTthe log entry type
retvalthe value returned by this method.
Parameters
[in]level[optional] the log level. The default is used if not specified.

Definition at line 264 of file MagAOXApp.hpp.

◆ logMessage()

void MagAOX::app::MagAOXApp< _useINDI >::logMessage ( bufferPtrT b)
inherited

Handle a log message from the logging system.

This is a callback from the logManager, and is called when the log thread is processing log entries.

Decides whether to display to stderr and whether to send via INDI.

Definition at line 271 of file MagAOXApp.hpp.

◆ newCallBack_clearFSMAlert()

int MagAOX::app::MagAOXApp< _useINDI >::newCallBack_clearFSMAlert ( const pcf::IndiProperty &  ipRecv)
protectedinherited

The callback called by the static version, to actually process the FSM Alert Clear request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 964 of file MagAOXApp.hpp.

◆ newCallBack_cropMode()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_cropMode ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW cropMode request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 781 of file stdCamera.hpp.

◆ newCallBack_emgain()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_emgain ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW EM gain request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 691 of file stdCamera.hpp.

◆ newCallBack_exptime()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_exptime ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW exposure time request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 710 of file stdCamera.hpp.

◆ newCallBack_fps()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_fps ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW fps request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 729 of file stdCamera.hpp.

◆ newCallBack_mode()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_mode ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW mode request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 755 of file stdCamera.hpp.

◆ newCallBack_readoutSpeed()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_readoutSpeed ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW readout speed request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 653 of file stdCamera.hpp.

◆ newCallBack_reconfigure()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_reconfigure ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW reconfigure request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 762 of file stdCamera.hpp.

◆ newCallBack_roi_bin_x()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_bin_x ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW bin_x request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 816 of file stdCamera.hpp.

◆ newCallBack_roi_bin_y()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_bin_y ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW bin_y request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 823 of file stdCamera.hpp.

◆ newCallBack_roi_check()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_check ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_check request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 842 of file stdCamera.hpp.

◆ newCallBack_roi_default()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_default ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_default request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 896 of file stdCamera.hpp.

◆ newCallBack_roi_full()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_full ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_full request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 868 of file stdCamera.hpp.

◆ newCallBack_roi_fullbin()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_fullbin ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_fullbin request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 875 of file stdCamera.hpp.

◆ newCallBack_roi_h()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_h ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_h request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 809 of file stdCamera.hpp.

◆ newCallBack_roi_last()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_last ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_last request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 889 of file stdCamera.hpp.

◆ newCallBack_roi_loadlast()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_loadlast ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_loadlast request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 882 of file stdCamera.hpp.

◆ newCallBack_roi_set()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_set ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_set request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 861 of file stdCamera.hpp.

◆ newCallBack_roi_w()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_w ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_w request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 802 of file stdCamera.hpp.

◆ newCallBack_roi_x()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_x ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_x request.

Returns
0 on success.
-1 on error.
Todo:
why don't these check if usesROI is true?
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 788 of file stdCamera.hpp.

◆ newCallBack_roi_y()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_roi_y ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW roi_y request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 795 of file stdCamera.hpp.

◆ newCallBack_shutter()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_shutter ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW shutter request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 919 of file stdCamera.hpp.

◆ newCallBack_stdCamera()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_stdCamera ( const pcf::IndiProperty &  ipRecv)
inherited

The callback function for stdCamera properties.

Dispatches to the relevant handler

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 596 of file stdCamera.hpp.

◆ newCallBack_synchro()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_synchro ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW synchro request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 748 of file stdCamera.hpp.

◆ newCallBack_temp()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_temp ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW CCD temp request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 615 of file stdCamera.hpp.

◆ newCallBack_temp_controller()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_temp_controller ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW CCD temp control request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 634 of file stdCamera.hpp.

◆ newCallBack_vShiftSpeed()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::newCallBack_vShiftSpeed ( const pcf::IndiProperty &  ipRecv)
inherited

Callback to process a NEW vshift speed request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 672 of file stdCamera.hpp.

◆ onPowerOff() [1/4]

int MagAOX::app::dev::dssShutter< pvcamCtrl >::onPowerOff
inherited

Actions on power off.

This should be called in derivedT::appPowerOff as

dssShutter<derivedT>::appPowerOff();

with appropriate error checking.

Returns
0 on success
-1 on error, which is logged.

Definition at line 137 of file dssShutter.hpp.

◆ onPowerOff() [2/4]

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::onPowerOff
inherited

On power off, sets m_reconfig to true.

This should be called in derivedT::onPowerOff as

framegrabber<derivedT>::onPowerOff();

with appropriate error checking.

Returns
0 on success
-1 on error, which is logged.

Definition at line 202 of file frameGrabber.hpp.

◆ onPowerOff() [3/4]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::onPowerOff
inherited

Actions on power off.

This should be called from the derived's onPowerOff() as in

stdCamera<derivedT>::onPowerOff();

with appropriate error checking.

The INDI mutex should be locked before calling.

Returns
0 on success
-1 on error, which is logged.

Definition at line 543 of file stdCamera.hpp.

◆ onPowerOff() [4/4]

int MagAOX::app::MagAOXApp< _useINDI >::onPowerOff
protectedvirtualinherited

This method is called when the change to poweroff is detected.

Returns
0 on success.
-1 on any error which means the app should exit.

Reimplemented in MagAOX::app::zaberLowLevel, MagAOX::app::irisaoCtrl, MagAOX::app::bmcCtrl, and MagAOX::app::alpaoCtrl.

Definition at line 1005 of file MagAOXApp.hpp.

◆ open()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::open
inherited

Open the shutter.

Do not lock the mutex before calling this.

Returns
0 on success
-1 on error
Todo:
need shutter log types

Definition at line 164 of file dssShutter.hpp.

◆ openThreadExec()

void MagAOX::app::dev::dssShutter< pvcamCtrl >::openThreadExec
protectedinherited

Open thread function.

Runs until m_shutdown is true.

Definition at line 202 of file dssShutter.hpp.

◆ openThreadStart()

void MagAOX::app::dev::dssShutter< pvcamCtrl >::openThreadStart ( dssShutter< pvcamCtrl > *  d)
staticprotectedinherited

Open thread starter function.

Parameters
[in]dpointer to this

Definition at line 197 of file dssShutter.hpp.

◆ powerOnDefaults()

int MagAOX::app::pvcamCtrl::powerOnDefaults ( )

Definition at line 557 of file pvcamCtrl.hpp.

◆ powerOnWaitElapsed()

bool MagAOX::app::MagAOXApp< _useINDI >::powerOnWaitElapsed
protectedinherited

This method tests whether the power on wait time has elapsed.

You would call this once per appLogic loop while in state POWERON. While false, you would return 0.
Once it becomes true, take post-power-on actions and go on with life.

Returns
true if the time since POWERON is greater than the power-on wait, or if power management is not enabled
false otherwise

Definition at line 1021 of file MagAOXApp.hpp.

◆ powerState()

int MagAOX::app::MagAOXApp< _useINDI >::powerState
inherited

Returns the current power state.

If power management is not enabled, this always returns 1=On.

Returns
-1 if power state is unknown
0 if power is off
1 if power is on or m_powerMgtEnabled==false

Definition at line 1032 of file MagAOXApp.hpp.

◆ powerStateTarget()

int MagAOX::app::MagAOXApp< _useINDI >::powerStateTarget
inherited

Returns the target power state.

If power management is not enabled, this always returns 1=On.

Returns
-1 if target power state is unknown
0 if target power state is off
1 if target power is on or m_powerMgtEnabled==false

Definition at line 1041 of file MagAOXApp.hpp.

◆ reconfig()

int MagAOX::app::pvcamCtrl::reconfig ( )

Definition at line 927 of file pvcamCtrl.hpp.

◆ recordCamera()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::recordCamera ( bool  force = false)
inherited

Definition at line 960 of file stdCamera.hpp.

◆ recordFGTimings()

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::recordFGTimings ( bool  force = false)
inherited

Definition at line 278 of file frameGrabber.hpp.

◆ recordTelem() [1/2]

int MagAOX::app::pvcamCtrl::recordTelem ( const telem_fgtimings )
inline

Definition at line 1384 of file pvcamCtrl.hpp.

◆ recordTelem() [2/2]

int MagAOX::app::pvcamCtrl::recordTelem ( const telem_stdcam )

Definition at line 1378 of file pvcamCtrl.hpp.

◆ registerIndiPropertyNew() [1/3]

int MagAOX::app::MagAOXApp< _useINDI >::registerIndiPropertyNew ( pcf::IndiProperty &  prop,
const std::string &  propName,
const pcf::IndiProperty::Type &  propType,
const pcf::IndiProperty::PropertyPermType &  propPerm,
const pcf::IndiProperty::PropertyStateType &  propState,
const pcf::IndiProperty::SwitchRuleType &  propRule,
int(*)(void *, const pcf::IndiProperty &)   
)
inherited

Register an INDI property which is exposed for others to request a New Property for, with a switch rule.

This verison sets up the INDI property according to the arguments.

Returns
0 on success.
-1 on error.
Parameters
[out]propthe property to register
[in]propNamethe name of the property
[in]propTypethe type of the property
[in]propPermthe permissions of the property
[in]propStatethe state of the property
[in]propRulethe switch rule type

◆ registerIndiPropertyNew() [2/3]

int MagAOX::app::MagAOXApp< _useINDI >::registerIndiPropertyNew ( pcf::IndiProperty &  prop,
const std::string &  propName,
const pcf::IndiProperty::Type &  propType,
const pcf::IndiProperty::PropertyPermType &  propPerm,
const pcf::IndiProperty::PropertyStateType &  propState,
int(*)(void *, const pcf::IndiProperty &)   
)
inherited

Register an INDI property which is exposed for others to request a New Property for.

This verison sets up the INDI property according to the arguments.

Returns
0 on success.
-1 on error.
Parameters
[out]propthe property to register
[in]propNamethe name of the property
[in]propTypethe type of the property
[in]propPermthe permissions of the property
[in]propStatethe state of the property

◆ registerIndiPropertyNew() [3/3]

int MagAOX::app::MagAOXApp< _useINDI >::registerIndiPropertyNew ( pcf::IndiProperty &  prop,
int(*)(void *, const pcf::IndiProperty &)   
)
inherited

Register an INDI property which is exposed for others to request a New Property for.

In this version the supplied IndiProperty must be fully set up before passing in.

Returns
0 on success.
-1 on error.
Parameters
[in]propthe property to register, must be fully set up

◆ registerIndiPropertyReadOnly() [1/2]

int MagAOX::app::MagAOXApp< _useINDI >::registerIndiPropertyReadOnly ( pcf::IndiProperty &  prop)
inherited

Register an INDI property which is read only.

This version requires the property be fully set up.

Returns
0 on success.
-1 on error.
Parameters
[in]propthe property to register, must be completely setup

Definition at line 700 of file MagAOXApp.hpp.

◆ registerIndiPropertyReadOnly() [2/2]

int MagAOX::app::MagAOXApp< _useINDI >::registerIndiPropertyReadOnly ( pcf::IndiProperty &  prop,
const std::string &  propName,
const pcf::IndiProperty::Type &  propType,
const pcf::IndiProperty::PropertyPermType &  propPerm,
const pcf::IndiProperty::PropertyStateType &  propState 
)
inherited

Register an INDI property which is read only.

This verison sets up the INDI property according to the arguments.

Returns
0 on success.
-1 on error.
Parameters
[out]propthe property to register, will be configured
[in]propNamethe name of the property
[in]propTypethe type of the property
[in]propPermthe permissions of the property
[in]propStatethe state of the property

Definition at line 709 of file MagAOXApp.hpp.

◆ registerIndiPropertySet()

int MagAOX::app::MagAOXApp< _useINDI >::registerIndiPropertySet ( pcf::IndiProperty &  prop,
const std::string &  devName,
const std::string &  propName,
int(*)(void *, const pcf::IndiProperty &)   
)
inherited

Register an INDI property which is monitored for updates from others.

Returns
0 on success.
-1 on error.
Parameters
[out]propthe property to register
[in]devNamethe device which owns this property
[in]propNamethe name of the property

Definition at line 765 of file MagAOXApp.hpp.

◆ sendGetPropertySetList()

void MagAOX::app::MagAOXApp< _useINDI >::sendGetPropertySetList ( bool  all = false)
inherited

Definition at line 787 of file MagAOXApp.hpp.

◆ sendNewProperty() [1/2]

int MagAOX::app::MagAOXApp< _useINDI >::sendNewProperty ( const pcf::IndiProperty &  ipSend)
protectedinherited

Send a newProperty command to another device (using the INDI Client interface)

Returns
0 on success.
-1 on an error, which will be logged
Parameters
[in]ipSendThe property to send a "new" INDI command for

Definition at line 931 of file MagAOXApp.hpp.

◆ sendNewProperty() [2/2]

int MagAOX::app::MagAOXApp< _useINDI >::sendNewProperty ( const pcf::IndiProperty &  ipSend,
const std::string &  el,
const T &  newVal 
)
protectedinherited

Send a newProperty command to another device (using the INDI Client interface)

Copies the input IndiProperty, then updates the element with the new value.

Returns
0 on success.
-1 on an errory.
Parameters
[in]ipSendThe property to send a "new" INDI command for
[in]elThe element of the property to change
[in]newValThe value to request for the element.

Definition at line 921 of file MagAOXApp.hpp.

◆ sendNewStandardIndiToggle()

int MagAOX::app::MagAOXApp< _useINDI >::sendNewStandardIndiToggle ( const std::string &  device,
const std::string &  property,
bool  onoff 
)
protectedinherited

Send a new property commmand for a standard toggle switch.

Returns
0 on success
-1 on an error, which will be logged.
Parameters
[in]deviceThe device name
[in]propertyThe property name
[in]onoffSwitch state to send: true = on, false = off

Definition at line 938 of file MagAOXApp.hpp.

◆ setCallBack_powerChannel()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::setCallBack_powerChannel ( const pcf::IndiProperty &  ipRecv)
inherited

The callback called by the static version, to actually process the new request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 251 of file dssShutter.hpp.

◆ setCallBack_sensorChannel()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::setCallBack_sensorChannel ( const pcf::IndiProperty &  ipRecv)
inherited

The callback called by the static version, to actually process the new request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 268 of file dssShutter.hpp.

◆ setCallBack_triggerChannel()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::setCallBack_triggerChannel ( const pcf::IndiProperty &  ipRecv)
inherited

The callback called by the static version, to actually process the new request.

Returns
0 on success.
-1 on error.
Parameters
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 284 of file dssShutter.hpp.

◆ setCropMode() [1/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setCropMode ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setCropMode when the derivedT does not have crop mode.

Tag-dispatch resolution of c_stdCamera_cropMode==false will call this function. This prevents requiring derivedT to have its own setCropMode().

Definition at line 774 of file stdCamera.hpp.

◆ setCropMode() [2/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setCropMode ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setCropMode when the derivedT has crop mode.

Tag-dispatch resolution of c_stdCamera_cropMode==true will call this function. Calls derivedT::setCropMode.

Definition at line 768 of file stdCamera.hpp.

◆ setDefaults()

void MagAOX::app::MagAOXApp< _useINDI >::setDefaults ( int  argc,
char **  argv 
)
virtualinherited

Set the paths for config files.

Replaces the mx::application defaults with the MagAO-X config system.

This function parses the CL for "-n" or "--name".

Do not override this unless you intend to depart from the MagAO-X standard.

Parameters
[in]argcstandard command line result specifying number of arguments in argv
[in]argvstandard command line result containing the arguments.

Definition at line 146 of file MagAOXApp.hpp.

◆ setEMGain() [1/3]

int MagAOX::app::pvcamCtrl::setEMGain ( )

Definition at line 604 of file pvcamCtrl.hpp.

◆ setEMGain() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setEMGain ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setEMGain when the derivedT does not have EM Gain.

Tag-dispatch resolution of c_stdCamera_emGain==false will call this function. This prevents requiring derivedT to have its own setEMGain().

Definition at line 684 of file stdCamera.hpp.

◆ setEMGain() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setEMGain ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setEMGain when the derivedT has EM Gain.

Tag-dispatch resolution of c_stdCamera_emGain==true will call this function. Calls derivedT::setEMGain.

Definition at line 678 of file stdCamera.hpp.

◆ setEuidCalled()

int MagAOX::app::MagAOXApp< _useINDI >::setEuidCalled
privateinherited

Set the effective user ID to the called value, i.e. the highest possible.

If setuid is set on the file, this will be super-user privileges.

Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/seteuid.html

Returns
0 on success
-1 on error from setuid().

Definition at line 368 of file MagAOXApp.hpp.

◆ setEuidReal()

int MagAOX::app::MagAOXApp< _useINDI >::setEuidReal
privateinherited

Set the effective user ID to the real value, i.e. the file owner.

Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/seteuid.html

Returns
0 on success
-1 on error from setuid().

Definition at line 377 of file MagAOXApp.hpp.

◆ setExpTime() [1/3]

int MagAOX::app::pvcamCtrl::setExpTime ( )

Definition at line 609 of file pvcamCtrl.hpp.

Referenced by setFPS().

◆ setExpTime() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setExpTime ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setExptime when the derivedT does not use exposure time controls.

Tag-dispatch resolution of c_stdCamera_exptimeCtrl==false will call this function. This prevents requiring derivedT to have its own setExpTime().

Definition at line 703 of file stdCamera.hpp.

◆ setExpTime() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setExpTime ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setExpTime when the derivedT uses exposure time controls.

Tag-dispatch resolution of c_stdCamera_exptimeCtrl==true will call this function. Calls derivedT::setExpTime.

Definition at line 697 of file stdCamera.hpp.

◆ setFPS() [1/3]

int MagAOX::app::pvcamCtrl::setFPS ( )

Definition at line 646 of file pvcamCtrl.hpp.

◆ setFPS() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setFPS ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setFPS when the derivedT does not use FPS controls.

Tag-dispatch resolution of c_stdCamera_hasFPS==false will call this function. This prevents requiring derivedT to have its own setFPS().

Definition at line 722 of file stdCamera.hpp.

◆ setFPS() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setFPS ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setFPS when the derivedT uses FPS controls.

Tag-dispatch resolution of c_stdCamera_fpsCtrl==true will call this function. Calls derivedT::setFPS.

Definition at line 716 of file stdCamera.hpp.

◆ setNextROI() [1/3]

int MagAOX::app::pvcamCtrl::setNextROI ( )

Definition at line 699 of file pvcamCtrl.hpp.

◆ setNextROI() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setNextROI ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setNextROI when the derivedT does not use ROIs.

Tag-dispatch resolution of c_stdCamera_usesROI==false will call this function. This prevents requiring derivedT to have its own setNextROI().

Definition at line 854 of file stdCamera.hpp.

◆ setNextROI() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setNextROI ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setNextROI when the derivedT uses ROIs.

Tag-dispatch resolution of c_stdCamera_usesROI==true will call this function. Calls derivedT::setNextROI.

Definition at line 848 of file stdCamera.hpp.

◆ setReadoutSpeed() [1/3]

int MagAOX::app::pvcamCtrl::setReadoutSpeed ( )

Definition at line 592 of file pvcamCtrl.hpp.

◆ setReadoutSpeed() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setReadoutSpeed ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setReadoutSpeed when the derivedT does not have readout speed control.

Tag-dispatch resolution of c_stdCamera_readoutSpeed==false will call this function. Just returns 0.

Definition at line 646 of file stdCamera.hpp.

◆ setReadoutSpeed() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setReadoutSpeed ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setReadoutSpeed when the derivedT has readout speed control.

Tag-dispatch resolution of c_stdCamera_readoutSpeed==true will call this function. Calls derivedT::setReadoutSpeed.

Definition at line 640 of file stdCamera.hpp.

◆ setShutter() [1/3]

int MagAOX::app::pvcamCtrl::setShutter ( int  sh)

Sets the shutter state, via call to dssShutter::setShutterState(int) [stdCamera interface].

Returns
0 always

Definition at line 706 of file pvcamCtrl.hpp.

◆ setShutter() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setShutter ( int  ss,
const mx::meta::trueFalseT< false > &  f 
)
inherited

Interface to setShutter when the derivedT does not have a shutter.

Tag-dispatch resolution of c_stdCamera_hasShutter==false will call this function. This prevents requiring derivedT to have its own setShutter().

Definition at line 910 of file stdCamera.hpp.

◆ setShutter() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setShutter ( int  ss,
const mx::meta::trueFalseT< true > &  t 
)
inherited

Interface to setShutter when the derivedT has a shutter.

Tag-dispatch resolution of c_stdCamera_hasShutter==true will call this function. Calls derivedT::setShutter.

Definition at line 902 of file stdCamera.hpp.

◆ setShutterState()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::setShutterState ( int  sh)
inherited

Change shutter state.

Sets m_doOpen or m_doShut and signals the appropriate thread.

Returns
0 on success
-1 on error
Parameters
shDesired shutter state. 0 for shut,1 for open

Definition at line 156 of file dssShutter.hpp.

◆ setSigTermHandler()

int MagAOX::app::MagAOXApp< _useINDI >::setSigTermHandler
privateinherited

Sets the handler for SIGTERM, SIGQUIT, and SIGINT.

Definition at line 294 of file MagAOXApp.hpp.

◆ setSynchro() [1/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setSynchro ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setSynchro when the derivedT does not have synchronization.

Tag-dispatch resolution of c_stdCamera_ynchro==false will call this function. This prevents requiring derivedT to have its own setSynchro().

Definition at line 741 of file stdCamera.hpp.

◆ setSynchro() [2/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setSynchro ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setSynchro when the derivedT has synchronization.

Tag-dispatch resolution of c_stdCamera_synchro==true will call this function. Calls derivedT::setSynchro.

Definition at line 735 of file stdCamera.hpp.

◆ setTempControl() [1/3]

int MagAOX::app::pvcamCtrl::setTempControl ( )

Definition at line 582 of file pvcamCtrl.hpp.

◆ setTempControl() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setTempControl ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setTempControl when the derivedT does not have temperature control.

Tag-dispatch resolution of c_stdCamera_tempControl==false will call this function. Prevents requiring derivedT::setTempControl.

Definition at line 627 of file stdCamera.hpp.

◆ setTempControl() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setTempControl ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setTempControl when the derivedT has temperature control.

Tag-dispatch resolution of c_stdCamera_tempControl==true will call this function. Calls derivedT::setTempControl.

Definition at line 621 of file stdCamera.hpp.

◆ setTempSetPt() [1/3]

int MagAOX::app::pvcamCtrl::setTempSetPt ( )

Definition at line 587 of file pvcamCtrl.hpp.

◆ setTempSetPt() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setTempSetPt ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setTempSetPt when the derivedT does not have temperature control.

Tag-dispatch resolution of c_stdCamera_tempControl==false will call this function. Prevents requiring derivedT::setTempSetPt.

Definition at line 608 of file stdCamera.hpp.

◆ setTempSetPt() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setTempSetPt ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setTempSetPt when the derivedT has temperature control.

Tag-dispatch resolution of c_stdCamera_tempControl==true will call this function. Calls derivedT::setTempSetPt.

Definition at line 602 of file stdCamera.hpp.

◆ setupBasicConfig()

void MagAOX::app::MagAOXApp< _useINDI >::setupBasicConfig
virtualinherited

The basic MagAO-X configuration setup method. Should not normally be overridden.

This method sets up the config system with the standard MagAO-X key=value pairs.

Though it is virtual, it should not normally be overridden unless you need to depart from the MagAO-X standard.

Setting up app specific config goes in setupConfig() implemented in the derived class.

Definition at line 158 of file MagAOXApp.hpp.

◆ setupConfig() [1/5]

void MagAOX::app::pvcamCtrl::setupConfig ( )
virtual

Definition at line 343 of file pvcamCtrl.hpp.

◆ setupConfig() [2/5]

int MagAOX::app::dev::telemeter< pvcamCtrl >::setupConfig ( appConfigurator &  config)
inherited

Setup an application configurator for the device section.

Returns
0 on success.
-1 on error (nothing implemented yet)
Parameters
[in]configan application configuration to setup

Definition at line 87 of file telemeter.hpp.

◆ setupConfig() [3/5]

void MagAOX::app::dev::dssShutter< pvcamCtrl >::setupConfig ( mx::app::appConfigurator &  config)
inherited

Setup the configuration system.

This should be called in derivedT::setupConfig as

dssShutter<derivedT>::setupConfig(config);

with appropriate error checking.

Parameters
[out]configthe derived classes configurator

Definition at line 78 of file dssShutter.hpp.

◆ setupConfig() [4/5]

void MagAOX::app::dev::frameGrabber< pvcamCtrl >::setupConfig ( mx::app::appConfigurator &  config)
inherited

Setup the configuration system.

This should be called in derivedT::setupConfig as

framegrabber<derivedT>::setupConfig(config);

with appropriate error checking.

Parameters
[out]configthe derived classes configurator

Definition at line 155 of file frameGrabber.hpp.

◆ setupConfig() [5/5]

void MagAOX::app::dev::stdCamera< pvcamCtrl >::setupConfig ( mx::app::appConfigurator &  config)
inherited

Setup the configuration system.

This should be called in derivedT::setupConfig as

stdCamera<derivedT>::setupConfig(config);

with appropriate error checking.

Parameters
[out]configthe derived classes configurator

Definition at line 477 of file stdCamera.hpp.

◆ setVShiftSpeed() [1/3]

int MagAOX::app::pvcamCtrl::setVShiftSpeed ( )

Definition at line 599 of file pvcamCtrl.hpp.

◆ setVShiftSpeed() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setVShiftSpeed ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to setVShiftSpeed when the derivedT does not have vshift speed control.

Tag-dispatch resolution of c_stdCamera_vShiftSpeed==false will call this function. Just returns 0.

Definition at line 665 of file stdCamera.hpp.

◆ setVShiftSpeed() [3/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::setVShiftSpeed ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to setVShiftSpeed when the derivedT has vshift speed control.

Tag-dispatch resolution of c_stdCamera_vShiftSpeed==true will call this function. Calls derivedT::setVShiftSpeed.

Definition at line 659 of file stdCamera.hpp.

◆ shut()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::shut
inherited

Shut the shutter.

Do not lock the mutex before calling this.

Returns
0 on success
-1 on error
Todo:
need shutter log types
Todo:
need shutter log types

Definition at line 172 of file dssShutter.hpp.

◆ shutdown()

int MagAOX::app::MagAOXApp< _useINDI >::shutdown
inherited

Get the value of the shutdown flag.

Returns
the current value of m_shutdown

Definition at line 136 of file MagAOXApp.hpp.

◆ shutThreadExec()

void MagAOX::app::dev::dssShutter< pvcamCtrl >::shutThreadExec
protectedinherited

Shut thread function.

Runs until m_shutdown is true.

Definition at line 220 of file dssShutter.hpp.

◆ shutThreadStart()

void MagAOX::app::dev::dssShutter< pvcamCtrl >::shutThreadStart ( dssShutter< pvcamCtrl > *  d)
staticprotectedinherited

Shut thread starter function.

Parameters
[in]dpointer to this

Definition at line 215 of file dssShutter.hpp.

◆ st_endOfFrameCallback()

void MagAOX::app::pvcamCtrl::st_endOfFrameCallback ( FRAME_INFO *  finfo,
void *  pvcamCtrlInst 
)
static

Definition at line 1354 of file pvcamCtrl.hpp.

Referenced by configureAcquisition().

◆ st_newCallBack_clearFSMAlert()

int MagAOX::app::MagAOXApp< _useINDI >::st_newCallBack_clearFSMAlert ( void *  app,
const pcf::IndiProperty &  ipRecv 
)
staticprotectedinherited

The static callback function to be registered for requesting to clear the FSM alert.

Returns
0 on success.
-1 on error.
Parameters
[in]appa pointer to this, will be static_cast-ed to MagAOXApp.
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 955 of file MagAOXApp.hpp.

◆ st_newCallBack_stdCamera()

int MagAOX::app::dev::stdCamera< pvcamCtrl >::st_newCallBack_stdCamera ( void *  app,
const pcf::IndiProperty &  ipRecv 
)
staticinherited

The static callback function to be registered for stdCamera properties.

Calls newCallback_stdCamera

Returns
0 on success.
-1 on error.
Parameters
[in]appa pointer to this, will be static_cast-ed to derivedT.
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 586 of file stdCamera.hpp.

◆ st_setCallBack_powerChannel()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::st_setCallBack_powerChannel ( void *  app,
const pcf::IndiProperty &  ipRecv 
)
staticinherited

The static callback function to be registered for shutter power channel changes.

Returns
0 on success.
-1 on error.
Parameters
[in]appa pointer to this, will be static_cast-ed to derivedT.
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 242 of file dssShutter.hpp.

◆ st_setCallBack_sensorChannel()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::st_setCallBack_sensorChannel ( void *  app,
const pcf::IndiProperty &  ipRecv 
)
staticinherited

The static callback function to be registered for shutter sensor channel changes.

Returns
0 on success.
-1 on error.
Parameters
[in]appa pointer to this, will be static_cast-ed to derivedT.
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 259 of file dssShutter.hpp.

◆ st_setCallBack_triggerChannel()

int MagAOX::app::dev::dssShutter< pvcamCtrl >::st_setCallBack_triggerChannel ( void *  app,
const pcf::IndiProperty &  ipRecv 
)
staticinherited

The static callback function to be registered for shutter trigger channel changes.

Returns
0 on success.
-1 on error.
Parameters
[in]appa pointer to this, will be static_cast-ed to derivedT.
[in]ipRecvthe INDI property sent with the the new property request.

Definition at line 275 of file dssShutter.hpp.

◆ startAcquisition()

int MagAOX::app::pvcamCtrl::startAcquisition ( )

Definition at line 850 of file pvcamCtrl.hpp.

◆ startINDI()

int MagAOX::app::MagAOXApp< _useINDI >::startINDI
protectedinherited

Start INDI Communications.

Returns
0 on success
-1 on error. This is fatal.

Definition at line 783 of file MagAOXApp.hpp.

◆ state() [1/2]

stateCodes::stateCodeT MagAOX::app::MagAOXApp< _useINDI >::state
inherited

Get the current state code.

Returns
m_state

Definition at line 480 of file MagAOXApp.hpp.

◆ state() [2/2]

void MagAOX::app::MagAOXApp< _useINDI >::state ( const stateCodes::stateCodeT s,
bool  stateAlert = false 
)
inherited

Set the current state code.

Todo:
move this to a function in stateCodes
Parameters
[in]sThe new application state
[in]stateAlert[optional] flag to set the alert state of the FSM property.

Definition at line 488 of file MagAOXApp.hpp.

◆ stateLogged()

int MagAOX::app::MagAOXApp< _useINDI >::stateLogged
inherited

Updates and returns the value of m_stateLogged. Will be 0 on first call after a state change, >0 afterwards.

This method exists to facilitate logging the reason for a state change once, but not logging it on subsequent event loops. Returns the current value upon entry, but updates before returning so that the next call returns the incremented value. Example usage:

if( connection_failed ) //some condition set this to true
{
if(!stateLogged()) log<text_log>("Not connected");
}
stateCodes::stateCodeT state()
Get the current state code.
Definition: MagAOXApp.hpp:2082
int stateLogged()
Updates and returns the value of m_stateLogged. Will be 0 on first call after a state change,...
Definition: MagAOXApp.hpp:2140
@ NOTCONNECTED
The application is not connected to the device or service.
Definition: stateCodes.hpp:44

In this example, the log entry is made the first time the state changes. If there are no changes to a different state in the mean time, then when the event loop gets here again and decides it is not connected, the log entry will not be made.

Returns
current value of m_stateLogged, that is the value before it is incremented.

Definition at line 509 of file MagAOXApp.hpp.

◆ stateString() [1/2]

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::stateString ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to stateString when the derivedT does not provide it.

Tag-dispatch resolution of c_stdCamera_usesStateString==false will call this function. returns "".

Definition at line 931 of file stdCamera.hpp.

◆ stateString() [2/2]

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::stateString ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to stateString when the derivedT provides it.

Tag-dispatch resolution of c_stdCamera_usesStateString==true will call this function. Calls derivedT::stateString.

Definition at line 925 of file stdCamera.hpp.

◆ stateStringValid() [1/2]

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::stateStringValid ( const mx::meta::trueFalseT< false > &  f)
inherited

Interface to stateStringValid when the derivedT does not provide it.

Tag-dispatch resolution of c_stdCamera_usesStateString==false will call this function. returns false.

Definition at line 943 of file stdCamera.hpp.

◆ stateStringValid() [2/2]

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::stateStringValid ( const mx::meta::trueFalseT< true > &  t)
inherited

Interface to stateStringValid when the derivedT provides it.

Tag-dispatch resolution of c_stdCamera_usesStateString==true will call this function. Calls derivedT::stateStringValid.

Definition at line 937 of file stdCamera.hpp.

◆ telem() [1/2]

int MagAOX::app::dev::telemeter< pvcamCtrl >::telem
inherited

Make a telemetry recording, for an empty record.

Wrapper for logManager::log, which updates telT::lastRecord.

Template Parameters
logTthe log entry type
retvalthe value returned by this method.

Definition at line 80 of file telemeter.hpp.

◆ telem() [2/2]

int MagAOX::app::dev::telemeter< pvcamCtrl >::telem ( const typename telT::messageT &  msg)
inherited

Make a telemetry recording.

Wrapper for logManager::log, which updates telT::lastRecord.

Template Parameters
logTthe log entry type
retvalthe value returned by this method.
Parameters
[in]msgthe data to log

Definition at line 70 of file telemeter.hpp.

◆ threadStart()

int MagAOX::app::MagAOXApp< _useINDI >::threadStart ( std::thread &  thrd,
bool &  thrdInit,
pid_t &  tpid,
pcf::IndiProperty &  thProp,
int  thrdPrio,
const std::string &  cpuset,
const std::string &  thrdName,
thisPtr *  thrdThis,
Function &&  thrdStart 
)
inherited

Start a thread, using this class's privileges to set priority, etc.

The thread initialization synchronizer bool is set to true at the beginning of this function, then is set to false once all initialization is complete. The thread exec function should wait until this is false before doing anything except setting the pid. This is to avoid privilege escalation bugs.

The interface of the thread start function is:

static void impl::myThreadStart( impl * o )
{
o->myThreadExec(); //A member function which actually executes the thread
}

where impl is the derived class, and mThreadStart and myThreadExec are members of impl.

Returns
0 on success
-1 on error
Parameters
[out]thrdThe thread object to start executing
thrdInit[in/out] The thread initilization synchronizer.
tpid[in/out] The thread pid to be filled in by thrdStart immediately upon call
thProp[in/out] The INDI property to publish the thread details
[in]thrdPrioThe r/t priority to set for this thread
[in]cpusetthe cpuset to place this thread on. Ignored if "".
[in]thrdNameThe name of the thread (just for logging)
[in]thrdThisThe `this` pointer to pass to the thread starter function
[in]thrdStartThe thread starting function, a static function taking a `this` pointer as argument.

Definition at line 450 of file MagAOXApp.hpp.

◆ unlockPID()

int MagAOX::app::MagAOXApp< _useINDI >::unlockPID
protectedinherited

Remove the PID file.

Definition at line 410 of file MagAOXApp.hpp.

◆ updateIfChanged() [1/4]

void MagAOX::app::MagAOXApp< _useINDI >::updateIfChanged ( pcf::IndiProperty &  p,
const std::string &  el,
const char *  newVal,
pcf::IndiProperty::PropertyStateType  ipState = pcf::IndiProperty::Ok 
)
protectedinherited

Update an INDI property element value if it has changed.

Will only peform a SetProperty if the new element value has changed compared to the stored value, or if the property state has changed.

This comparison is done in the true type of the value.

This is a specialization for const char * to std::string.

For a property with multiple elements, you should use the vector version to minimize network traffic. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
p[in/out] The property containing the element to possibly update
[in]elThe element name
[in]newValthe new value

Definition at line 850 of file MagAOXApp.hpp.

◆ updateIfChanged() [2/4]

void MagAOX::app::MagAOXApp< _useINDI >::updateIfChanged ( pcf::IndiProperty &  p,
const std::string &  el,
const std::vector< T > &  newVals,
pcf::IndiProperty::PropertyStateType  ipState = pcf::IndiProperty::Ok 
)
protectedinherited

Update an INDI property if values have changed.

Will only peform a SetProperty if at least one value has changed compared to the stored value, or if the property state has changed.

Constructs the element names for each value as elX where X is the index of the vector.

This comparison is done in the true type of the value.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
p[in/out] The property containing the element to possibly update
[in]elBeginning of each element name
[in]newValsthe new values
[in]ipState[optional] the new state

Definition at line 880 of file MagAOXApp.hpp.

◆ updateIfChanged() [3/4]

void MagAOX::app::MagAOXApp< _useINDI >::updateIfChanged ( pcf::IndiProperty &  p,
const std::string &  el,
const T &  newVal,
pcf::IndiProperty::PropertyStateType  ipState = pcf::IndiProperty::Ok 
)
protectedinherited

Update an INDI property element value if it has changed.

Will only peform a SetProperty if the new element value has changed compared to the stored value, or if the property state has changed.

This comparison is done in the true type of the value.

For a property with multiple elements, you should use the vector version to minimize network traffic.

Parameters
p[in/out] The property containing the element to possibly update
[in]elThe element name
[in]newValthe new value

Definition at line 832 of file MagAOXApp.hpp.

◆ updateIfChanged() [4/4]

void MagAOX::app::MagAOXApp< _useINDI >::updateIfChanged ( pcf::IndiProperty &  p,
const std::vector< std::string > &  els,
const std::vector< T > &  newVals 
)
protectedinherited

Update an INDI property if values have changed.

Will only peform a SetProperty if at least one value has changed compared to the stored value, or if the property state has changed.

This comparison is done in the true type of the value.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
p[in/out] The property containing the element to possibly update
[in]elsString vector of element names
[in]newValsthe new values

Definition at line 897 of file MagAOXApp.hpp.

◆ updateINDI() [1/2]

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::updateINDI
inherited

Update the INDI properties for this device controller.

You should call this once per main loop. It is not called automatically.

Returns
0 on success.
-1 on error.

Definition at line 270 of file frameGrabber.hpp.

◆ updateINDI() [2/2]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::updateINDI
inherited

Update the INDI properties for this device controller.

You should call this once per main loop. It is not called automatically.

Returns
0 on success.
-1 on error.

Definition at line 952 of file stdCamera.hpp.

◆ updateSwitchIfChanged()

void MagAOX::app::MagAOXApp< _useINDI >::updateSwitchIfChanged ( pcf::IndiProperty &  p,
const std::string &  el,
const pcf::IndiElement::SwitchStateType &  newVal,
pcf::IndiProperty::PropertyStateType  ipState = pcf::IndiProperty::Ok 
)
protectedinherited

Update an INDI switch element value if it has changed.

Will only peform a SetProperty if the new element switch state has changed, or the propery state has changed.

Parameters
p[in/out] The property containing the element to possibly update
[in]elThe element name
[in]newValthe new value

Definition at line 861 of file MagAOXApp.hpp.

◆ whilePowerOff() [1/3]

int MagAOX::app::dev::dssShutter< pvcamCtrl >::whilePowerOff
inherited

Actions while powered off.

This should be called in derivedT::whilePowerOff as

dssShutter<derivedT>::whilePowerOff();

with appropriate error checking.

Returns
0 on success
-1 on error, which is logged.

Definition at line 149 of file dssShutter.hpp.

◆ whilePowerOff() [2/3]

int MagAOX::app::dev::stdCamera< pvcamCtrl >::whilePowerOff
inherited

Actions while powered off.

This should be called from the derived's whilePowerOff() as in

stdCamera<derivedT>::whilePowerOff();

with appropriate error checking.

Returns
0 on success
-1 on error, which is logged.

Definition at line 556 of file stdCamera.hpp.

◆ whilePowerOff() [3/3]

int MagAOX::app::MagAOXApp< _useINDI >::whilePowerOff
protectedvirtualinherited

This method is called while the power is off, once per FSM loop.

Returns
0 on success.
-1 on any error which means the app should exit.

Reimplemented in MagAOX::app::zaberLowLevel, MagAOX::app::irisaoCtrl, MagAOX::app::bmcCtrl, and MagAOX::app::alpaoCtrl.

Definition at line 1012 of file MagAOXApp.hpp.

Friends And Related Function Documentation

◆ dev::dssShutter< pvcamCtrl >

friend class dev::dssShutter< pvcamCtrl >
friend

Definition at line 84 of file pvcamCtrl.hpp.

◆ dev::frameGrabber< pvcamCtrl >

friend class dev::frameGrabber< pvcamCtrl >
friend

Definition at line 84 of file pvcamCtrl.hpp.

◆ dev::stdCamera< pvcamCtrl >

friend class dev::stdCamera< pvcamCtrl >
friend

Definition at line 84 of file pvcamCtrl.hpp.

◆ dev::telemeter< pvcamCtrl >

friend class dev::telemeter< pvcamCtrl >
friend

Definition at line 84 of file pvcamCtrl.hpp.

◆ pvcamCtrl_test

friend class pvcamCtrl_test
friend

Definition at line 84 of file pvcamCtrl.hpp.

Member Data Documentation

◆ c_frameGrabber_flippable

constexpr bool MagAOX::app::pvcamCtrl::c_frameGrabber_flippable = false
staticconstexpr

app:dev config to tell framegrabber this camera can be flipped

Definition at line 125 of file pvcamCtrl.hpp.

◆ c_stdCamera_cropMode

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_cropMode = false
staticconstexpr

app:dev config to tell stdCamera to expose Crop Mode controls

Definition at line 119 of file pvcamCtrl.hpp.

◆ c_stdCamera_emGain

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_emGain = false
staticconstexpr

app::dev config to tell stdCamera to expose EM gain controls

Definition at line 105 of file pvcamCtrl.hpp.

◆ c_stdCamera_exptimeCtrl

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_exptimeCtrl = true
staticconstexpr

app::dev config to tell stdCamera to expose exposure time controls

Definition at line 107 of file pvcamCtrl.hpp.

◆ c_stdCamera_fps

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_fps = true
staticconstexpr

app::dev config to tell stdCamera not to expose FPS status

Definition at line 111 of file pvcamCtrl.hpp.

◆ c_stdCamera_fpsCtrl

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_fpsCtrl = true
staticconstexpr

app::dev config to tell stdCamera not to expose FPS controls

Definition at line 109 of file pvcamCtrl.hpp.

◆ c_stdCamera_hasShutter

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_hasShutter = true
staticconstexpr

app:dev config to tell stdCamera to expose shutter controls

Definition at line 121 of file pvcamCtrl.hpp.

◆ c_stdCamera_readoutSpeed

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_readoutSpeed = true
staticconstexpr

app::dev config to tell stdCamera to expose readout speed controls

Definition at line 101 of file pvcamCtrl.hpp.

◆ c_stdCamera_synchro

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_synchro = false
staticconstexpr

app::dev config to tell stdCamera to not expose synchro mode controls

Definition at line 113 of file pvcamCtrl.hpp.

◆ c_stdCamera_temp

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_temp = false
staticconstexpr

app::dev config to tell stdCamera to expose temperature

Definition at line 99 of file pvcamCtrl.hpp.

◆ c_stdCamera_tempControl

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_tempControl = false
staticconstexpr

app::dev config to tell stdCamera to expose temperature controls

Definition at line 97 of file pvcamCtrl.hpp.

◆ c_stdCamera_usesModes

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_usesModes = false
staticconstexpr

app:dev config to tell stdCamera not to expose mode controls

Definition at line 115 of file pvcamCtrl.hpp.

◆ c_stdCamera_usesROI

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_usesROI = true
staticconstexpr

app:dev config to tell stdCamera to expose ROI controls

Definition at line 117 of file pvcamCtrl.hpp.

◆ c_stdCamera_usesStateString

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_usesStateString = false
staticconstexpr

app::dev confg to tell stdCamera to expose the state string property

Definition at line 123 of file pvcamCtrl.hpp.

◆ c_stdCamera_vShiftSpeed

constexpr bool MagAOX::app::pvcamCtrl::c_stdCamera_vShiftSpeed = false
staticconstexpr

app:dev config to tell stdCamera to expose vertical shift speed control

Definition at line 103 of file pvcamCtrl.hpp.

◆ m_8bit

bool MagAOX::app::pvcamCtrl::m_8bit {false}
protected

Definition at line 177 of file pvcamCtrl.hpp.

Referenced by configureAcquisition(), and loadImageIntoStream().

◆ m_adcSpeed

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_adcSpeed
protectedinherited

Definition at line 291 of file stdCamera.hpp.

◆ m_allDefsReceived

bool MagAOX::app::MagAOXApp< _useINDI >::m_allDefsReceived
protectedinherited

Flag indicating that all registered Set properties have been updated since last Get.

Definition at line 576 of file MagAOXApp.hpp.

◆ m_atimes

mx::sigproc::circularBufferIndex<timespec, cbIndexT> MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_atimes
protectedinherited

Definition at line 122 of file frameGrabber.hpp.

◆ m_atimesD

std::vector<double> MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_atimesD
protectedinherited

Definition at line 125 of file frameGrabber.hpp.

◆ m_calibDir

std::string MagAOX::app::MagAOXApp< _useINDI >::m_calibDir
protectedinherited

The path to calibration files for MagAOX.

Definition at line 94 of file MagAOXApp.hpp.

◆ m_cameraModes

cameraConfigMap MagAOX::app::dev::stdCamera< pvcamCtrl >::m_cameraModes
protectedinherited

Map holding the possible camera mode configurations.

Definition at line 239 of file stdCamera.hpp.

◆ m_camName

std::string MagAOX::app::pvcamCtrl::m_camName
protected

Camera name, filled in as part of opening the camera.

Definition at line 147 of file pvcamCtrl.hpp.

Referenced by connect().

◆ m_ccdTemp

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_ccdTemp
protectedinherited

The current temperature, in C.

Definition at line 258 of file stdCamera.hpp.

◆ m_ccdTempSetpt

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_ccdTempSetpt
protectedinherited

The desired temperature, in C.

Definition at line 260 of file stdCamera.hpp.

◆ m_circBuff

uns8* MagAOX::app::pvcamCtrl::m_circBuff {nullptr}
protected

Definition at line 180 of file pvcamCtrl.hpp.

Referenced by configureAcquisition(), and startAcquisition().

◆ m_circBuffBytes

uns32 MagAOX::app::pvcamCtrl::m_circBuffBytes {0}
protected

Definition at line 179 of file pvcamCtrl.hpp.

Referenced by configureAcquisition(), and startAcquisition().

◆ m_circBuffLength

uint32_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_circBuffLength
protectedinherited

Length of the circular buffer, in frames.

Definition at line 93 of file frameGrabber.hpp.

◆ m_circBuffMaxBytes

uint32_t MagAOX::app::pvcamCtrl::m_circBuffMaxBytes {536870912}
protected

Max size in bytes of the circular buffer to allocate. Default is 0.5 GB.

Definition at line 141 of file pvcamCtrl.hpp.

Referenced by configureAcquisition(), and loadConfigImpl().

◆ m_configBase

std::string MagAOX::app::MagAOXApp< _useINDI >::m_configBase
protectedinherited

The name of a base config class for this app (minus .conf).

Definition at line 92 of file MagAOXApp.hpp.

◆ m_configDir

std::string MagAOX::app::MagAOXApp< _useINDI >::m_configDir
protectedinherited

The path to configuration files for MagAOX.

Definition at line 90 of file MagAOXApp.hpp.

◆ m_configName

std::string MagAOX::app::MagAOXApp< _useINDI >::m_configName
protectedinherited

The name of the configuration file (minus .conf).

Definition at line 88 of file MagAOXApp.hpp.

◆ m_cpusetPath

std::string MagAOX::app::MagAOXApp< _useINDI >::m_cpusetPath
protectedinherited

Definition at line 421 of file MagAOXApp.hpp.

◆ m_cropMode

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::m_cropMode
protectedinherited

Status of crop mode ROIs, if enabled for this camera.

Definition at line 439 of file stdCamera.hpp.

◆ m_cropModeSet

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::m_cropModeSet
protectedinherited

Desired status of crop mode ROIs, if enabled for this camera.

Definition at line 440 of file stdCamera.hpp.

◆ m_currentFlip

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_currentFlip
protectedinherited

Definition at line 102 of file frameGrabber.hpp.

◆ m_currentROI

roi MagAOX::app::dev::stdCamera< pvcamCtrl >::m_currentROI
protectedinherited

Definition at line 367 of file stdCamera.hpp.

◆ m_currImageTimestamp

timespec MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_currImageTimestamp
protectedinherited

The timestamp of the current image.

Definition at line 114 of file frameGrabber.hpp.

◆ m_dataType

uint8_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_dataType
protectedinherited

The ImageStreamIO type code.

Definition at line 107 of file frameGrabber.hpp.

◆ m_default_bin_x

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_default_bin_x
protectedinherited

Power-on ROI x binning.

Definition at line 399 of file stdCamera.hpp.

◆ m_default_bin_y

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_default_bin_y
protectedinherited

Power-on ROI y binning.

Definition at line 400 of file stdCamera.hpp.

◆ m_default_h

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_default_h
protectedinherited

Power-on ROI height.

Definition at line 398 of file stdCamera.hpp.

◆ m_default_w

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_default_w
protectedinherited

Power-on ROI width.

Definition at line 397 of file stdCamera.hpp.

◆ m_default_x

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_default_x
protectedinherited

Power-on ROI center x coordinate.

Definition at line 395 of file stdCamera.hpp.

◆ m_default_y

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_default_y
protectedinherited

Power-on ROI center y coordinate.

Definition at line 396 of file stdCamera.hpp.

◆ m_defaultFlip

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_defaultFlip
protectedinherited

Definition at line 98 of file frameGrabber.hpp.

◆ m_defaultReadoutSpeed

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_defaultReadoutSpeed
protectedinherited

The default readout speed of the camera.

Definition at line 245 of file stdCamera.hpp.

◆ m_defaultVShiftSpeed

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_defaultVShiftSpeed
protectedinherited

The default readout speed of the camera.

Definition at line 246 of file stdCamera.hpp.

◆ m_dioDevice

std::string MagAOX::app::dev::dssShutter< pvcamCtrl >::m_dioDevice
protectedinherited

The device controlling this shutter's digital I/O.

Definition at line 47 of file dssShutter.hpp.

◆ m_doOpen

bool MagAOX::app::dev::dssShutter< pvcamCtrl >::m_doOpen
protectedinherited

Flag telling the open thread that it should actually open the shutter, not just go back to sleep.

Definition at line 186 of file dssShutter.hpp.

◆ m_doShut

bool MagAOX::app::dev::dssShutter< pvcamCtrl >::m_doShut
protectedinherited

Flag telling the shut thread that it should actually shut the shutter, not just go back to sleep.

Definition at line 204 of file dssShutter.hpp.

◆ m_driverCtrlName

std::string MagAOX::app::MagAOXApp< _useINDI >::m_driverCtrlName
protectedinherited

Full path name of the INDI driver control FIFO.

This is currently only used to signal restarts.

Definition at line 587 of file MagAOXApp.hpp.

◆ m_driverInName

std::string MagAOX::app::MagAOXApp< _useINDI >::m_driverInName
protectedinherited

Full path name of the INDI driver input FIFO.

Definition at line 579 of file MagAOXApp.hpp.

◆ m_driverOutName

std::string MagAOX::app::MagAOXApp< _useINDI >::m_driverOutName
protectedinherited

Full path name of the INDI driver output FIFO.

Definition at line 582 of file MagAOXApp.hpp.

◆ m_dummy_c

char MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_dummy_c
protectedinherited

Definition at line 131 of file frameGrabber.hpp.

◆ m_dummy_cnt

uint64_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_dummy_cnt
protectedinherited

Definition at line 130 of file frameGrabber.hpp.

◆ m_dummy_ts

timespec MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_dummy_ts
protectedinherited

Definition at line 129 of file frameGrabber.hpp.

◆ m_emGain

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_emGain
protectedinherited

The camera's current EM gain (if available).

Definition at line 294 of file stdCamera.hpp.

◆ m_emGainSet

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_emGainSet
protectedinherited

The camera's EM gain, as set by the user.

Definition at line 295 of file stdCamera.hpp.

◆ m_euidCalled

uid_t MagAOX::app::MagAOXApp< _useINDI >::m_euidCalled
privateinherited

The user id of the process as called (i.e. the higher privileged id of the owner, root if setuid).

Definition at line 315 of file MagAOXApp.hpp.

◆ m_euidReal

uid_t MagAOX::app::MagAOXApp< _useINDI >::m_euidReal
privateinherited

The real user id of the proces (i.e. the lower privileged id of the user)

Definition at line 314 of file MagAOXApp.hpp.

◆ m_expTime

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_expTime
protectedinherited

The current exposure time, in seconds.

Definition at line 312 of file stdCamera.hpp.

◆ m_expTimeSet

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_expTimeSet
protectedinherited

The exposure time, in seconds, as set by user.

Definition at line 313 of file stdCamera.hpp.

◆ m_fgCpuset

std::string MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_fgCpuset
protectedinherited

The cpuset to assign the framegrabber thread to. Not used if empty, the default.

Definition at line 91 of file frameGrabber.hpp.

◆ m_fgThread

std::thread MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_fgThread
protectedinherited

A separate thread for the actual framegrabbings.

Definition at line 230 of file frameGrabber.hpp.

◆ m_fgThreadID

pid_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_fgThreadID
protectedinherited

The ID of the framegrabber thread.

Definition at line 226 of file frameGrabber.hpp.

◆ m_fgThreadInit

bool MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_fgThreadInit
protectedinherited

Synchronizer for thread startup, to allow priority setting to finish.

Definition at line 224 of file frameGrabber.hpp.

◆ m_fgThreadPrio

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_fgThreadPrio
protectedinherited

Priority of the framegrabber thread, should normally be > 00.

Definition at line 90 of file frameGrabber.hpp.

◆ m_fgThreadProp

pcf::IndiProperty MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_fgThreadProp
protectedinherited

The property to hold the f.g. thread details.

Definition at line 228 of file frameGrabber.hpp.

◆ m_fps

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_fps
protectedinherited

The current FPS.

Definition at line 319 of file stdCamera.hpp.

◆ m_fpsSet

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_fpsSet
protectedinherited

The commanded fps, as set by user.

Definition at line 320 of file stdCamera.hpp.

◆ m_frameInfo

FRAME_INFO MagAOX::app::pvcamCtrl::m_frameInfo
protected

Definition at line 182 of file pvcamCtrl.hpp.

Referenced by endOfFrameCallback().

◆ m_frSemaphore

sem_t MagAOX::app::pvcamCtrl::m_frSemaphore
protected

Semaphore used to signal that a frame is ready.

Definition at line 184 of file pvcamCtrl.hpp.

Referenced by acquireAndCheckValid(), appStartup(), and endOfFrameCallback().

◆ m_full_bin_x

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_bin_x
protectedinherited

The x-binning in the full ROI.

Definition at line 406 of file stdCamera.hpp.

◆ m_full_bin_y

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_bin_y
protectedinherited

The y-binning in the full ROI.

Definition at line 407 of file stdCamera.hpp.

◆ m_full_currbin_h

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_currbin_h
protectedinherited

The current-binning full ROI height.

Definition at line 412 of file stdCamera.hpp.

◆ m_full_currbin_w

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_currbin_w
protectedinherited

The current-binning full ROI width.

Definition at line 411 of file stdCamera.hpp.

◆ m_full_currbin_x

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_currbin_x
protectedinherited

The current-binning full ROI center x coordinate.

Definition at line 409 of file stdCamera.hpp.

◆ m_full_currbin_y

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_currbin_y
protectedinherited

The current-binning full ROI center y coordinate.

Definition at line 410 of file stdCamera.hpp.

◆ m_full_h

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_h
protectedinherited

The full ROI height.

Definition at line 405 of file stdCamera.hpp.

◆ m_full_w

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_w
protectedinherited

The full ROI width.

Definition at line 404 of file stdCamera.hpp.

◆ m_full_x

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_x
protectedinherited

The full ROI center x coordinate.

Definition at line 402 of file stdCamera.hpp.

◆ m_full_y

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_full_y
protectedinherited

The full ROI center y coordinate.

Definition at line 403 of file stdCamera.hpp.

◆ m_gitAlert

bool MagAOX::app::MagAOXApp< _useINDI >::m_gitAlert
privateinherited

Definition at line 472 of file MagAOXApp.hpp.

◆ m_handle

int16 MagAOX::app::pvcamCtrl::m_handle { -1 }
protected

Camera handle, set when camera is opened.

Definition at line 145 of file pvcamCtrl.hpp.

Referenced by appShutdown(), configureAcquisition(), connect(), dumpEnum(), fillSpeedTable(), getTemp(), loadImageIntoStream(), reconfig(), setExpTime(), and startAcquisition().

◆ m_height

uint32_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_height
protectedinherited

The height of the image, once deinterlaced etc.

Definition at line 105 of file frameGrabber.hpp.

◆ m_imageStream

IMAGE* MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_imageStream
protectedinherited

The ImageStreamIO shared memory buffer.

Definition at line 118 of file frameGrabber.hpp.

◆ m_indiDriver

indiDriver<MagAOXApp>* MagAOX::app::MagAOXApp< _useINDI >::m_indiDriver
inherited

The INDI driver wrapper. Constructed and initialized by execute, which starts and stops communications.

Todo:
instead of making this public, provide an accessor.

Definition at line 537 of file MagAOXApp.hpp.

◆ m_indiMutex

std::mutex MagAOX::app::MagAOXApp< _useINDI >::m_indiMutex
inherited

Mutex for locking INDI communications.

Definition at line 540 of file MagAOXApp.hpp.

◆ m_indiNewCallBacks

std::unordered_map< std::string, indiCallBack> MagAOX::app::MagAOXApp< _useINDI >::m_indiNewCallBacks
protectedinherited

Map to hold the NewProperty indiCallBacks for this App, with fast lookup by property name.

The key for these is the property name.

Definition at line 567 of file MagAOXApp.hpp.

◆ m_indiP_clearFSMAlert

pcf::IndiProperty MagAOX::app::MagAOXApp< _useINDI >::m_indiP_clearFSMAlert
protectedinherited

indi Property to clear an FSM alert.

Definition at line 948 of file MagAOXApp.hpp.

◆ m_indiP_cropMode

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_cropMode
protectedinherited

Property used to toggle crop mode on and off.

Definition at line 442 of file stdCamera.hpp.

◆ m_indiP_emGain

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_emGain
protectedinherited

Definition at line 301 of file stdCamera.hpp.

◆ m_indiP_exptime

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_exptime
protectedinherited

Definition at line 322 of file stdCamera.hpp.

◆ m_indiP_fps

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_fps
protectedinherited

Definition at line 324 of file stdCamera.hpp.

◆ m_indiP_frameSize

pcf::IndiProperty MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_indiP_frameSize
protectedinherited

Property used to report the current frame size.

Definition at line 258 of file frameGrabber.hpp.

◆ m_indiP_fullROI

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_fullROI
protectedinherited

Property used to preset the full ROI dimensions.

Definition at line 421 of file stdCamera.hpp.

◆ m_indiP_mode

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_mode
protectedinherited

Property used to report the current mode.

Definition at line 347 of file stdCamera.hpp.

◆ m_indiP_powerChannel [1/2]

pcf::IndiProperty MagAOX::app::dev::dssShutter< pvcamCtrl >::m_indiP_powerChannel
protectedinherited

Property used to monitor the shutter's power state.

Definition at line 231 of file dssShutter.hpp.

◆ m_indiP_powerChannel [2/2]

pcf::IndiProperty MagAOX::app::MagAOXApp< _useINDI >::m_indiP_powerChannel
protectedinherited

INDI property used to communicate power state.

Definition at line 998 of file MagAOXApp.hpp.

◆ m_indiP_readoutSpeed

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_readoutSpeed
protectedinherited

Definition at line 298 of file stdCamera.hpp.

◆ m_indiP_reconfig

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_reconfig
protectedinherited

Request switch which forces the framegrabber to go through the reconfigure process.

Definition at line 349 of file stdCamera.hpp.

◆ m_indiP_roi_bin_x

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_bin_x
protectedinherited

Property used to set the ROI x binning.

Definition at line 418 of file stdCamera.hpp.

◆ m_indiP_roi_bin_y

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_bin_y
protectedinherited

Property used to set the ROI y binning.

Definition at line 419 of file stdCamera.hpp.

◆ m_indiP_roi_check

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_check
protectedinherited

Property used to trigger checking the target ROI.

Definition at line 423 of file stdCamera.hpp.

◆ m_indiP_roi_default

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_default
protectedinherited

Property used to trigger setting the default and startup ROI.

Definition at line 431 of file stdCamera.hpp.

◆ m_indiP_roi_full

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_full
protectedinherited

Property used to trigger setting the full ROI.

Definition at line 427 of file stdCamera.hpp.

◆ m_indiP_roi_fullbin

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_fullbin
protectedinherited

Property used to trigger setting the full in current binning ROI.

Definition at line 428 of file stdCamera.hpp.

◆ m_indiP_roi_h

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_h
protectedinherited

Property used to set the ROI height.

Definition at line 417 of file stdCamera.hpp.

◆ m_indiP_roi_last

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_last
protectedinherited

Property used to trigger setting the last ROI.

Definition at line 430 of file stdCamera.hpp.

◆ m_indiP_roi_loadlast

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_loadlast
protectedinherited

Property used to trigger loading the last ROI as the target.

Definition at line 429 of file stdCamera.hpp.

◆ m_indiP_roi_set

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_set
protectedinherited

Property used to trigger setting the ROI.

Definition at line 425 of file stdCamera.hpp.

◆ m_indiP_roi_w

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_w
protectedinherited

Property used to set the ROI width.

Definition at line 416 of file stdCamera.hpp.

◆ m_indiP_roi_x

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_x
protectedinherited

Property used to set the ROI x center coordinate.

Definition at line 414 of file stdCamera.hpp.

◆ m_indiP_roi_y

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_roi_y
protectedinherited

Property used to set the ROI x center coordinate.

Definition at line 415 of file stdCamera.hpp.

◆ m_indiP_sensorChannel

pcf::IndiProperty MagAOX::app::dev::dssShutter< pvcamCtrl >::m_indiP_sensorChannel
protectedinherited

Property used to monitor the shutter's hall sensor.

Definition at line 232 of file dssShutter.hpp.

◆ m_indiP_shmimName

pcf::IndiProperty MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_indiP_shmimName
protectedinherited

Property used to report the shmim buffer name.

Definition at line 256 of file frameGrabber.hpp.

◆ m_indiP_shutter

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_shutter
protectedinherited

Property used to control the shutter, a switch.

Definition at line 453 of file stdCamera.hpp.

◆ m_indiP_shutterStatus

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_shutterStatus
protectedinherited

State of the shutter. 0 = shut, 1 = open, -1 = unknown.

Property to report shutter status

Definition at line 452 of file stdCamera.hpp.

◆ m_indiP_state

pcf::IndiProperty MagAOX::app::MagAOXApp< _useINDI >::m_indiP_state
protectedinherited

indi Property to report the application state.

Definition at line 945 of file MagAOXApp.hpp.

◆ m_indiP_stateString

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_stateString
protectedinherited

Definition at line 461 of file stdCamera.hpp.

◆ m_indiP_synchro

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_synchro
protectedinherited

Definition at line 335 of file stdCamera.hpp.

◆ m_indiP_temp

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_temp
protectedinherited

Definition at line 269 of file stdCamera.hpp.

◆ m_indiP_tempcont

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_tempcont
protectedinherited

Definition at line 270 of file stdCamera.hpp.

◆ m_indiP_tempstat

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_tempstat
protectedinherited

Definition at line 271 of file stdCamera.hpp.

◆ m_indiP_timing

pcf::IndiProperty MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_indiP_timing
protectedinherited

Definition at line 260 of file frameGrabber.hpp.

◆ m_indiP_triggerChannel

pcf::IndiProperty MagAOX::app::dev::dssShutter< pvcamCtrl >::m_indiP_triggerChannel
protectedinherited

Property used to monitor and set the shutter's trigger.

Definition at line 233 of file dssShutter.hpp.

◆ m_indiP_vShiftSpeed

pcf::IndiProperty MagAOX::app::dev::stdCamera< pvcamCtrl >::m_indiP_vShiftSpeed
protectedinherited

Definition at line 299 of file stdCamera.hpp.

◆ m_indiSetCallBacks

std::unordered_map< std::string, indiCallBack> MagAOX::app::MagAOXApp< _useINDI >::m_indiSetCallBacks
protectedinherited

Map to hold the SetProperty indiCallBacks for this App, with fast lookup by property name.

The key for these is device.name

Definition at line 572 of file MagAOXApp.hpp.

◆ m_lastROI

roi MagAOX::app::dev::stdCamera< pvcamCtrl >::m_lastROI
protectedinherited

Definition at line 369 of file stdCamera.hpp.

◆ m_latencyCircBuffMaxLength

uint16_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_latencyCircBuffMaxLength
protectedinherited

Maximum length of the latency measurement circular buffers.

Definition at line 95 of file frameGrabber.hpp.

◆ m_latencyCircBuffMaxTime

float MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_latencyCircBuffMaxTime
protectedinherited

Maximum time of the latency meaurement circular buffers.

Definition at line 96 of file frameGrabber.hpp.

◆ m_log

MagAOXApp< _useINDI >::logManagerT MagAOX::app::MagAOXApp< _useINDI >::m_log
staticinherited

Definition at line 242 of file MagAOXApp.hpp.

◆ m_loopPause

unsigned long MagAOX::app::MagAOXApp< _useINDI >::m_loopPause
protectedinherited

The time in nanoseconds to pause the main loop. The appLogic() function of the derived class is called every m_loopPause nanoseconds. Default is 1,000,000,000 ns. Config with loopPause=X.

Definition at line 100 of file MagAOXApp.hpp.

◆ m_maxEMGain

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxEMGain
protectedinherited

The configurable maximum EM gain. To be enforced in derivedT.

Definition at line 296 of file stdCamera.hpp.

◆ m_maxExpTime

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxExpTime
protectedinherited

The maximum exposure time, used for INDI attributes.

Definition at line 309 of file stdCamera.hpp.

◆ m_maxFPS

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxFPS
protectedinherited

The maximum FPS, used for INDI attributes.

Definition at line 316 of file stdCamera.hpp.

◆ m_maxInterval

double MagAOX::app::dev::telemeter< pvcamCtrl >::m_maxInterval
inherited

The maximum interval, in seconds, between telemetry records. Default is 10.0 seconds.

Definition at line 58 of file telemeter.hpp.

◆ m_maxROIBinning_x

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxROIBinning_x
protectedinherited

Definition at line 388 of file stdCamera.hpp.

◆ m_maxROIBinning_y

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxROIBinning_y
protectedinherited

Definition at line 392 of file stdCamera.hpp.

◆ m_maxROIHeight

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxROIHeight
protectedinherited

Definition at line 384 of file stdCamera.hpp.

◆ m_maxROIWidth

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxROIWidth
protectedinherited

Definition at line 380 of file stdCamera.hpp.

◆ m_maxROIx

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxROIx
protectedinherited

Definition at line 372 of file stdCamera.hpp.

◆ m_maxROIy

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxROIy
protectedinherited

Definition at line 376 of file stdCamera.hpp.

◆ m_maxTemp

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_maxTemp
protectedinherited

Definition at line 255 of file stdCamera.hpp.

◆ m_minExpTime

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minExpTime
protectedinherited

The minimum exposure time, used for INDI attributes.

Definition at line 308 of file stdCamera.hpp.

◆ m_minFPS

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minFPS
protectedinherited

The minimum FPS, used for INDI attributes.

Definition at line 315 of file stdCamera.hpp.

◆ m_minROIBinning_x

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minROIBinning_x
protectedinherited

Definition at line 387 of file stdCamera.hpp.

◆ m_minROIBinning_y

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minROIBinning_y
protectedinherited

Definition at line 391 of file stdCamera.hpp.

◆ m_minROIHeight

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minROIHeight
protectedinherited

Definition at line 383 of file stdCamera.hpp.

◆ m_minROIWidth

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minROIWidth
protectedinherited

Definition at line 379 of file stdCamera.hpp.

◆ m_minROIx

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minROIx
protectedinherited

Definition at line 371 of file stdCamera.hpp.

◆ m_minROIy

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minROIy
protectedinherited

Definition at line 375 of file stdCamera.hpp.

◆ m_minTemp

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_minTemp
protectedinherited

Definition at line 254 of file stdCamera.hpp.

◆ m_mna

double MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_mna
protectedinherited

Definition at line 133 of file frameGrabber.hpp.

◆ m_mnw

double MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_mnw
protectedinherited

Definition at line 136 of file frameGrabber.hpp.

◆ m_mnwa

double MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_mnwa
protectedinherited

Definition at line 139 of file frameGrabber.hpp.

◆ m_modeName

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_modeName
protectedinherited

The current mode name.

Definition at line 343 of file stdCamera.hpp.

◆ m_nextMode

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_nextMode
protectedinherited

The mode to be set by the next reconfiguration.

Definition at line 345 of file stdCamera.hpp.

◆ m_nextROI

roi MagAOX::app::dev::stdCamera< pvcamCtrl >::m_nextROI
protectedinherited

Definition at line 368 of file stdCamera.hpp.

◆ m_openThread

std::thread MagAOX::app::dev::dssShutter< pvcamCtrl >::m_openThread
protectedinherited

The opening thread.

Definition at line 194 of file dssShutter.hpp.

◆ m_openThreadID

pid_t MagAOX::app::dev::dssShutter< pvcamCtrl >::m_openThreadID
protectedinherited

Open thread PID.

Definition at line 190 of file dssShutter.hpp.

◆ m_openThreadInit

bool MagAOX::app::dev::dssShutter< pvcamCtrl >::m_openThreadInit
protectedinherited

Initialization flag for the open thread.

Definition at line 188 of file dssShutter.hpp.

◆ m_openThreadProp

pcf::IndiProperty MagAOX::app::dev::dssShutter< pvcamCtrl >::m_openThreadProp
protectedinherited

The property to hold the open thread details.

Definition at line 192 of file dssShutter.hpp.

◆ m_pid

pid_t MagAOX::app::MagAOXApp< _useINDI >::m_pid
protectedinherited

This process's PID.

Definition at line 394 of file MagAOXApp.hpp.

◆ m_ports

std::vector<port> MagAOX::app::pvcamCtrl::m_ports
protected

Definition at line 175 of file pvcamCtrl.hpp.

Referenced by fillSpeedTable().

◆ m_powerChannel [1/2]

std::string MagAOX::app::dev::dssShutter< pvcamCtrl >::m_powerChannel
protectedinherited

The channel controlling this shutter's power.

Definition at line 45 of file dssShutter.hpp.

◆ m_powerChannel [2/2]

std::string MagAOX::app::MagAOXApp< _useINDI >::m_powerChannel
protectedinherited

The INDI property name of the channel controlling this device's power.

Definition at line 985 of file MagAOXApp.hpp.

◆ m_powerDevice [1/2]

std::string MagAOX::app::dev::dssShutter< pvcamCtrl >::m_powerDevice
protectedinherited

The device controlling this shutter's power.

Definition at line 44 of file dssShutter.hpp.

◆ m_powerDevice [2/2]

std::string MagAOX::app::MagAOXApp< _useINDI >::m_powerDevice
protectedinherited

The INDI device name of the power controller.

Definition at line 984 of file MagAOXApp.hpp.

◆ m_powerElement

std::string MagAOX::app::MagAOXApp< _useINDI >::m_powerElement
protectedinherited

The INDI element name to monitor for this device's power state.

Definition at line 986 of file MagAOXApp.hpp.

◆ m_powerMgtEnabled

bool MagAOX::app::MagAOXApp< _useINDI >::m_powerMgtEnabled
protectedinherited

Flag controls whether power mgt is used. Set this in the constructor of a derived app. If true, then if after loadConfig the powerDevice and powerChannel are empty, then the app will exit with a critical error.

Definition at line 981 of file MagAOXApp.hpp.

◆ m_powerOnCounter

int MagAOX::app::MagAOXApp< _useINDI >::m_powerOnCounter
protectedinherited

Counts numer of loops after power on, implements delay for device bootup. If -1, then device was NOT powered off on app startup.

Definition at line 992 of file MagAOXApp.hpp.

◆ m_powerOnWait

unsigned long MagAOX::app::MagAOXApp< _useINDI >::m_powerOnWait
protectedinherited

Time in sec to wait for device to boot after power on.

Definition at line 989 of file MagAOXApp.hpp.

◆ m_powerState [1/2]

int MagAOX::app::dev::dssShutter< pvcamCtrl >::m_powerState
protectedinherited

The current power state, -1 is unknown, 0 is off, 1 is on.

Definition at line 56 of file dssShutter.hpp.

◆ m_powerState [2/2]

int MagAOX::app::MagAOXApp< _useINDI >::m_powerState
protectedinherited

Current power state, 1=On, 0=Off, -1=Unk.

Definition at line 995 of file MagAOXApp.hpp.

◆ m_powerTargetElement

std::string MagAOX::app::MagAOXApp< _useINDI >::m_powerTargetElement
protectedinherited

The INDI element name to monitor for this device's power state.

Definition at line 987 of file MagAOXApp.hpp.

◆ m_powerTargetState

int MagAOX::app::MagAOXApp< _useINDI >::m_powerTargetState
protectedinherited

Current target power state, 1=On, 0=Off, -1=Unk.

Definition at line 996 of file MagAOXApp.hpp.

◆ m_readoutSpeedName

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_readoutSpeedName
protectedinherited

The current readout speed name.

Definition at line 282 of file stdCamera.hpp.

◆ m_readoutSpeedNameLabels

std::vector<std::string> MagAOX::app::dev::stdCamera< pvcamCtrl >::m_readoutSpeedNameLabels
protectedinherited

Definition at line 280 of file stdCamera.hpp.

◆ m_readoutSpeedNames

std::vector<std::string> MagAOX::app::dev::stdCamera< pvcamCtrl >::m_readoutSpeedNames
protectedinherited

Definition at line 279 of file stdCamera.hpp.

◆ m_readoutSpeedNameSet

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_readoutSpeedNameSet
protectedinherited

The user requested readout speed name, to be set by derived()

Definition at line 283 of file stdCamera.hpp.

◆ m_reconfig

bool MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_reconfig
protectedinherited

Flag to set if a camera reconfiguration requires a framegrabber reset.

Definition at line 116 of file frameGrabber.hpp.

◆ m_self

MagAOXApp< _useINDI > * MagAOX::app::MagAOXApp< _useINDI >::m_self
staticprivateinherited

Static pointer to this (set in constructor). Used to test whether a a MagAOXApp is already instatiated (a fatal error) and used for getting out of static signal handlers.

Definition at line 291 of file MagAOXApp.hpp.

◆ m_sensorChannel

std::string MagAOX::app::dev::dssShutter< pvcamCtrl >::m_sensorChannel
protectedinherited

The channel reading this shutter's sensor.

Definition at line 48 of file dssShutter.hpp.

◆ m_sensorState

int MagAOX::app::dev::dssShutter< pvcamCtrl >::m_sensorState
protectedinherited

The current sensor state, -1 is unknown, 0 is shut, 1 is open.

Definition at line 58 of file dssShutter.hpp.

◆ m_serialNumber

std::string MagAOX::app::pvcamCtrl::m_serialNumber
protected

The camera serial number.

Definition at line 136 of file pvcamCtrl.hpp.

Referenced by connect(), and loadConfigImpl().

◆ m_shmimName

std::string MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_shmimName
protectedinherited

The name of the shared memory image, is used in /tmp/<shmimName>.im.shm. Derived classes should set a default.

Definition at line 88 of file frameGrabber.hpp.

◆ m_shutdown

int MagAOX::app::MagAOXApp< _useINDI >::m_shutdown
protectedinherited

Flag to signal it's time to shutdown. When not 0, the main loop exits.

Definition at line 102 of file MagAOXApp.hpp.

◆ m_shutterState

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_shutterState
protectedinherited

Definition at line 450 of file stdCamera.hpp.

◆ m_shutterStatus

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_shutterStatus
protectedinherited

Definition at line 449 of file stdCamera.hpp.

◆ m_shutterTimeout

unsigned MagAOX::app::dev::dssShutter< pvcamCtrl >::m_shutterTimeout
protectedinherited

Total time to wait for sensor to change state before timing out [msec]. Default is 2000.

Definition at line 53 of file dssShutter.hpp.

◆ m_shutterWait

unsigned MagAOX::app::dev::dssShutter< pvcamCtrl >::m_shutterWait
protectedinherited

The time to pause between checks of the sensor state during open/shut [msec]. Default is 100.

Definition at line 51 of file dssShutter.hpp.

◆ m_shutThread

std::thread MagAOX::app::dev::dssShutter< pvcamCtrl >::m_shutThread
protectedinherited

The shutting thread.

Definition at line 212 of file dssShutter.hpp.

◆ m_shutThreadID

pid_t MagAOX::app::dev::dssShutter< pvcamCtrl >::m_shutThreadID
protectedinherited

Shut thread PID.

Definition at line 208 of file dssShutter.hpp.

◆ m_shutThreadInit

bool MagAOX::app::dev::dssShutter< pvcamCtrl >::m_shutThreadInit
protectedinherited

Initialization flag for the shut thread.

Definition at line 206 of file dssShutter.hpp.

◆ m_shutThreadProp

pcf::IndiProperty MagAOX::app::dev::dssShutter< pvcamCtrl >::m_shutThreadProp
protectedinherited

The property to hold the shut thread details.

Definition at line 210 of file dssShutter.hpp.

◆ m_startupMode

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_startupMode
protectedinherited

The camera mode to load during first init after a power-on.

Definition at line 241 of file stdCamera.hpp.

◆ m_startupTemp

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_startupTemp
protectedinherited

The temperature to set after a power-on. Set to <= -999 to not use [default].

Definition at line 243 of file stdCamera.hpp.

◆ m_state

stateCodes::stateCodeT MagAOX::app::MagAOXApp< _useINDI >::m_state
privateinherited

The application's state. Never ever set this directly, use state(const stateCodeT & s).

Definition at line 468 of file MagAOXApp.hpp.

◆ m_stateAlert

bool MagAOX::app::MagAOXApp< _useINDI >::m_stateAlert
privateinherited

Definition at line 470 of file MagAOXApp.hpp.

◆ m_stateLogged

int MagAOX::app::MagAOXApp< _useINDI >::m_stateLogged
privateinherited

Counter and flag for use to log errors just once. Never ever access directly, use stateLogged().

Definition at line 474 of file MagAOXApp.hpp.

◆ m_stepExpTime

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepExpTime
protectedinherited

The maximum exposure time stepsize, used for INDI attributes.

Definition at line 310 of file stdCamera.hpp.

◆ m_stepFPS

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepFPS
protectedinherited

The FPS step size, used for INDI attributes.

Definition at line 317 of file stdCamera.hpp.

◆ m_stepROIBinning_x

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepROIBinning_x
protectedinherited

Definition at line 389 of file stdCamera.hpp.

◆ m_stepROIBinning_y

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepROIBinning_y
protectedinherited

Definition at line 393 of file stdCamera.hpp.

◆ m_stepROIHeight

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepROIHeight
protectedinherited

Definition at line 385 of file stdCamera.hpp.

◆ m_stepROIWidth

int MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepROIWidth
protectedinherited

Definition at line 381 of file stdCamera.hpp.

◆ m_stepROIx

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepROIx
protectedinherited

Definition at line 373 of file stdCamera.hpp.

◆ m_stepROIy

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepROIy
protectedinherited

Definition at line 377 of file stdCamera.hpp.

◆ m_stepTemp

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_stepTemp
protectedinherited

Definition at line 256 of file stdCamera.hpp.

◆ m_suid

uid_t MagAOX::app::MagAOXApp< _useINDI >::m_suid
privateinherited

The save-set user id of the process.

Definition at line 316 of file MagAOXApp.hpp.

◆ m_synchro

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::m_synchro
protectedinherited

Status of synchronization, true is on, false is off.

Definition at line 333 of file stdCamera.hpp.

◆ m_synchroSet

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::m_synchroSet
protectedinherited

Target status of m_synchro.

Definition at line 331 of file stdCamera.hpp.

◆ m_tel

Definition at line 56 of file telemeter.hpp.

◆ m_tempControlOnTarget

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::m_tempControlOnTarget
protectedinherited

Whether or not the temperature control system is on its target temperature.

Definition at line 265 of file stdCamera.hpp.

◆ m_tempControlStatus

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::m_tempControlStatus
protectedinherited

Whether or not temperature control is active.

Definition at line 262 of file stdCamera.hpp.

◆ m_tempControlStatusSet

bool MagAOX::app::dev::stdCamera< pvcamCtrl >::m_tempControlStatusSet
protectedinherited

Desired state of temperature control.

Definition at line 263 of file stdCamera.hpp.

◆ m_tempControlStatusStr

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_tempControlStatusStr
protectedinherited

Camera specific description of temperature control status.

Definition at line 267 of file stdCamera.hpp.

◆ m_tempTol

float MagAOX::app::pvcamCtrl::m_tempTol {0.1}
protected

Tolerance in degrees C to declare the temperature control locked.

Todo:
implement config-ing of this

Definition at line 139 of file pvcamCtrl.hpp.

Referenced by getTemp().

◆ m_triggerChannel

std::string MagAOX::app::dev::dssShutter< pvcamCtrl >::m_triggerChannel
protectedinherited

The channel sending this shutter's trigger.

Definition at line 49 of file dssShutter.hpp.

◆ m_triggerState

int MagAOX::app::dev::dssShutter< pvcamCtrl >::m_triggerState
protectedinherited

The current trigger state. -1 is unknown, 0 is low, 1 is high.

Definition at line 60 of file dssShutter.hpp.

◆ m_typeSize

size_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_typeSize
protectedinherited

The size of the type, in bytes. Result of sizeof.

Definition at line 108 of file frameGrabber.hpp.

◆ m_useINDI

constexpr static bool MagAOX::app::MagAOXApp< _useINDI >::m_useINDI
staticconstexprprotectedinherited

Flag controlling whether INDI is used. If false, then no INDI code executes.

Definition at line 532 of file MagAOXApp.hpp.

◆ m_vara

double MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_vara
protectedinherited

Definition at line 134 of file frameGrabber.hpp.

◆ m_varw

double MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_varw
protectedinherited

Definition at line 137 of file frameGrabber.hpp.

◆ m_varwa

double MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_varwa
protectedinherited

Definition at line 140 of file frameGrabber.hpp.

◆ m_vshiftSpeed

float MagAOX::app::dev::stdCamera< pvcamCtrl >::m_vshiftSpeed
protectedinherited

Definition at line 292 of file stdCamera.hpp.

◆ m_vShiftSpeedName

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_vShiftSpeedName
protectedinherited

The current vshift speed name.

Definition at line 288 of file stdCamera.hpp.

◆ m_vShiftSpeedNameLabels

std::vector<std::string> MagAOX::app::dev::stdCamera< pvcamCtrl >::m_vShiftSpeedNameLabels
protectedinherited

Definition at line 286 of file stdCamera.hpp.

◆ m_vShiftSpeedNames

std::vector<std::string> MagAOX::app::dev::stdCamera< pvcamCtrl >::m_vShiftSpeedNames
protectedinherited

Definition at line 285 of file stdCamera.hpp.

◆ m_vShiftSpeedNameSet

std::string MagAOX::app::dev::stdCamera< pvcamCtrl >::m_vShiftSpeedNameSet
protectedinherited

The user requested vshift speed name, to be set by derived()

Definition at line 289 of file stdCamera.hpp.

◆ m_watimesD

std::vector<double> MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_watimesD
protectedinherited

Definition at line 127 of file frameGrabber.hpp.

◆ m_width

uint32_t MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_width
protectedinherited

The width of the image, once deinterlaced etc.

Definition at line 104 of file frameGrabber.hpp.

◆ m_wtimes

mx::sigproc::circularBufferIndex<timespec, cbIndexT> MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_wtimes
protectedinherited

Definition at line 123 of file frameGrabber.hpp.

◆ m_wtimesD

std::vector<double> MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_wtimesD
protectedinherited

Definition at line 126 of file frameGrabber.hpp.

◆ m_xbinning

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_xbinning
protectedinherited

The x-binning according to the framegrabber.

Definition at line 110 of file frameGrabber.hpp.

◆ m_ybinning

int MagAOX::app::dev::frameGrabber< pvcamCtrl >::m_ybinning
protectedinherited

The y-binning according to the framegrabber.

Definition at line 111 of file frameGrabber.hpp.

◆ MagAOXPath

std::string MagAOX::app::MagAOXApp< _useINDI >::MagAOXPath
protectedinherited

The base path of the MagAO-X system.

Definition at line 86 of file MagAOXApp.hpp.

◆ pidFileName

std::string MagAOX::app::MagAOXApp< _useINDI >::pidFileName
protectedinherited

The name of the PID file.

Definition at line 392 of file MagAOXApp.hpp.

◆ secretsPath

std::string MagAOX::app::MagAOXApp< _useINDI >::secretsPath
protectedinherited

Path to the secrets directory, where passwords, etc, are stored.

Definition at line 98 of file MagAOXApp.hpp.

◆ sysPath

std::string MagAOX::app::MagAOXApp< _useINDI >::sysPath
protectedinherited

The path to the system directory, for PID file, etc.

Definition at line 96 of file MagAOXApp.hpp.


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