
public class CarouselClampModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected FcsEnumerations.FilterClampState |
clampState |
protected EPOSController |
controller
The motor controller which controls this clamp.
|
protected int |
currentToMaintainUnlocked |
protected int |
currentToUnlock |
protected FcsEnumerations.FilterPresenceStatus |
filterPresenceStatus |
protected double |
temperature |
protected long |
timeoutForReleasing |
protected long |
timeoutForUnlocking |
protected boolean |
updatingState |
currentAction, FCSLOG, hasToWaitForEndOfAction, lock, scheduler| Constructor and Description |
|---|
CarouselClampModule(Sensor14bits filterPresenceSensor,
Sensor14bits lockSensor,
Thermometer thermometer)
Build a new CarouselClampModule with a tickMillis value:5000;
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay)
aborts action actually running.
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware() |
void |
computeClampState()
Compute the global state of the clamp given the lock sensor and the
presence filter sensor state.
|
StatusDataPublishedByCarouselClamp |
createStatusDataPublishedByClamp()
Create an object to be published on the STATUS bus.
|
FcsEnumerations.FilterClampState |
getClampState()
Returns the clampState of the clamp.
|
int |
getCurrentToUnlock()
Returns the amount of current needed to unlock this clamp.
|
Sensor14bits |
getFilterPresenceSensor()
For encapsulation : we want to access to filterPresenceSensor in
sub-packages.
|
FcsEnumerations.FilterPresenceStatus |
getFilterPresenceStatus() |
int |
getFilterPresenceValueA() |
int |
getFilterPresenceValueB() |
int |
getFilterPresenceValueC() |
Sensor14bits |
getLockSensor() |
int |
getLockSensorValueA() |
int |
getLockSensorValueB() |
int |
getLockSensorValueC() |
FcsEnumerations.LockStatus |
getLockStatus() |
void |
initModule()
***********************************************************************************************
|
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isCANDevicesReady() |
boolean |
isFilterEngaged() |
boolean |
isLocked()
This methods returns true if the clamp is locked.
|
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
release()
The clamps on the carousel are locked automaticaly when the filter comes
at the standby position.
|
protected void |
setController(EPOSController actuator)
In the initialization phase, this method is used to initialize the controller.
|
void |
startAction(FcsEnumerations.MobileItemAction action)
starts the action given as argument.
|
String |
toString() |
void |
unlock()
Unlock the clamp when a filter is locked by the clamp.
|
void |
updateStateWithSensors()
This method updates the clamp clampState regarding the value returned by
the filter presence sensor and the value returned by the method
isLocked().
|
void |
updateStateWithSensorsFromSDO()
Deprecated.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted()
reads sensors or any device and updates state from sensors
it can be also reading a position or a current on a motor controller.
|
double |
updateTemperature()
This methods read the thermometer, update the field temperature and
returns the value sent by the thermometer;
|
abort, abort, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, setNObserverThreads, setObservables, setTickMillis, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkprotected EPOSController controller
protected FcsEnumerations.FilterClampState clampState
protected FcsEnumerations.FilterPresenceStatus filterPresenceStatus
protected double temperature
protected volatile boolean updatingState
@ConfigurationParameter protected int currentToUnlock
@ConfigurationParameter protected int currentToMaintainUnlocked
@ConfigurationParameter(range="0..10000") protected long timeoutForUnlocking
@ConfigurationParameter(range="0..10000") protected long timeoutForReleasing
public CarouselClampModule(Sensor14bits filterPresenceSensor, Sensor14bits lockSensor, Thermometer thermometer)
filterPresenceSensor - lockSensor - thermometer - public int getCurrentToUnlock()
protected void setController(EPOSController actuator)
actuator - public int getLockSensorValueA()
public int getLockSensorValueB()
public int getLockSensorValueC()
public int getFilterPresenceValueA()
public int getFilterPresenceValueB()
public int getFilterPresenceValueC()
public Sensor14bits getFilterPresenceSensor()
public Sensor14bits getLockSensor()
@Command(type=QUERY, level=1, description="return the lockStatus") public FcsEnumerations.LockStatus getLockStatus()
@Command(type=QUERY, level=1, description="return filterPresenceStatus") public FcsEnumerations.FilterPresenceStatus getFilterPresenceStatus()
public void initModule()
initModule in class MobileItemModule@Command(type=QUERY, level=1, description="Returns true if CANopen hardware is connected and ready.") public boolean isCANDevicesReady()
isCANDevicesReady in class MobileItemModulepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllercheckHardware in class MobileItemModuleorg.lsst.ccs.HardwareExceptionpublic FcsEnumerations.FilterClampState getClampState()
@Command(type=QUERY, level=1, description="Returns true if the clamp is locked") public boolean isLocked()
@Command(type=QUERY, level=1, description="Returns true if filter is engaged on the clamp : filter presence sensors sees it ") public boolean isFilterEngaged()
@Deprecated public void updateStateWithSensorsFromSDO()
FcsHardwareException@Command(type=QUERY, level=1, alias="updateState", description="Read clamp sensors and update clampState") public void updateStateWithSensors()
FcsHardwareExceptionpublic void publishData()
publishData in class MobileItemModulepublic StatusDataPublishedByCarouselClamp createStatusDataPublishedByClamp()
public void computeClampState()
@Command(level=3, type=ACTION, description="Release clamp in order to get ready to clamp a filter again") public void release()
@Command(type=ACTION, level=3, description="Unlock the clamp") public void unlock()
public void startAction(FcsEnumerations.MobileItemAction action)
MobileItemModulestartAction in class MobileItemModulepublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemModulepublic void updateStateWithSensorsToCheckIfActionIsCompleted()
MobileItemModuleupdateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModulepublic double updateTemperature()
FcsHardwareException@Command(type=QUERY, level=3, description="display configuration values for this clamp.") public String toString()
public void abortAction(FcsEnumerations.MobileItemAction action, long delay)
MobileItemModuleabortAction in class MobileItemModulepublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItemModuleCopyright © 2017 LSST. All rights reserved.