public class CameraRotatorSubsystem
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.config.ConfigurationBulkChangeHandler
| Modifier and Type | Field and Description |
|---|---|
protected double |
maxAcceleration |
protected double |
maxVelocity |
| Constructor and Description |
|---|
CameraRotatorSubsystem()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disable Rotator
|
void |
enable()
Enable Rotator
|
org.lsst.ccs.drivers.rotator.Position |
getPosition()
Get Rotator position information
|
org.lsst.ccs.drivers.rotator.RotatorState |
getRotatorState()
Get RotatorState as of mos-recent rotator event
|
void |
init() |
void |
rotate(double position)
Rotate camera to specified absolute position in degrees.
|
void |
setParameterBulk(Map<String,Object> params)
Set configuration parameters to new values.
|
String |
showPosition()
Show Rotator position information
|
String |
showRotatorState()
Show/print RotatorState
|
void |
start() |
void |
stopRotation()
Stoo any rotation in progress
|
void |
validateBulkChange(Map<String,Object> params)
Checks validity of a proposed set of ConfigurationParameters
|
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@ConfigurationParameter(description="maximum rotator acceleration",
range="0.0..1.0",
units="deg/s**2")
protected volatile double maxAcceleration
@ConfigurationParameter(description="maximu rotator velocity",
range="0.0..3.5",
units="deg/s")
protected volatile double maxVelocity
public void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void start()
start in interface org.lsst.ccs.framework.HasLifecyclepublic void validateBulkChange(Map<String,Object> params)
validateBulkChange in interface org.lsst.ccs.config.ConfigurationBulkChangeHandlerMap - of ConfigurationParameters from name to valuepublic void setParameterBulk(Map<String,Object> params)
setParameterBulk in interface org.lsst.ccs.config.ConfigurationBulkChangeHandlerMap - of parameters for which a change is requested,
keyed by names@Command(type=ACTION,
level=0,
name="rotate",
description="Rotate the camera",
autoAck=false)
public void rotate(@Argument(name="position",description="absolute rotator position in degrees")
double position)
double - position (in degreed)@Command(type=ACTION,
level=0,
name="stopRotation",
description="Stop the rotator",
autoAck=false)
public void stopRotation()
@Command(type=QUERY,
level=0,
name="getRotatorState",
description="return RotatorState")
public org.lsst.ccs.drivers.rotator.RotatorState getRotatorState()
@Command(type=QUERY,
level=0,
name="showRotatorState",
description="return RotatorState as String")
public String showRotatorState()
@Command(type=QUERY,
level=0,
name="getPosition",
description="get Rotator Position object")
public org.lsst.ccs.drivers.rotator.Position getPosition()
@Command(type=QUERY,
level=0,
name="showPosition",
description="show Rotator position information")
public String showPosition()
@Command(type=ACTION,
level=1,
name="enable",
description="Enable Rotator")
public void enable()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
DriverException, - TimeoutExceptionorg.lsst.ccs.drivers.commons.DriverExceptionTimeoutException@Command(type=ACTION,
level=1,
name="disable",
description="Disable Rotator")
public void disable()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
DriverException, - TimeoutExceptionorg.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionCopyright © 2022 LSST. All rights reserved.