public class LoaderClampModule extends MobileItemModule implements MovedByEPOSController
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, FCSLOG, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, scheduler, stopRequired| Constructor and Description |
|---|
LoaderClampModule(LoaderHookModule hook1,
LoaderHookModule hook2,
LoaderHookModule hook3,
LoaderHookModule hook4,
Map<String,Integer> paramsForCurrentToClamp,
Map<String,Integer> paramsForCurrentToGoHomePosition)
Build a new LoaderClampModule with 4 hooks and the parameters to configure the EPOS controller
in mode CURRENT and in mode HOMING.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
checkConditionsToGoToHomePosition() |
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware() |
void |
checkInitialized()
Check if clamp is initialized.
|
void |
checkSensorsOK()
check if clamp sensors have correct values.
|
void |
clamp()
Clamp clamp or strongly close.
|
void |
close()
Close clamp in order to hold the filter.
|
StatusDataPublishedByLoaderClamp |
createStatusDataPublishedByLoaderClamp()
Creates and returns the object to be published on the STATUS bus by the LoaderClampModule.
|
String |
getControllerName()
Returns controller name.
|
int |
getCurrentToClamp() |
int |
getCurrentToGoHome() |
FcsEnumerations.LockStatus |
getLockStatus() |
int |
getTargetPositionToClamp() |
int |
getTargetPositionToClose() |
int |
getTargetPositionToOpen() |
void |
goToClampedPosition()
In the initialisation phase, this close the clamp to be able to define
the absolute position of the encoder.
|
void |
goToHomePosition()
In the initialisation phase, this open the clamp to be able to define the
absolute position of the encoder.
|
void |
initializeHardware()
If loader is empty, go to home position otherwise go to clamped position.
|
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action)
Check if the action is completed.
|
boolean |
isAtClampedPosition()
Returns true if hook is closed and at clamped position
|
boolean |
isAtClosedPosition()
Returns true if hook is at closed position.
|
boolean |
isAtHomePosition()
Returns true if hook is open and at home position
|
boolean |
isAtOpenPosition()
Returns true if hook is at open position.
|
boolean |
isCANDevicesReady()
Returns true if loader CANopen devices are booted, identified and initialized.
|
boolean |
isControllerInFault()
Return true if the controller is in fault (an EmergencyMessage has been previously received.)
|
boolean |
isInError()
Returns true if clamp LockStatus is in ERROR or LockStatus is UNKNOWN.
|
boolean |
isInitialized()
Returns true if loader clamp is initialized.
|
boolean |
isLocked()
Returns true if LockStatus=LOCKED
|
boolean |
isUnlocked()
Returns true if LockStatus=UNLOCKED
|
String |
listHooks()
Lists and display hooks ino.
|
String |
listSensorsValues()
List and display clamp sensors values.
|
void |
open()
Open clamp in order to release filter.
|
void |
postAction(FcsEnumerations.MobileItemAction action) |
String |
printHardwareState()
Return a printed list of hardware with initialization information.
|
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
setControllerInFault(boolean controllerInFault) |
void |
startAction(FcsEnumerations.MobileItemAction action) |
void |
tick() |
String |
toString() |
void |
updateCurrent()
Updates the field readCurrent of the clamp in reading the CPU of the
controller.
|
void |
updatePosition()
Updates the position of the clamp in reading the CPU of the controller.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
abort, abort, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprocessEmergencyMessage, processFaultReset, processUpdategetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarningchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic LoaderClampModule(LoaderHookModule hook1, LoaderHookModule hook2, LoaderHookModule hook3, LoaderHookModule hook4, Map<String,Integer> paramsForCurrentToClamp, Map<String,Integer> paramsForCurrentToGoHomePosition)
hook1 - hook2 - hook3 - hook4 - paramsForCurrentToClamp - paramsForCurrentToGoHomePosition - public String getControllerName()
getControllerName in interface MovedByEPOSControllerpublic boolean isControllerInFault()
MovedByEPOSControllerisControllerInFault in interface MovedByEPOSControllerpublic void setControllerInFault(boolean controllerInFault)
setControllerInFault in interface MovedByEPOSControllerpublic int getTargetPositionToOpen()
public int getTargetPositionToClose()
public int getTargetPositionToClamp()
public int getCurrentToClamp()
public int getCurrentToGoHome()
@Command(type=QUERY,
level=1,
description="Returns true if loader clamp is initialized.")
public boolean isInitialized()
public FcsEnumerations.LockStatus getLockStatus()
@Command(type=QUERY,
level=1,
description="Returns true if LockStatus=LOCKED")
public boolean isLocked()
@Command(type=QUERY,
level=1,
description="Returns true if LockStatus=UNLOCKED")
public boolean isUnlocked()
@Command(type=QUERY,
level=1,
description="Returns true if LockStatus=UNLOCKED")
public boolean isInError()
public boolean isCANDevicesReady()
isCANDevicesReady in class MobileItemModulepublic void initModule()
initModule in class MobileItemModule@Command(type=QUERY,
level=1,
description="Returns true if clamp is open and at home position")
public boolean isAtHomePosition()
@Command(type=QUERY,
level=1,
description="Returns true if hook is closed and at clamped position")
public boolean isAtClampedPosition()
@Command(type=QUERY,
level=1,
description="Returns true if hook is at closed position.")
public boolean isAtClosedPosition()
@Command(type=QUERY,
level=1,
description="Returns true if hook is at open position.")
public boolean isAtOpenPosition()
@Command(type=ACTION,
level=1,
description="Attention : this commands moves the clamp to do the homing of the controller. If loader is empty, go to home position otherwise go to clamped position.",
alias="homing")
public void initializeHardware()
FcsHardwareExceptionpublic 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 void checkSensorsOK()
FcsHardwareException - if in error.public void checkInitialized()
RejectedCommandException - if clamp is not initializedpublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION,
level=1,
description="Go to clamped position to intialize hardware.")
public void goToClampedPosition()
@Command(type=ACTION,
level=1,
description="Go to home position to initialize hardware.")
public void goToHomePosition()
public void checkConditionsToGoToHomePosition()
@Command(type=ACTION,
level=1,
description="Close clamp.")
public void close()
@Command(type=ACTION,
level=1,
description="Clamp clamp.")
public void clamp()
@Command(type=ACTION,
level=1,
description="Open clamp.")
public void open()
public boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModuleaction - public void updateStateWithSensorsToCheckIfActionIsCompleted()
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModulepublic void startAction(FcsEnumerations.MobileItemAction action)
startAction in class MobileItemModulepublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
abortAction in class MobileItemModulepublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItemModulepublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemModule@Command(type=QUERY,
level=1,
description="Update clamp current in reading controller.")
public void updateCurrent()
FcsHardwareException@Command(type=QUERY,
level=1,
description="Update clamp position in reading controller.")
public void updatePosition()
FcsHardwareException@Command(type=QUERY,
level=1,
description="List and display clamp info.")
public String listHooks()
@Command(type=QUERY,
level=1,
description="List and display clamp sensors values.")
public String listSensorsValues()
@Command(type=ACTION,
level=1,
description="Return a printed list of hardware with initialization information.")
public String printHardwareState()
@Command(type=QUERY,
level=1,
description="List and display clamp info.")
public String toString()
public StatusDataPublishedByLoaderClamp createStatusDataPublishedByLoaderClamp()
public void publishData()
publishData in interface MovedByEPOSControllerpublishData in class MobileItemModuleCopyright © 2016 LSST. All rights reserved.