public class RotatorDriver extends Object implements RotatorInterface, AutoCloseable
| Constructor and Description |
|---|
RotatorDriver() |
RotatorDriver(ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPositionListener(PositionListener positionListener) |
void |
addStateChangeListener(RotatorStateChangeListener stateChangeListener) |
void |
clearError()
Clear the Fault state, sending the controller into Offline substate
PublishOnly.You must use the engineering user interface to transition
from that to Offline substate Available before the CSC can control the
rotator.
|
void |
close() |
void |
configureAcceleration(double aLimit)
Limit the minimum and maximum acceleration level of the rotator to be set
within the global limit of +/- 1 deg/s2.
|
void |
configureVelocity(double vLimit)
The configure Velocity command limits the minimum and maximum velocity
level of the rotator to be set within the global limit of +/- 3.5 deg/s.
|
void |
disable() |
void |
enable() |
void |
enterControl() |
void |
exitControl() |
Date |
getLastHeartbeat() |
Position |
getPosition() |
RotatorState |
getRotatorState() |
org.lsst.sal.rotator.event.SummaryStateEvent.SummaryState |
getSummaryState() |
void |
move(double position)
Move the rotator to the specified position and stop.During the move the
enabled substate will be MovingPointToPoint, then it will return to
Stationary.
|
void |
removePositionListener(PositionListener positionListener) |
void |
removeStateChangeListener(RotatorStateChangeListener stateChangeListener) |
void |
standby() |
void |
start(String config) |
void |
stop()
Stop any current rotation.
|
public RotatorDriver()
public RotatorDriver(ExecutorService executor)
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in interface AutoCloseableorg.lsst.ccs.drivers.commons.DriverExceptionpublic void move(double position)
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
RotatorInterfacemove in interface RotatorInterfaceposition - The target position in degreesorg.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void enable()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
org.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void disable()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
org.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void standby()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
org.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void start(String config) throws org.lsst.ccs.drivers.commons.DriverException, TimeoutException
org.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void enterControl()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
org.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void exitControl()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
org.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void stop()
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
RotatorInterfacestop in interface RotatorInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void configureAcceleration(double aLimit)
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
RotatorInterfaceconfigureAcceleration in interface RotatorInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void configureVelocity(double vLimit)
throws org.lsst.ccs.drivers.commons.DriverException,
TimeoutException
RotatorInterfaceconfigureVelocity in interface RotatorInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionTimeoutExceptionpublic void clearError()
throws TimeoutException,
org.lsst.ccs.drivers.commons.DriverException
RotatorInterfaceclearError in interface RotatorInterfaceTimeoutExceptionorg.lsst.ccs.drivers.commons.DriverExceptionpublic void addStateChangeListener(RotatorStateChangeListener stateChangeListener)
addStateChangeListener in interface RotatorInterfacepublic void removeStateChangeListener(RotatorStateChangeListener stateChangeListener)
removeStateChangeListener in interface RotatorInterfacepublic void addPositionListener(PositionListener positionListener)
addPositionListener in interface RotatorInterfacepublic void removePositionListener(PositionListener positionListener)
removePositionListener in interface RotatorInterfacepublic Date getLastHeartbeat()
public org.lsst.sal.rotator.event.SummaryStateEvent.SummaryState getSummaryState()
public RotatorState getRotatorState()
public Position getPosition()
Copyright © 2022 LSST. All rights reserved.