The MagAO-X DM to PWFS alignment Application. More...
#include <dmPokeXCorr.hpp>
Public Types | |
typedef logger::logManager< MagAOXApp< _useINDI >, logFileRaw > | logManagerT |
The log manager type. More... | |
typedef logger::logManager< dmPokeXCorr, logFileRaw > | logManagerT |
The log manager type. More... | |
Public Member Functions | |
dmPokeXCorr () | |
Default c'tor. More... | |
~dmPokeXCorr () noexcept | |
D'tor, declared and defined for noexcept. More... | |
shmimMonitorT & | shmimMonitor () |
darkShmimMonitorT & | darkShmimMonitor () |
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... | |
const std::string & | shmimName () const |
const uint32_t & | width () const |
const uint32_t & | height () const |
const uint32_t & | depth () const |
const uint8_t & | dataType () const |
const size_t & | typeSize () const |
int | setupConfig (mx::app::appConfigurator &config) |
Setup the configuration system. More... | |
int | loadConfig (mx::app::appConfigurator &config) |
load the configuration system results More... | |
const std::string & | shmimName () const |
const uint32_t & | width () const |
const uint32_t & | height () const |
const uint32_t & | depth () const |
const uint8_t & | dataType () const |
const size_t & | typeSize () const |
int | setupConfig (mx::app::appConfigurator &config) |
Setup the configuration system. More... | |
int | loadConfig (mx::app::appConfigurator &config) |
load the configuration system results More... | |
const std::string & | shmimName () const |
const uint32_t & | width () const |
const uint32_t & | height () const |
const uint32_t & | depth () const |
const uint8_t & | dataType () const |
const size_t & | typeSize () const |
int | setupConfig (mx::app::appConfigurator &config) |
Setup the configuration system. More... | |
int | loadConfig (mx::app::appConfigurator &config) |
load the configuration system results 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... | |
MagAOX Interface | |
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 dmPokeXCorr. More... | |
virtual int | appShutdown () |
Shutdown the app. More... | |
zrespShmimMonitorT inteface | |
int | allocate (const zrespShmimT &dummy) |
int | processImage (void *curr_src, const zrespShmimT &dummy) |
dmPokeWFS Interface | |
int | runSensor (bool firstRun) |
Run the sensor steps. More... | |
int | analyzeSensor () |
Analyze the poke image. More... | |
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... | |
MagAOXApp Interface | |
int | setupConfig (mx::app::appConfigurator &config) |
Setup the configuration system. More... | |
int | loadConfig (mx::app::appConfigurator &config) |
load the configuration system results More... | |
shmimMonitor Interface | |
int | allocate (const wfsShmimT &) |
int | processImage (void *curr_src, const wfsShmimT &) |
darkShmimMonitor Interface | |
int | allocate (const darkShmimT &) |
int | processImage (void *curr_src, const darkShmimT &) |
Public Attributes | |
logManagerT | m_tel |
double | m_maxInterval |
The maximum interval, in seconds, between telemetry records. Default is 10.0 seconds. More... | |
Protected Member Functions | |
int | basicTimedPoke (float pokeSign) |
Apply a single DM poke pattern and record the results. More... | |
int | basicRunSensor () |
Run the basic +/- poke sensor steps. More... | |
int | updateMeasurement (float deltaX, float deltaY) |
Telemeter Interface | |
int | checkRecordTimes () |
Telemeter Interface | |
int | recordTelem (const telem_pokeloop *) |
int | recordPokeLoop (bool force=false) |
Protected Attributes | |
mx::improc::imageXCorrFFT< eigenImage< float > > | m_xcorr |
mx::improc::milkImage< float > | m_refIm |
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 |
int | m_shutdown |
Flag to signal it's time to shutdown. When not 0, the main loop exits. More... | |
std::mutex | m_wfsImageMutex |
mx::improc::milkImage< float > | m_rawImage |
mx::improc::milkImage< float > | m_pokeImage |
mx::improc::eigenImage< float > | m_pokeLocal |
float(* | wfsPixget )(void *, size_t) |
float | m_wfsFps |
Pointer to a function to extract the image data as float. More... | |
mx::improc::eigenImage< float > | m_darkImage |
The dark image. More... | |
bool | m_darkValid |
Flag indicating if dark is valid based on its size. More... | |
float(* | darkPixget )(void *, size_t) |
mx::improc::milkImage< float > | m_dmStream |
Pointer to a function to extract the dark image data as float. More... | |
mx::improc::eigenImage< float > | m_dmImage |
float | m_deltaX |
float | m_deltaY |
uint64_t | m_counter |
sem_t | m_imageSemaphore |
Semaphore used to signal that an image is ready. More... | |
unsigned | m_imageSemWait_sec |
The timeout for the image semaphore, seconds component. More... | |
unsigned | m_imageSemWait_nsec |
The timeout for the image semaphore, nanoseconds component. More... | |
bool | m_getExistingFirst |
If set to true by derivedT, any existing image will be grabbed and sent to processImage before waiting on the semaphore. More... | |
int | m_semaphoreNumber |
The image structure semaphore index. More... | |
uint32_t | m_width |
The width of the images in the stream. More... | |
uint32_t | m_height |
The height of the images in the stream. More... | |
uint32_t | m_depth |
The depth of the circular buffer in the stream. 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... | |
IMAGE | m_imageStream |
The ImageStreamIO shared memory buffer. More... | |
ino_t | m_inode |
The inode of the image stream file. More... | |
bool | m_getExistingFirst |
If set to true by derivedT, any existing image will be grabbed and sent to processImage before waiting on the semaphore. More... | |
int | m_semaphoreNumber |
The image structure semaphore index. More... | |
uint32_t | m_width |
The width of the images in the stream. More... | |
uint32_t | m_height |
The height of the images in the stream. More... | |
uint32_t | m_depth |
The depth of the circular buffer in the stream. 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... | |
IMAGE | m_imageStream |
The ImageStreamIO shared memory buffer. More... | |
ino_t | m_inode |
The inode of the image stream file. More... | |
bool | m_getExistingFirst |
If set to true by derivedT, any existing image will be grabbed and sent to processImage before waiting on the semaphore. More... | |
int | m_semaphoreNumber |
The image structure semaphore index. More... | |
uint32_t | m_width |
The width of the images in the stream. More... | |
uint32_t | m_height |
The height of the images in the stream. More... | |
uint32_t | m_depth |
The depth of the circular buffer in the stream. 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... | |
IMAGE | m_imageStream |
The ImageStreamIO shared memory buffer. More... | |
ino_t | m_inode |
The inode of the image stream file. More... | |
Configurable Parameters | |
std::string | m_zRespMFile |
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 | |
std::string | m_wfsCamDevName |
INDI device name of the WFS camera. Default is wfscam.shmimName. More... | |
double | m_wfsSemWait |
The time in sec to wait on the WFS semaphore. Default 0.5 sec. More... | |
double | m_imageSemWait |
The time in sec to wait on the image semaphore. Default 0.5 sec. More... | |
unsigned | m_nPokeImages |
The number of images to average for the poke images. Default is 5. More... | |
unsigned | m_nPokeAverage |
The number of poke sequences to average. Default is 10. More... | |
std::string | m_dmChan |
std::vector< int > | m_poke_x |
std::vector< int > | m_poke_y |
float | m_poke_amp |
float | m_dmSleep |
The time to sleep for the DM command to be applied, in microseconds. Default is 10000. More... | |
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_smThreadPrio |
Priority of the shmimMonitor thread, should normally be > 00. More... | |
std::string | m_smCpuset |
The cpuset to assign the shmimMonitor thread to. Ignored if empty (the default). More... | |
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_smThreadPrio |
Priority of the shmimMonitor thread, should normally be > 00. More... | |
std::string | m_smCpuset |
The cpuset to assign the shmimMonitor thread to. Ignored if empty (the default). More... | |
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_smThreadPrio |
Priority of the shmimMonitor thread, should normally be > 00. More... | |
std::string | m_smCpuset |
The cpuset to assign the shmimMonitor thread to. Ignored if empty (the default). More... | |
Private Types | |
typedef dev::dmPokeWFS< dmPokeXCorr > | dmPokeWFST |
typedef dev::shmimMonitor< dmPokeXCorr, dev::dmPokeWFS< dmPokeXCorr >::wfsShmimT > | shmimMonitorT |
typedef dev::shmimMonitor< dmPokeXCorr, dev::dmPokeWFS< dmPokeXCorr >::darkShmimT > | darkShmimMonitorT |
typedef dev::shmimMonitor< dmPokeXCorr, zrespShmimT > | zrespShmimMonitorT |
typedef dev::telemeter< dmPokeXCorr > | telemeterT |
Private Member Functions | |
int | clearFSMAlert () |
Clear the FSM alert state. More... | |
dmPokeXCorr & | derived () |
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 () |
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="") |
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... | |
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, pcf::IndiProperty::PropertyStateType newState=pcf::IndiProperty::Ok) |
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... | |
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... | |
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 |
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 |
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... | |
WFS Thread | |
int | m_wfsThreadPrio |
Priority of the WFS thread, should normally be > 00. More... | |
std::string | m_wfsCpuset |
The cpuset for the framegrabber thread. Ignored if empty (the default). More... | |
std::thread | m_wfsThread |
A separate thread for the actual WFSing. More... | |
bool | m_wfsThreadInit |
Synchronizer to ensure wfs thread initializes before doing dangerous things. More... | |
pid_t | m_wfsThreadID |
WFS thread PID. More... | |
pcf::IndiProperty | m_wfsThreadProp |
The property to hold the WFS thread details. More... | |
sem_t | m_wfsSemaphore |
Semaphore used to signal the WFS thread to start WFSing. More... | |
unsigned | m_wfsSemWait_sec |
The timeout for the WFS semaphore, seconds component. More... | |
unsigned | m_wfsSemWait_nsec |
The timeoutfor the WFS semaphore, nanoseconds component. More... | |
int | m_measuring |
Status of measuring: 0 no, 1 single in progress, 2 continuous in progress. More... | |
bool | m_single |
True a single measurement is in progress. More... | |
bool | m_continuous |
True if continuous measurements are in progress. More... | |
bool | m_stopMeasurement |
Used to request that the measurement in progress stop. More... | |
void | wfsThreadExec () |
Execute the frame grabber main loop. More... | |
static void | wfsThreadStart (dmPokeWFS *s) |
Thread starter, called by wfsThreadStart on thread construction. Calls wfsThreadExec. More... | |
INDI Interface | |
pcf::IndiProperty | m_indiP_poke_amp |
pcf::IndiProperty | m_indiP_nPokeImages |
pcf::IndiProperty | m_indiP_nPokeAverage |
pcf::IndiProperty | m_indiP_wfsFps |
Property to get the FPS from the WFS camera. More... | |
pcf::IndiProperty | m_indiP_single |
Switch to start a single measurement. More... | |
pcf::IndiProperty | m_indiP_continuous |
Switch to start continuous measurement. More... | |
pcf::IndiProperty | m_indiP_stop |
Switch to request that measurement stop. More... | |
pcf::IndiProperty | m_indiP_measurement |
Property to report the delta measurement, including the loop counter. More... | |
INDI_NEWCALLBACK_DECL (dmPokeXCorr, m_indiP_poke_amp) | |
INDI_NEWCALLBACK_DECL (dmPokeXCorr, m_indiP_nPokeImages) | |
INDI_NEWCALLBACK_DECL (dmPokeXCorr, m_indiP_nPokeAverage) | |
INDI_NEWCALLBACK_DECL (dmPokeXCorr, m_indiP_single) | |
INDI_NEWCALLBACK_DECL (dmPokeXCorr, m_indiP_continuous) | |
INDI_NEWCALLBACK_DECL (dmPokeXCorr, m_indiP_stop) | |
INDI_SETCALLBACK_DECL (dmPokeXCorr, m_indiP_wfsFps) | |
SIGSEGV & SIGBUS signal handling | |
These signals occur as a result of a ImageStreamIO source server resetting (e.g. changing frame sizes). When they occur a restart of the shmim monitor thread main loops is triggered. | |
bool | m_restart |
Flag indicating tha the shared memory should be reinitialized. More... | |
bool | m_restart |
Flag indicating tha the shared memory should be reinitialized. More... | |
bool | m_restart |
Flag indicating tha the shared memory should be reinitialized. More... | |
static shmimMonitor * | m_selfMonitor |
Static pointer to this (set in constructor). Used for getting out of the static SIGSEGV handler. More... | |
static shmimMonitor * | m_selfMonitor |
Static pointer to this (set in constructor). Used for getting out of the static SIGSEGV handler. More... | |
static shmimMonitor * | m_selfMonitor |
Static pointer to this (set in constructor). Used for getting out of the static SIGSEGV handler. More... | |
shmimmonitor Thread | |
bool | m_smThreadInit |
Synchronizer for thread startup, to allow priority setting to finish. More... | |
pid_t | m_smThreadID |
The s.m. thread PID. More... | |
pcf::IndiProperty | m_smThreadProp |
The property to hold the s.m. thread details. More... | |
std::thread | m_smThread |
A separate thread for the actual monitoring. More... | |
bool | m_smThreadInit |
Synchronizer for thread startup, to allow priority setting to finish. More... | |
pid_t | m_smThreadID |
The s.m. thread PID. More... | |
pcf::IndiProperty | m_smThreadProp |
The property to hold the s.m. thread details. More... | |
std::thread | m_smThread |
A separate thread for the actual monitoring. More... | |
bool | m_smThreadInit |
Synchronizer for thread startup, to allow priority setting to finish. More... | |
pid_t | m_smThreadID |
The s.m. thread PID. More... | |
pcf::IndiProperty | m_smThreadProp |
The property to hold the s.m. thread details. More... | |
std::thread | m_smThread |
A separate thread for the actual monitoring. More... | |
void | smThreadExec () |
Execute the monitoring thread. More... | |
void | smThreadExec () |
Execute the monitoring thread. More... | |
void | smThreadExec () |
Execute the monitoring thread. More... | |
static void | smThreadStart (shmimMonitor *s) |
Thread starter, called by MagAOXApp::threadStart on thread construction. Calls smThreadExec. More... | |
static void | smThreadStart (shmimMonitor *s) |
Thread starter, called by MagAOXApp::threadStart on thread construction. Calls smThreadExec. More... | |
static void | smThreadStart (shmimMonitor *s) |
Thread starter, called by MagAOXApp::threadStart on thread construction. Calls smThreadExec. 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_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_shmimName |
Property used to report the shmim buffer name. More... | |
pcf::IndiProperty | m_indiP_frameSize |
Property used to report the current frame size. More... | |
int | updateINDI () |
Update the INDI properties for this device controller. More... | |
int | updateINDI () |
Update the INDI properties for this device controller. More... | |
int | updateINDI () |
Update the INDI properties for this device controller. More... | |
Logging | |
void | logMessage (bufferPtrT &b) |
Handle a log message from the logging system. More... | |
static logManagerT | m_log |
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... | |
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 |
bool | m_stateAlert |
bool | m_gitAlert |
int | m_stateLogged |
Signal Handling | |
static MagAOXApp * | m_self |
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... | |
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... | |
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 |
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... | |
The MagAO-X DM to PWFS alignment Application.
Definition at line 53 of file dmPokeXCorr.hpp.
|
inherited |
Return type of insert on the indiCallBack map.
Definition at line 567 of file MagAOXApp.hpp.
|
inherited |
Iterator type of the indiCallBack map.
Definition at line 564 of file MagAOXApp.hpp.
|
inherited |
Value type of the indiCallBack map.
Definition at line 561 of file MagAOXApp.hpp.
|
private |
Definition at line 73 of file dmPokeXCorr.hpp.
|
private |
Definition at line 65 of file dmPokeXCorr.hpp.
|
inherited |
The log manager type.
Definition at line 71 of file telemeter.hpp.
|
inherited |
The log manager type.
Definition at line 78 of file MagAOXApp.hpp.
|
private |
Definition at line 69 of file dmPokeXCorr.hpp.
|
private |
Definition at line 81 of file dmPokeXCorr.hpp.
|
private |
Definition at line 77 of file dmPokeXCorr.hpp.
MagAOX::app::dmPokeXCorr::dmPokeXCorr | ( | ) |
Default c'tor.
Definition at line 207 of file dmPokeXCorr.hpp.
|
inlinenoexcept |
D'tor, declared and defined for noexcept.
Definition at line 102 of file dmPokeXCorr.hpp.
|
staticprivateinherited |
The handler called when SIGTERM, SIGQUIT, or SIGINT is received. Just a wrapper for handlerSigTerm.
[in] | signum | specifies the signal. |
[in] | siginf | ignored by MagAOXApp |
[in] | ucont | ignored by MagAOXApp |
Definition at line 296 of file MagAOXApp.hpp.
|
inherited |
[in] | dummy | tag to differentiate shmimMonitor parents. |
Definition at line 301 of file dmPokeWFS.hpp.
|
inherited |
[in] | dummy | tag to differentiate shmimMonitor parents. |
Definition at line 289 of file dmPokeWFS.hpp.
int MagAOX::app::dmPokeXCorr::allocate | ( | const zrespShmimT & | dummy | ) |
Definition at line 290 of file dmPokeXCorr.hpp.
int MagAOX::app::dmPokeXCorr::analyzeSensor | ( | ) |
Analyze the poke image.
This analyzes the resulting poke image and reports the results.
Definition at line 359 of file dmPokeXCorr.hpp.
|
virtual |
Implementation of the FSM for dmPokeXCorr.
Implements MagAOX::app::MagAOXApp< true >.
Definition at line 265 of file dmPokeXCorr.hpp.
|
virtual |
Shutdown the app.
Implements MagAOX::app::MagAOXApp< true >.
Definition at line 279 of file dmPokeXCorr.hpp.
|
virtual |
Startup function.
Implements MagAOX::app::MagAOXApp< true >.
Definition at line 240 of file dmPokeXCorr.hpp.
|
protectedinherited |
Run the basic +/- poke sensor steps.
Coordinates the actions of poking and collecting images.
This can be called from the derived class runSensor.
Definition at line 378 of file dmPokeWFS.hpp.
|
protectedinherited |
Apply a single DM poke pattern and record the results.
This accumulates m_nPokeImages*m_nPokeAverage images in m_pokeLocal, so m_pokeLocal should be zeroed before the first call to this (e.g. for a +1 poke), but not zeroed before the second call (e.g. for the -1 poke). You also need to 0 the DM after finishing a poke pair. See basicRunSensor() for how to use.
[in] | pokeSign | the sign, and possibly a scaling, to apply to m_pokeAmplitude |
Definition at line 367 of file dmPokeWFS.hpp.
|
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 170 of file MagAOXApp.hpp.
|
protected |
Definition at line 380 of file dmPokeXCorr.hpp.
|
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.
[in] | tel | [unused] object of the telemetry type to record |
[in] | tels | [unused] objects of the additional telemetry types to record |
Definition at line 148 of file telemeter.hpp.
|
inherited |
Empty function called at the end of the template list.
[in] | ts | [unused] the timestamp that records are compared to |
Definition at line 169 of file telemeter.hpp.
|
inherited |
Worker function to actually perform the record time checking logic.
Recursively calls itself until the variadic template list is exhausted.
[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 159 of file telemeter.hpp.
|
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 525 of file MagAOXApp.hpp.
|
inherited |
Get the config directory.
Definition at line 1100 of file MagAOXApp.hpp.
|
staticprotectedinherited |
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.
[in] | name | The name of the config value |
[in] | code | numeric code specifying the type |
[in] | value | the value read by the config system |
[in] | source | the source of the value. |
Definition at line 276 of file MagAOXApp.hpp.
|
inherited |
Get the config name.
Definition at line 1094 of file MagAOXApp.hpp.
|
protectedinherited |
Create the INDI FIFOs.
Changes permissions to max available and creates the FIFOs at the configured path.
Definition at line 811 of file MagAOXApp.hpp.
|
inherited |
Create a ReadOnly INDI Number property.
[out] | prop | the property to create and setup |
[in] | propName | the 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 649 of file MagAOXApp.hpp.
|
inherited |
Create a standard ReadOnly INDI Text property, with at least one element.
[out] | prop | the property to create and setup |
[in] | propName | the name of the property |
[in] | elName | the 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 614 of file MagAOXApp.hpp.
|
inherited |
Create a standard R/W INDI Number property with target and current elements.
[out] | prop | the property to create and setup |
[in] | name | the name of the property |
[in] | min | the minimum value for the elements, applied to both target and current |
[in] | max | the minimum value for the elements, applied to both target and current |
[in] | step | the step size for the elements, applied to both target and current |
[in] | format | the _ 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 628 of file MagAOXApp.hpp.
|
inherited |
Create a standard R/W INDI switch with a single request element.
This switch is intended to function like a momentary switch.
[out] | prop | the property to create and setup |
[in] | name | the 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 675 of file MagAOXApp.hpp.
|
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.
[out] | prop | the property to create and setup |
[in] | name | the name of the property, |
[in] | elements | the 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 706 of file MagAOXApp.hpp.
|
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.
[out] | prop | the property to create and setup |
[in] | name | the name of the property, |
[in] | elements | the element names to give to the switches |
[in] | elementLabels | the 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 688 of file MagAOXApp.hpp.
|
inherited |
Create a standard R/W INDI Text property with target and current elements.
[out] | prop | the property to create and setup |
[in] | propName | the 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 601 of file MagAOXApp.hpp.
|
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.
[out] | prop | the property to create and setup |
[in] | name | the 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 662 of file MagAOXApp.hpp.
|
inline |
Definition at line 145 of file dmPokeXCorr.hpp.
|
inherited |
Definition at line 137 of file shmimMonitor.hpp.
|
inherited |
Definition at line 137 of file shmimMonitor.hpp.
|
inherited |
Definition at line 137 of file shmimMonitor.hpp.
|
inherited |
Definition at line 135 of file shmimMonitor.hpp.
|
inherited |
Definition at line 135 of file shmimMonitor.hpp.
|
inherited |
Definition at line 135 of file shmimMonitor.hpp.
|
inlineprivateinherited |
Definition at line 426 of file dmPokeWFS.hpp.
|
inherited |
Get the INDI control FIFO file name.
Definition at line 1118 of file MagAOXApp.hpp.
|
inherited |
Get the INDI input FIFO file name.
Definition at line 1106 of file MagAOXApp.hpp.
|
inherited |
Get the INDI output FIFO file name.
Definition at line 1112 of file MagAOXApp.hpp.
|
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:
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.
Definition at line 200 of file MagAOXApp.hpp.
|
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.
[in] | ipRecv | The property being sent. |
Definition at line 827 of file MagAOXApp.hpp.
|
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.
[in] | ipRecv | The property being requested. |
Definition at line 833 of file MagAOXApp.hpp.
|
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.
[in] | ipRecv | The property being changed. |
Definition at line 843 of file MagAOXApp.hpp.
|
privateinherited |
Handles SIGTERM, SIGQUIT, and SIGINT. Sets m_shutdown to 1 and logs the signal.
[in] | signum | specifies the signal. |
[in] | siginf | ignored by MagAOXApp |
[in] | ucont | ignored by MagAOXApp |
Definition at line 302 of file MagAOXApp.hpp.
|
inherited |
Handler for the set INDI property request.
This is called by m_indiDriver's indiDriver::handleSetProperties.
[in] | ipRecv | The property being changed. |
Definition at line 852 of file MagAOXApp.hpp.
|
inherited |
Definition at line 133 of file shmimMonitor.hpp.
|
inherited |
Definition at line 133 of file shmimMonitor.hpp.
|
inherited |
Definition at line 133 of file shmimMonitor.hpp.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
Get the target element value from an new property.
[out] | localProperty | The local property to update |
[out] | localTarget | The local value to update |
[in] | remoteProperty | the new property received |
[in] | setBusy | [optional] set property to busy if true |
Definition at line 941 of file MagAOXApp.hpp.
|
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 164 of file MagAOXApp.hpp.
|
virtual |
Definition at line 232 of file dmPokeXCorr.hpp.
|
inherited |
Load the device section from an application configurator.
[in] | config | an application configuration from which to load values |
Definition at line 112 of file telemeter.hpp.
|
inherited |
load the configuration system results
This should be called in derivedT::loadConfig
as
with appropriate error checking.
[in] | config | an application configuration from which to load values |
Definition at line 244 of file dmPokeWFS.hpp.
|
inherited |
load the configuration system results
This should be called in derivedT::loadConfig
as
with appropriate error checking.
[in] | config | the derived classes configurator |
Definition at line 159 of file shmimMonitor.hpp.
|
inherited |
load the configuration system results
This should be called in derivedT::loadConfig
as
with appropriate error checking.
[in] | config | the derived classes configurator |
Definition at line 159 of file shmimMonitor.hpp.
|
inherited |
load the configuration system results
This should be called in derivedT::loadConfig
as
with appropriate error checking.
[in] | config | the derived classes configurator |
Definition at line 159 of file shmimMonitor.hpp.
int MagAOX::app::dmPokeXCorr::loadConfigImpl | ( | mx::app::appConfigurator & | _config | ) |
Implementation of loadConfig logic, separated for testing.
This is called by loadConfig().
[in] | _config | an application configuration from which to load values |
Definition at line 221 of file dmPokeXCorr.hpp.
Referenced by loadConfig().
|
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
Definition at line 410 of file MagAOXApp.hpp.
|
staticinherited |
Make a log entry.
Wrapper for logManager::log
logT | the log entry type |
retval | the value returned by this method. |
[in] | msg | the message to log |
[in] | level | [optional] the log level. The default is used if not specified. |
Definition at line 247 of file MagAOXApp.hpp.
|
staticinherited |
Make a log entry.
Wrapper for logManager::log
logT | the log entry type |
retval | the value returned by this method. |
[in] | level | [optional] the log level. The default is used if not specified. |
Definition at line 260 of file MagAOXApp.hpp.
|
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 269 of file MagAOXApp.hpp.
|
protectedinherited |
The callback called by the static version, to actually process the FSM Alert Clear request.
[in] | ipRecv | the INDI property sent with the new property request. |
Definition at line 998 of file MagAOXApp.hpp.
|
protectedvirtualinherited |
This method is called when the change to poweroff is detected.
Reimplemented in MagAOX::app::zaberLowLevel, MagAOX::app::irisaoCtrl, MagAOX::app::bmcCtrl, and MagAOX::app::alpaoCtrl.
Definition at line 1043 of file MagAOXApp.hpp.
|
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.
Definition at line 1059 of file MagAOXApp.hpp.
|
inherited |
Returns the current power state.
If power management is not enabled, this always returns 1=On.
Definition at line 1069 of file MagAOXApp.hpp.
|
inherited |
Returns the target power state.
If power management is not enabled, this always returns 1=On.
Definition at line 1078 of file MagAOXApp.hpp.
|
inherited |
[in] | curr_src | pointer to the start of the current frame |
[in] | dummy | tag to differentiate shmimMonitor parents. |
Definition at line 303 of file dmPokeWFS.hpp.
|
inherited |
[in] | curr_src | pointer to the start of the current frame |
[in] | dummy | tag to differentiate shmimMonitor parents. |
Definition at line 291 of file dmPokeWFS.hpp.
int MagAOX::app::dmPokeXCorr::processImage | ( | void * | curr_src, |
const zrespShmimT & | dummy | ||
) |
Definition at line 302 of file dmPokeXCorr.hpp.
|
protectedinherited |
Definition at line 421 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 419 of file dmPokeWFS.hpp.
|
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.
[out] | prop | the property to register |
[in] | propName | the name of the property |
[in] | propType | the type of the property |
[in] | propPerm | the permissions of the property |
[in] | propState | the state of the property |
[in] | propRule | the switch rule type |
|
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.
[out] | prop | the property to register |
[in] | propName | the name of the property |
[in] | propType | the type of the property |
[in] | propPerm | the permissions of the property |
[in] | propState | the state of the property |
|
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.
[in] | prop | the property to register, must be fully set up |
|
inherited |
Register an INDI property which is read only.
This version requires the property be fully set up.
[in] | prop | the property to register, must be completely setup |
Definition at line 722 of file MagAOXApp.hpp.
|
inherited |
Register an INDI property which is read only.
This verison sets up the INDI property according to the arguments.
[out] | prop | the property to register, will be configured |
[in] | propName | the name of the property |
[in] | propType | the type of the property |
[in] | propPerm | the permissions of the property |
[in] | propState | the state of the property |
Definition at line 732 of file MagAOXApp.hpp.
|
inherited |
Register an INDI property which is monitored for updates from others.
[out] | prop | the property to register |
[in] | devName | the device which owns this property |
[in] | propName | the name of the property |
Definition at line 799 of file MagAOXApp.hpp.
int MagAOX::app::dmPokeXCorr::runSensor | ( | bool | firstRun | ) |
Run the sensor steps.
Coordinates the actions of poking and collecting images. Upon completion this calls runSensor. If firstRun
== true, one time actions such as taking a dark can be executed.
[in] | firstRun | flag indicating this is the first call. triggers taking a dark if true. |
Definition at line 340 of file dmPokeXCorr.hpp.
|
inherited |
Definition at line 821 of file MagAOXApp.hpp.
|
protectedinherited |
Send a newProperty command to another device (using the INDI Client interface)
[in] | ipSend | The property to send a "new" INDI command for |
Definition at line 964 of file MagAOXApp.hpp.
|
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.
[in] | ipSend | The property to send a "new" INDI command for |
[in] | el | The element of the property to change |
[in] | newVal | The value to request for the element. |
Definition at line 954 of file MagAOXApp.hpp.
|
protectedinherited |
Send a new property commmand for a standard toggle switch.
[in] | device | The device name |
[in] | property | The property name |
[in] | onoff | Switch state to send: true = on, false = off |
Definition at line 971 of file MagAOXApp.hpp.
|
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.
[in] | argc | standard command line result specifying number of arguments in argv |
[in] | argv | standard command line result containing the arguments. |
Definition at line 142 of file MagAOXApp.hpp.
|
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
Definition at line 369 of file MagAOXApp.hpp.
|
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
Definition at line 378 of file MagAOXApp.hpp.
|
privateinherited |
Sets the handler for SIGTERM, SIGQUIT, and SIGINT.
Definition at line 293 of file MagAOXApp.hpp.
|
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 154 of file MagAOXApp.hpp.
|
virtual |
Definition at line 212 of file dmPokeXCorr.hpp.
|
inherited |
Setup an application configurator for the device section.
[in] | config | an application configuration to setup |
Definition at line 104 of file telemeter.hpp.
|
inherited |
Setup the configuration system.
This should be called in derivedT::setupConfig
as
with appropriate error checking.
[in] | config | an application configuration to load values to |
Definition at line 234 of file dmPokeWFS.hpp.
|
inherited |
Setup the configuration system.
This should be called in derivedT::setupConfig
as
with appropriate error checking.
[out] | config | the derived classes configurator |
Definition at line 149 of file shmimMonitor.hpp.
|
inherited |
Setup the configuration system.
This should be called in derivedT::setupConfig
as
with appropriate error checking.
[out] | config | the derived classes configurator |
Definition at line 149 of file shmimMonitor.hpp.
|
inherited |
Setup the configuration system.
This should be called in derivedT::setupConfig
as
with appropriate error checking.
[out] | config | the derived classes configurator |
Definition at line 149 of file shmimMonitor.hpp.
|
inline |
Definition at line 140 of file dmPokeXCorr.hpp.
|
inherited |
Definition at line 129 of file shmimMonitor.hpp.
|
inherited |
Definition at line 129 of file shmimMonitor.hpp.
|
inherited |
Definition at line 129 of file shmimMonitor.hpp.
|
inherited |
Get the value of the shutdown flag.
Definition at line 132 of file MagAOXApp.hpp.
|
protectedinherited |
Execute the monitoring thread.
<
< The semaphore to monitor for new image data
Definition at line 226 of file shmimMonitor.hpp.
|
protectedinherited |
Execute the monitoring thread.
<
< The semaphore to monitor for new image data
Definition at line 226 of file shmimMonitor.hpp.
|
protectedinherited |
Execute the monitoring thread.
<
< The semaphore to monitor for new image data
Definition at line 226 of file shmimMonitor.hpp.
|
staticprotectedinherited |
Thread starter, called by MagAOXApp::threadStart on thread construction. Calls smThreadExec.
[in] | s | a pointer to a shmimMonitor instance (normally this) |
Definition at line 223 of file shmimMonitor.hpp.
|
staticprotectedinherited |
Thread starter, called by MagAOXApp::threadStart on thread construction. Calls smThreadExec.
[in] | s | a pointer to a shmimMonitor instance (normally this) |
Definition at line 223 of file shmimMonitor.hpp.
|
staticprotectedinherited |
Thread starter, called by MagAOXApp::threadStart on thread construction. Calls smThreadExec.
[in] | s | a pointer to a shmimMonitor instance (normally this) |
Definition at line 223 of file shmimMonitor.hpp.
|
staticprotectedinherited |
The static callback function to be registered for requesting to clear the FSM alert.
[in] | app | a pointer to this, will be static_cast-ed to MagAOXApp. |
[in] | ipRecv | the INDI property sent with the new property request. |
Definition at line 987 of file MagAOXApp.hpp.
|
protectedinherited |
Start INDI Communications.
Definition at line 818 of file MagAOXApp.hpp.
|
inherited |
|
inherited |
Set the current state code.
[in] | s | The new application state |
[in] | stateAlert | [optional] flag to set the alert state of the FSM property. |
Definition at line 495 of file MagAOXApp.hpp.
|
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:
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.
Definition at line 516 of file MagAOXApp.hpp.
|
inherited |
Make a telemetry recording, for an empty record.
Wrapper for logManager::log, which updates telT::lastRecord.
logT | the log entry type |
retval | the value returned by this method. |
Definition at line 97 of file telemeter.hpp.
|
inherited |
Make a telemetry recording.
Wrapper for logManager::log, which updates telT::lastRecord.
logT | the log entry type |
retval | the value returned by this method. |
[in] | msg | the data to log |
Definition at line 87 of file telemeter.hpp.
|
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:
where impl
is the derived class, and mThreadStart
and myThreadExec
are members of impl
.
[out] | thrd | The 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] | thrdPrio | The r/t priority to set for this thread |
[in] | cpuset | the cpuset to place this thread on. Ignored if "". |
[in] | thrdName | The name of the thread (just for logging) |
[in] | thrdThis | The `this` pointer to pass to the thread starter function |
[in] | thrdStart | The thread starting function, a static function taking a `this` pointer as argument. |
Definition at line 452 of file MagAOXApp.hpp.
|
inherited |
Definition at line 139 of file shmimMonitor.hpp.
|
inherited |
Definition at line 139 of file shmimMonitor.hpp.
|
inherited |
Definition at line 139 of file shmimMonitor.hpp.
|
protectedinherited |
Remove the PID file.
Definition at line 413 of file MagAOXApp.hpp.
|
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.
p | [in/out] The property containing the element to possibly update | |
[in] | el | The element name |
[in] | newVal | the new value |
Definition at line 882 of file MagAOXApp.hpp.
|
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.
p | [in/out] The property containing the element to possibly update | |
[in] | el | Beginning of each element name |
[in] | newVals | the new values |
[in] | ipState | [optional] the new state |
Definition at line 911 of file MagAOXApp.hpp.
|
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.
p | [in/out] The property containing the element to possibly update | |
[in] | el | The element name |
[in] | newVal | the new value |
Definition at line 865 of file MagAOXApp.hpp.
|
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.
p | [in/out] The property containing the element to possibly update | |
[in] | els | String vector of element names |
[in] | newVals | the new values |
[in] | newState | [optional] The state of the property |
Definition at line 928 of file MagAOXApp.hpp.
|
inherited |
Update the INDI properties for this device controller.
You should call this once per main loop. It is not called automatically.
Definition at line 249 of file shmimMonitor.hpp.
|
inherited |
Update the INDI properties for this device controller.
You should call this once per main loop. It is not called automatically.
Definition at line 249 of file shmimMonitor.hpp.
|
inherited |
Update the INDI properties for this device controller.
You should call this once per main loop. It is not called automatically.
Definition at line 249 of file shmimMonitor.hpp.
|
protectedinherited |
Definition at line 380 of file dmPokeWFS.hpp.
|
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.
p | [in/out] The property containing the element to possibly update | |
[in] | el | The element name |
[in] | newVal | the new value |
Definition at line 893 of file MagAOXApp.hpp.
|
protectedinherited |
Execute the frame grabber main loop.
Definition at line 331 of file dmPokeWFS.hpp.
|
staticprotectedinherited |
Thread starter, called by wfsThreadStart on thread construction. Calls wfsThreadExec.
[in] | s | a pointer to an streamWriter instance (normally this) |
Definition at line 328 of file dmPokeWFS.hpp.
|
protectedvirtualinherited |
This method is called while the power is off, once per FSM loop.
Reimplemented in MagAOX::app::zaberLowLevel, MagAOX::app::irisaoCtrl, MagAOX::app::bmcCtrl, and MagAOX::app::alpaoCtrl.
Definition at line 1050 of file MagAOXApp.hpp.
|
inherited |
Definition at line 131 of file shmimMonitor.hpp.
|
inherited |
Definition at line 131 of file shmimMonitor.hpp.
|
inherited |
Definition at line 131 of file shmimMonitor.hpp.
|
friend |
Definition at line 61 of file dmPokeXCorr.hpp.
|
friend |
Definition at line 69 of file dmPokeXCorr.hpp.
|
friend |
Definition at line 65 of file dmPokeXCorr.hpp.
|
friend |
Definition at line 73 of file dmPokeXCorr.hpp.
|
friend |
Definition at line 77 of file dmPokeXCorr.hpp.
|
friend |
Definition at line 61 of file dmPokeXCorr.hpp.
|
inlineprotectedinherited |
Definition at line 209 of file dmPokeWFS.hpp.
|
protectedinherited |
Flag indicating that all registered Set properties have been updated since last Get.
Definition at line 582 of file MagAOXApp.hpp.
|
protectedinherited |
The path to calibration files for MagAOX.
Definition at line 89 of file MagAOXApp.hpp.
|
protectedinherited |
The name of a base config class for this app (minus .conf).
Definition at line 87 of file MagAOXApp.hpp.
|
protectedinherited |
The path to configuration files for MagAOX.
Definition at line 85 of file MagAOXApp.hpp.
|
protectedinherited |
The name of the configuration file (minus .conf).
Definition at line 83 of file MagAOXApp.hpp.
|
protectedinherited |
True if continuous measurements are in progress.
Definition at line 343 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 217 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 424 of file MagAOXApp.hpp.
|
protectedinherited |
The dark image.
Definition at line 205 of file dmPokeWFS.hpp.
|
protectedinherited |
Flag indicating if dark is valid based on its size.
Definition at line 207 of file dmPokeWFS.hpp.
|
protectedinherited |
The ImageStreamIO type code.
Definition at line 120 of file shmimMonitor.hpp.
|
protectedinherited |
The ImageStreamIO type code.
Definition at line 120 of file shmimMonitor.hpp.
|
protectedinherited |
The ImageStreamIO type code.
Definition at line 120 of file shmimMonitor.hpp.
|
protectedinherited |
Definition at line 215 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 216 of file dmPokeWFS.hpp.
|
protectedinherited |
The depth of the circular buffer in the stream.
Definition at line 118 of file shmimMonitor.hpp.
|
protectedinherited |
The depth of the circular buffer in the stream.
Definition at line 118 of file shmimMonitor.hpp.
|
protectedinherited |
The depth of the circular buffer in the stream.
Definition at line 118 of file shmimMonitor.hpp.
|
protectedinherited |
Definition at line 183 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 213 of file dmPokeWFS.hpp.
|
protectedinherited |
The time to sleep for the DM command to be applied, in microseconds. Default is 10000.
Definition at line 190 of file dmPokeWFS.hpp.
|
protectedinherited |
Pointer to a function to extract the dark image data as float.
Definition at line 211 of file dmPokeWFS.hpp.
|
protectedinherited |
Full path name of the INDI driver control FIFO.
This is currently only used to signal restarts.
Definition at line 593 of file MagAOXApp.hpp.
|
protectedinherited |
Full path name of the INDI driver input FIFO.
Definition at line 585 of file MagAOXApp.hpp.
|
protectedinherited |
Full path name of the INDI driver output FIFO.
Definition at line 588 of file MagAOXApp.hpp.
|
privateinherited |
The user id of the process as called (i.e. the higher privileged id of the owner, root if setuid).
Definition at line 314 of file MagAOXApp.hpp.
|
privateinherited |
The real user id of the proces (i.e. the lower privileged id of the user)
Definition at line 313 of file MagAOXApp.hpp.
|
protectedinherited |
If set to true by derivedT, any existing image will be grabbed and sent to processImage before waiting on the semaphore.
Definition at line 112 of file shmimMonitor.hpp.
|
protectedinherited |
If set to true by derivedT, any existing image will be grabbed and sent to processImage before waiting on the semaphore.
Definition at line 112 of file shmimMonitor.hpp.
|
protectedinherited |
If set to true by derivedT, any existing image will be grabbed and sent to processImage before waiting on the semaphore.
Definition at line 112 of file shmimMonitor.hpp.
|
privateinherited |
Definition at line 478 of file MagAOXApp.hpp.
|
protectedinherited |
The height of the images in the stream.
Definition at line 117 of file shmimMonitor.hpp.
|
protectedinherited |
The height of the images in the stream.
Definition at line 117 of file shmimMonitor.hpp.
|
protectedinherited |
The height of the images in the stream.
Definition at line 117 of file shmimMonitor.hpp.
|
protectedinherited |
Semaphore used to signal that an image is ready.
Definition at line 349 of file dmPokeWFS.hpp.
|
protectedinherited |
The time in sec to wait on the image semaphore. Default 0.5 sec.
Definition at line 177 of file dmPokeWFS.hpp.
|
protectedinherited |
The timeout for the image semaphore, nanoseconds component.
Definition at line 353 of file dmPokeWFS.hpp.
|
protectedinherited |
The timeout for the image semaphore, seconds component.
Definition at line 351 of file dmPokeWFS.hpp.
|
protectedinherited |
The ImageStreamIO shared memory buffer.
Definition at line 123 of file shmimMonitor.hpp.
|
protectedinherited |
The ImageStreamIO shared memory buffer.
Definition at line 123 of file shmimMonitor.hpp.
|
protectedinherited |
The ImageStreamIO shared memory buffer.
Definition at line 123 of file shmimMonitor.hpp.
|
inherited |
The INDI driver wrapper. Constructed and initialized by execute, which starts and stops communications.
Definition at line 542 of file MagAOXApp.hpp.
|
inherited |
Mutex for locking INDI communications.
Definition at line 545 of file MagAOXApp.hpp.
|
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 573 of file MagAOXApp.hpp.
|
protectedinherited |
indi Property to clear an FSM alert.
Definition at line 980 of file MagAOXApp.hpp.
|
protectedinherited |
Switch to start continuous measurement.
Definition at line 404 of file dmPokeWFS.hpp.
|
protectedinherited |
Property used to report the current frame size.
Definition at line 239 of file shmimMonitor.hpp.
|
protectedinherited |
Property used to report the current frame size.
Definition at line 239 of file shmimMonitor.hpp.
|
protectedinherited |
Property used to report the current frame size.
Definition at line 239 of file shmimMonitor.hpp.
|
protectedinherited |
Property to report the delta measurement, including the loop counter.
Definition at line 410 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 395 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 392 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 389 of file dmPokeWFS.hpp.
|
protectedinherited |
INDI property used to communicate power state.
Definition at line 1036 of file MagAOXApp.hpp.
|
protectedinherited |
Property used to report the shmim buffer name.
Definition at line 237 of file shmimMonitor.hpp.
|
protectedinherited |
Property used to report the shmim buffer name.
Definition at line 237 of file shmimMonitor.hpp.
|
protectedinherited |
Property used to report the shmim buffer name.
Definition at line 237 of file shmimMonitor.hpp.
|
protectedinherited |
Switch to start a single measurement.
Definition at line 401 of file dmPokeWFS.hpp.
|
protectedinherited |
indi Property to report the application state.
Definition at line 977 of file MagAOXApp.hpp.
|
protectedinherited |
Switch to request that measurement stop.
Definition at line 407 of file dmPokeWFS.hpp.
|
protectedinherited |
Property to get the FPS from the WFS camera.
Definition at line 398 of file dmPokeWFS.hpp.
|
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 578 of file MagAOXApp.hpp.
|
protectedinherited |
The inode of the image stream file.
Definition at line 125 of file shmimMonitor.hpp.
|
protectedinherited |
The inode of the image stream file.
Definition at line 125 of file shmimMonitor.hpp.
|
protectedinherited |
The inode of the image stream file.
Definition at line 125 of file shmimMonitor.hpp.
|
staticinherited |
Definition at line 237 of file MagAOXApp.hpp.
|
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 95 of file MagAOXApp.hpp.
|
inherited |
The maximum interval, in seconds, between telemetry records. Default is 10.0 seconds.
Definition at line 75 of file telemeter.hpp.
|
protectedinherited |
Status of measuring: 0 no, 1 single in progress, 2 continuous in progress.
Definition at line 339 of file dmPokeWFS.hpp.
|
protectedinherited |
The number of poke sequences to average. Default is 10.
Definition at line 181 of file dmPokeWFS.hpp.
|
protectedinherited |
The number of images to average for the poke images. Default is 5.
Definition at line 179 of file dmPokeWFS.hpp.
|
protectedinherited |
This process's PID.
Definition at line 394 of file MagAOXApp.hpp.
|
protectedinherited |
Definition at line 188 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 185 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 186 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 198 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 199 of file dmPokeWFS.hpp.
|
protectedinherited |
The INDI property name of the channel controlling this device's power.
Definition at line 1022 of file MagAOXApp.hpp.
|
protectedinherited |
The INDI device name of the power controller.
Definition at line 1021 of file MagAOXApp.hpp.
|
protectedinherited |
The INDI element name to monitor for this device's power state.
Definition at line 1023 of file MagAOXApp.hpp.
|
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 1016 of file MagAOXApp.hpp.
|
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 1029 of file MagAOXApp.hpp.
|
protectedinherited |
Time in sec to wait for device to boot after power on.
Definition at line 1026 of file MagAOXApp.hpp.
|
protectedinherited |
Current power state, 1=On, 0=Off, -1=Unk.
Definition at line 1033 of file MagAOXApp.hpp.
|
protectedinherited |
The INDI element name to monitor for this device's power state.
Definition at line 1024 of file MagAOXApp.hpp.
|
protectedinherited |
Current target power state, 1=On, 0=Off, -1=Unk.
Definition at line 1034 of file MagAOXApp.hpp.
|
protectedinherited |
Definition at line 196 of file dmPokeWFS.hpp.
|
protected |
Definition at line 94 of file dmPokeXCorr.hpp.
Referenced by allocate(), and processImage().
|
protectedinherited |
Flag indicating tha the shared memory should be reinitialized.
Definition at line 205 of file shmimMonitor.hpp.
|
protectedinherited |
Flag indicating tha the shared memory should be reinitialized.
Definition at line 205 of file shmimMonitor.hpp.
|
protectedinherited |
Flag indicating tha the shared memory should be reinitialized.
Definition at line 205 of file shmimMonitor.hpp.
|
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 289 of file MagAOXApp.hpp.
|
staticprotectedinherited |
Static pointer to this (set in constructor). Used for getting out of the static SIGSEGV handler.
Definition at line 207 of file shmimMonitor.hpp.
|
staticprotectedinherited |
Static pointer to this (set in constructor). Used for getting out of the static SIGSEGV handler.
Definition at line 207 of file shmimMonitor.hpp.
|
staticprotectedinherited |
Static pointer to this (set in constructor). Used for getting out of the static SIGSEGV handler.
Definition at line 207 of file shmimMonitor.hpp.
|
protectedinherited |
The image structure semaphore index.
Definition at line 114 of file shmimMonitor.hpp.
|
protectedinherited |
The image structure semaphore index.
Definition at line 114 of file shmimMonitor.hpp.
|
protectedinherited |
The image structure semaphore index.
Definition at line 114 of file shmimMonitor.hpp.
|
protectedinherited |
The name of the shared memory image, is used in /tmp/<shmimName>.im.shm
. Derived classes should set a default.
Definition at line 104 of file shmimMonitor.hpp.
|
protectedinherited |
The name of the shared memory image, is used in /tmp/<shmimName>.im.shm
. Derived classes should set a default.
Definition at line 104 of file shmimMonitor.hpp.
|
protectedinherited |
The name of the shared memory image, is used in /tmp/<shmimName>.im.shm
. Derived classes should set a default.
Definition at line 104 of file shmimMonitor.hpp.
|
protectedinherited |
Flag to signal it's time to shutdown. When not 0, the main loop exits.
Definition at line 100 of file MagAOXApp.hpp.
|
protectedinherited |
True a single measurement is in progress.
Definition at line 341 of file dmPokeWFS.hpp.
|
protectedinherited |
The cpuset to assign the shmimMonitor thread to. Ignored if empty (the default).
Definition at line 108 of file shmimMonitor.hpp.
|
protectedinherited |
The cpuset to assign the shmimMonitor thread to. Ignored if empty (the default).
Definition at line 108 of file shmimMonitor.hpp.
|
protectedinherited |
The cpuset to assign the shmimMonitor thread to. Ignored if empty (the default).
Definition at line 108 of file shmimMonitor.hpp.
|
protectedinherited |
A separate thread for the actual monitoring.
Definition at line 220 of file shmimMonitor.hpp.
|
protectedinherited |
A separate thread for the actual monitoring.
Definition at line 220 of file shmimMonitor.hpp.
|
protectedinherited |
A separate thread for the actual monitoring.
Definition at line 220 of file shmimMonitor.hpp.
|
protectedinherited |
The s.m. thread PID.
Definition at line 216 of file shmimMonitor.hpp.
|
protectedinherited |
The s.m. thread PID.
Definition at line 216 of file shmimMonitor.hpp.
|
protectedinherited |
The s.m. thread PID.
Definition at line 216 of file shmimMonitor.hpp.
|
protectedinherited |
Synchronizer for thread startup, to allow priority setting to finish.
Definition at line 214 of file shmimMonitor.hpp.
|
protectedinherited |
Synchronizer for thread startup, to allow priority setting to finish.
Definition at line 214 of file shmimMonitor.hpp.
|
protectedinherited |
Synchronizer for thread startup, to allow priority setting to finish.
Definition at line 214 of file shmimMonitor.hpp.
|
protectedinherited |
Priority of the shmimMonitor thread, should normally be > 00.
Definition at line 106 of file shmimMonitor.hpp.
|
protectedinherited |
Priority of the shmimMonitor thread, should normally be > 00.
Definition at line 106 of file shmimMonitor.hpp.
|
protectedinherited |
Priority of the shmimMonitor thread, should normally be > 00.
Definition at line 106 of file shmimMonitor.hpp.
|
protectedinherited |
The property to hold the s.m. thread details.
Definition at line 218 of file shmimMonitor.hpp.
|
protectedinherited |
The property to hold the s.m. thread details.
Definition at line 218 of file shmimMonitor.hpp.
|
protectedinherited |
The property to hold the s.m. thread details.
Definition at line 218 of file shmimMonitor.hpp.
|
privateinherited |
The application's state. Never ever set this directly, use state(const stateCodeT & s).
Definition at line 472 of file MagAOXApp.hpp.
|
privateinherited |
Definition at line 475 of file MagAOXApp.hpp.
|
privateinherited |
Counter and flag for use to log errors just once. Never ever access directly, use stateLogged().
Definition at line 480 of file MagAOXApp.hpp.
|
protectedinherited |
Used to request that the measurement in progress stop.
Definition at line 345 of file dmPokeWFS.hpp.
|
privateinherited |
The save-set user id of the process.
Definition at line 316 of file MagAOXApp.hpp.
|
inherited |
Definition at line 73 of file telemeter.hpp.
|
protectedinherited |
The size of the type, in bytes. Result of sizeof.
Definition at line 121 of file shmimMonitor.hpp.
|
protectedinherited |
The size of the type, in bytes. Result of sizeof.
Definition at line 121 of file shmimMonitor.hpp.
|
protectedinherited |
The size of the type, in bytes. Result of sizeof.
Definition at line 121 of file shmimMonitor.hpp.
|
staticconstexprprotectedinherited |
Flag controlling whether INDI is used. If false, then no INDI code executes.
Definition at line 537 of file MagAOXApp.hpp.
|
protectedinherited |
INDI device name of the WFS camera. Default is wfscam.shmimName.
Definition at line 173 of file dmPokeWFS.hpp.
|
protectedinherited |
The cpuset for the framegrabber thread. Ignored if empty (the default).
Definition at line 317 of file dmPokeWFS.hpp.
|
protectedinherited |
Pointer to a function to extract the image data as float.
The WFS camera FPS
Definition at line 203 of file dmPokeWFS.hpp.
|
protectedinherited |
Definition at line 194 of file dmPokeWFS.hpp.
|
protectedinherited |
Semaphore used to signal the WFS thread to start WFSing.
Definition at line 333 of file dmPokeWFS.hpp.
|
protectedinherited |
The time in sec to wait on the WFS semaphore. Default 0.5 sec.
Definition at line 175 of file dmPokeWFS.hpp.
|
protectedinherited |
The timeoutfor the WFS semaphore, nanoseconds component.
Definition at line 337 of file dmPokeWFS.hpp.
|
protectedinherited |
The timeout for the WFS semaphore, seconds component.
Definition at line 335 of file dmPokeWFS.hpp.
|
protectedinherited |
A separate thread for the actual WFSing.
Definition at line 319 of file dmPokeWFS.hpp.
|
protectedinherited |
WFS thread PID.
Definition at line 323 of file dmPokeWFS.hpp.
|
protectedinherited |
Synchronizer to ensure wfs thread initializes before doing dangerous things.
Definition at line 321 of file dmPokeWFS.hpp.
|
protectedinherited |
Priority of the WFS thread, should normally be > 00.
Definition at line 315 of file dmPokeWFS.hpp.
|
protectedinherited |
The property to hold the WFS thread details.
Definition at line 325 of file dmPokeWFS.hpp.
|
protectedinherited |
The width of the images in the stream.
Definition at line 116 of file shmimMonitor.hpp.
|
protectedinherited |
The width of the images in the stream.
Definition at line 116 of file shmimMonitor.hpp.
|
protectedinherited |
The width of the images in the stream.
Definition at line 116 of file shmimMonitor.hpp.
|
protected |
Definition at line 92 of file dmPokeXCorr.hpp.
Referenced by analyzeSensor(), and processImage().
|
protected |
Definition at line 88 of file dmPokeXCorr.hpp.
|
protectedinherited |
The base path of the MagAO-X system.
Definition at line 81 of file MagAOXApp.hpp.
|
protectedinherited |
The name of the PID file.
Definition at line 392 of file MagAOXApp.hpp.
|
protectedinherited |
Path to the secrets directory, where passwords, etc, are stored.
Definition at line 93 of file MagAOXApp.hpp.
|
protectedinherited |
The path to the system directory, for PID file, etc.
Definition at line 91 of file MagAOXApp.hpp.
|
inlineprotectedinherited |
Definition at line 201 of file dmPokeWFS.hpp.