public class APCTestBench2CanBusMain extends MainModule
| Modifier and Type | Field and Description |
|---|---|
protected BridgeToHardware |
bridgeToLoader
this bridge is to communicate with the canbus1 on the PC104
|
double |
temperature |
bridge, fcslog, haltRequired, hardwareReady, stopRequired| Constructor and Description |
|---|
APCTestBench2CanBusMain(String aName,
int aTickMillis,
BridgeToHardware bridge,
BridgeToHardware bridgeToLoader) |
APCTestBench2CanBusMain(String aName,
int aTickMillis,
BridgeToHardware bridge,
BridgeToHardware bridgeToLoader,
Thermometer thermometer,
CanOpenLED led,
CanOpenLED fakeLed,
Thermometer fakeSensor) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectLoader() |
void |
disconnectLoader() |
boolean |
isChangerConnected() |
boolean |
isChangerReady() |
boolean |
isLoaderConnected() |
boolean |
isLoaderReady() |
double |
readTemperature() |
void |
tick() |
String |
turnOffLED() |
String |
turnOnLED() |
void |
updateStateWithSensors() |
controlRealHardware, getCanOpenHardwareFullState, getHaltRequired, getStopRequired, getSubsystemState, getTcpProxy, initModule, isHardwareReady, listHardware, postStart, signal, simulateAlarm, toStringalias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkprotected BridgeToHardware bridgeToLoader
public double temperature
public APCTestBench2CanBusMain(String aName, int aTickMillis, BridgeToHardware bridge, BridgeToHardware bridgeToLoader)
public APCTestBench2CanBusMain(String aName, int aTickMillis, BridgeToHardware bridge, BridgeToHardware bridgeToLoader, Thermometer thermometer, CanOpenLED led, CanOpenLED fakeLed, Thermometer fakeSensor)
public boolean isChangerConnected()
public boolean isLoaderConnected()
public boolean isChangerReady()
public boolean isLoaderReady()
public void disconnectLoader()
throws InterruptedException
InterruptedExceptionpublic void connectLoader()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.HardwareExceptionpublic double readTemperature()
throws FcsHardwareException,
LoaderDisconnectedException
public void tick()
tick in class org.lsst.ccs.framework.Modulepublic String turnOnLED() throws SDORequestException, HardwareNotDetectedException
public String turnOffLED() throws SDORequestException, HardwareNotDetectedException
public void updateStateWithSensors()
throws FcsHardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException
updateStateWithSensors in class MainModuleFcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionCopyright © 2015 LSST. All rights reserved.