org.lsst.ccs.subsystems.fcs.drivers
Class ClampActuatorModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.drivers.ClampActuatorModule
All Implemented Interfaces:
java.io.Serializable, java.util.Observer, Actuator

public abstract class ClampActuatorModule
extends org.lsst.ccs.framework.Module
implements Actuator

This is a model for the clamp actuator in the Single Filter Test. The actuator is used to unlock or release a clamp. To unlock a clamp, the actuator must be ON and to release the clamp it has to be OFF. There is 2 clamps actuators on the carousel : one for side X-, one for side X+ For the Single Filter Test the actuator will be Maxon Motor EPOS2 24/5 There is many operation modes for this actuators. For the Single Filter Test, we will use VELOCITY mode or CURRENT mode.

Author:
virieux
See Also:
Serialized Form

Nested Class Summary
static class ClampActuatorModule.ActuatorMode
           
 
Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module
org.lsst.ccs.framework.Module.ValueUpdate
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.Module
log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
ClampActuatorModule(int nodeID, int inputID)
           
 
Method Summary
 void enable()
           
 int getCurrentValue()
           
 int getVelocityValue()
           
 void initModule()
           
 boolean isOff()
           
 boolean isOn()
           
 java.lang.String off()
           
 java.lang.String on()
           
 void quickStop()
           
 void setCurrent()
           
 void setCurrentValue(int currentValue)
           
 void setMaxiAcceleration(int acceleration)
           
 void setMaxiVelocity(int velocity)
           
 void setVelocity()
           
 void setVelocityValue(int velocityValue)
           
 void stopCurrent()
           
 void stopVelocity()
           
 int writeDAC(int index, int subindex, int newValue)
           
 
Methods inherited from class org.lsst.ccs.framework.Module
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, start, tick, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClampActuatorModule

public ClampActuatorModule(int nodeID,
                           int inputID)
Method Detail

getCurrentValue

public int getCurrentValue()
Returns:
the currentValue

setCurrentValue

public void setCurrentValue(int currentValue)
Parameters:
currentValue - the currentValue to set

getVelocityValue

public int getVelocityValue()
Returns:
the velocityValue

setVelocityValue

public void setVelocityValue(int velocityValue)
Parameters:
velocityValue - the velocityValue to set

initModule

public void initModule()
Overrides:
initModule in class org.lsst.ccs.framework.Module

enable

public void enable()

setMaxiVelocity

public void setMaxiVelocity(int velocity)

setMaxiAcceleration

public void setMaxiAcceleration(int acceleration)

setVelocity

public void setVelocity()
                 throws org.lsst.ccs.bus.BadCommandException
Throws:
org.lsst.ccs.bus.BadCommandException

stopVelocity

public void stopVelocity()
                  throws org.lsst.ccs.bus.BadCommandException
Throws:
org.lsst.ccs.bus.BadCommandException

setCurrent

public void setCurrent()
                throws org.lsst.ccs.bus.BadCommandException
Throws:
org.lsst.ccs.bus.BadCommandException

stopCurrent

public void stopCurrent()
                 throws org.lsst.ccs.bus.BadCommandException
Throws:
org.lsst.ccs.bus.BadCommandException

quickStop

public void quickStop()

on

public java.lang.String on()
Specified by:
on in interface Actuator

off

public java.lang.String off()
Specified by:
off in interface Actuator

isOn

public boolean isOn()
Specified by:
isOn in interface Actuator

isOff

public boolean isOff()
Specified by:
isOff in interface Actuator

writeDAC

public int writeDAC(int index,
                    int subindex,
                    int newValue)


Copyright © 2012 LSST. All Rights Reserved.