public class SimuEPOSControllerModule extends org.lsst.ccs.framework.Module implements EPOSController
| Modifier and Type | Field and Description |
|---|---|
boolean |
on |
| Constructor and Description |
|---|
SimuEPOSControllerModule(String string,
int i) |
| Modifier and Type | Method and Description |
|---|---|
String |
changeMode(CanOpenEPOS.EposMode newMode)
This methods changes the mode to the new mode given as an argument.
|
String |
changeMode(String modeInString)
Changes the mode to the new mode given as a String argument.
|
boolean |
checkMotorParameters()
This methods read the parameters of the motor stored in the actuator
(hardware configuration)and compare with the configuration stored in the
Configuration Data Base (software configuration).
|
void |
defineAbsolutePosition(int position)
Defines the actual position as the absolute position which value is given as an argument.
|
String |
enable() |
int |
getReadValue() |
int |
getSentCurrentMaxValue() |
int |
getSentCurrentMinValue() |
int |
getSentValue() |
void |
initModule() |
boolean |
isOff() |
boolean |
isOn() |
boolean |
isTargetPositionReached(int targetPosition) |
String |
off() |
String |
on() |
int |
readPosition() |
void |
writeCurrent(int aValue)
In current mode this methods send a current to the motor.
|
void |
writeParameters(CanOpenEPOS.EposMode mode)
This methods writes in the CPU of the EPOS devis the values of the parameters set for the mode.
|
void |
writeParameters(Map<String,Integer> paramMap)
Write to the CPU of the EPOS a map of parameters.
|
void |
writeTargetPosition(int position)
In PROFILE_POSITION mode this methods set the target position.
|
alias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic SimuEPOSControllerModule(String string, int i)
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic String changeMode(String modeInString) throws SDORequestException
modeInString - SDORequestExceptionpublic String changeMode(CanOpenEPOS.EposMode newMode) throws SDORequestException
EPOSControllerchangeMode in interface EPOSControllerSDORequestExceptionpublic boolean checkMotorParameters()
throws EPOSConfigurationException
EPOSControllercheckMotorParameters in interface EPOSControllerEPOSConfigurationExceptionpublic void defineAbsolutePosition(int position)
throws SDORequestException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException
EPOSControllerdefineAbsolutePosition in interface EPOSControllerSDORequestExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic void writeParameters(CanOpenEPOS.EposMode mode) throws SDORequestException, org.lsst.ccs.bus.ErrorInCommandExecutionException
EPOSControllerwriteParameters in interface EPOSControllerSDORequestExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic void writeTargetPosition(int position)
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
EPOSControllerwriteTargetPosition in interface EPOSControllerposition - UNIT=mA / FORMAT=decimal the value of the current to be sent.org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic void writeParameters(Map<String,Integer> paramMap) throws SDORequestException
EPOSControllerwriteParameters in interface EPOSControllerSDORequestExceptionpublic void writeCurrent(int aValue)
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
EPOSControllerwriteCurrent in interface EPOSControlleraValue - UNIT=mA / FORMAT=decimal the value of the current to be sent.org.lsst.ccs.bus.BadCommandExceptionSDORequestExceptionpublic String on() throws SDORequestException, org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
on in interface ActuatorSDORequestExceptionorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String off() throws SDORequestException, org.lsst.ccs.bus.BadCommandException
off in interface ActuatorSDORequestExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic int getReadValue()
getReadValue in interface Actuatorpublic int getSentValue()
getSentValue in interface Actuatorpublic int getSentCurrentMinValue()
getSentCurrentMinValue in interface Actuatorpublic int getSentCurrentMaxValue()
getSentCurrentMaxValue in interface Actuatorpublic boolean isTargetPositionReached(int targetPosition)
isTargetPositionReached in interface EPOSControllerpublic int readPosition()
throws SDORequestException
readPosition in interface EPOSControllerSDORequestExceptionpublic String enable() throws SDORequestException
enable in interface EPOSControllerSDORequestExceptionCopyright © 2014 LSST. All Rights Reserved.