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

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

public class CanOpenLatchActuatorModule
extends LatchActuatorModule

This is a model for a motor which locks or unlocks a latch. The motor is driven by a CAN-CBX-AO412. We sent to the CAN-CBX-AO412 a current value.

Author:
virieux
See Also:
Serialized Form

Nested Class Summary
 
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.subsystems.fcs.LatchActuatorModule
sentSpeedMaxValue, sentSpeedMinValue
 
Fields inherited from class org.lsst.ccs.framework.Module
configMethods, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
CanOpenLatchActuatorModule()
           
 
Method Summary
 String close()
          This is the command that has to be sent to the latch actuator to close the latch it (same as lock it).
 CanOpenDAC getDac()
           
 int getNumOfAnalogOutputForCurrentLimit()
           
 int getNumOfAnalogOutputForSpeedVoltage()
           
 String open()
          This is the command that has to be sent to the latch actuator to open the latch (same as unlock it).
 String powerOff()
          Power off the latch actuator.
 void setDac(CanOpenDAC dac)
           
 void setNumOfAnalogOutputForCurrentLimit(int numOfAnalogOutputForCurrentLimit)
           
 void setNumOfAnalogOutputForSpeedVoltage(int numOfAnalogOutputForSpeedVoltage)
           
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.LatchActuatorModule
getCurrentLimitInVolt, getSentSpeedMaxValue, getSentSpeedMinValue, getSpeedVoltageInVolt, setCurrentLimitInVolt, setSentSpeedMaxValue, setSentSpeedMinValue, setSpeedVoltageInVolt
 
Methods inherited from class org.lsst.ccs.framework.Module
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, initModule, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, 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

CanOpenLatchActuatorModule

public CanOpenLatchActuatorModule()
Method Detail

getNumOfAnalogOutputForSpeedVoltage

public int getNumOfAnalogOutputForSpeedVoltage()

setNumOfAnalogOutputForSpeedVoltage

public void setNumOfAnalogOutputForSpeedVoltage(int numOfAnalogOutputForSpeedVoltage)

getNumOfAnalogOutputForCurrentLimit

public int getNumOfAnalogOutputForCurrentLimit()

setNumOfAnalogOutputForCurrentLimit

public void setNumOfAnalogOutputForCurrentLimit(int numOfAnalogOutputForCurrentLimit)

getDac

public CanOpenDAC getDac()

setDac

public void setDac(CanOpenDAC dac)

open

public String open()
            throws org.lsst.ccs.bus.BadCommandException,
                   org.lsst.ccs.bus.ErrorInCommandExecutionException
Description copied from class: LatchActuatorModule
This is the command that has to be sent to the latch actuator to open the latch (same as unlock it).

Specified by:
open in class LatchActuatorModule
Returns:
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException

close

public String close()
             throws org.lsst.ccs.bus.BadCommandException,
                    org.lsst.ccs.bus.ErrorInCommandExecutionException
Description copied from class: LatchActuatorModule
This is the command that has to be sent to the latch actuator to close the latch it (same as lock it).

Specified by:
close in class LatchActuatorModule
Returns:
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException

powerOff

public String powerOff()
                throws org.lsst.ccs.bus.BadCommandException,
                       org.lsst.ccs.bus.ErrorInCommandExecutionException
Description copied from class: LatchActuatorModule
Power off the latch actuator.

Specified by:
powerOff in class LatchActuatorModule
Returns:
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException


Copyright © 2012 LSST. All Rights Reserved.