18 #ifndef __VisAOSimpleMotorCtrl_h__
19 #define __VisAOSimpleMotorCtrl_h__
21 #include "SimpleMotorCtrl.h"
22 #include "VisAOFilterWheel.h"
55 map<std::string, float>::iterator
cpos_it;
72 virtual void updatePos(
bool force=
false);
92 enum control_modes{CMODE_NONE, CMODE_REMOTE, CMODE_LOCAL, CMODE_SCRIPT, CMODE_AUTO, CMODE_max};
133 #endif //__VisAOSimpleMotorCtrl_h__
control_modes
The control modes.
map< std::string, float >::iterator cpos_it
An iterator for accessing the custom pos list.
multimap< int, float > _customTypes
Custom filter types list.
static int control_mode
The current control mode.
virtual SimpleMotor * CreateMotor()
Overridden to test if this is a VisAOFilterWheel.
double getAbortPos()
Exposes the abort Position (_abortPos) for use in PosReqChanged (which is static) ...
static int CModeReqChanged(void *pt, Variable *msgb)
RTDB handler for a control mode change request from the AO Supervisor.
virtual void updatePos(bool force=false)
Update position variables in RTDB.
static int VisAO_PosLocalReqChanged(void *pt, Variable *msgb)
RTDB handler for a position change by the AO Supervisor.
static int VisAO_PosReqChanged(void *pt, Variable *msgb)
RTDB handler for a position change by the AO Supervisor.
int GetType(double pos)
Get the position type from the wheel position.
static int VisAO_PosScriptReqChanged(void *pt, Variable *msgb)
RTDB handler for a position change by the AO Supervisor.
RTDBvar var_cmode_req
The requested control mode in the RTDB.
std::string GetPosName(double pos)
Get the position name from wheel position.
A class to provide VisAO functionality to the adopt motor controller.
Declarations for VisAOApp_base.
void SetupVars()
Virtual function to setup variables in RTDB.
VisAOSimpleMotorCtrl(std::string name, const std::string &conffile)
Standard adopt style config file constructor.
multimap< int, float >::iterator ctype_it
An iterator for accessing the custom pos list.
virtual int request_control(int cmode)
Calls request_control(cmode, 0).
The namespace of VisAO software.
RTDBvar var_cmode_cur
The current control mode in the RTDB.
static int default_control_mode
The default control mode.