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, 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()
To turn the LED on.
|
void |
updateStateWithSensors() |
controlRealHardware, getFilterNames, getHaltRequired, getStopRequired, getTcpProxy, initModule, isHardwareReady, listHardware, listHardwareNames, postStart, signal, simulateAlert, simulateWarning, toStringgetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected 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)
@Command(type=QUERY,
level=0,
description="Return true if the changer is connected.")
public boolean isChangerConnected()
@Command(type=QUERY,
level=0,
description="Return true if the loader is connected.")
public boolean isLoaderConnected()
@Command(type=QUERY,
level=0,
description="Return true if the hardware of the changer is ready.")
public boolean isChangerReady()
@Command(type=QUERY,
level=0,
description="Return true if the hardware of the loader is ready.")
public boolean isLoaderReady()
@Command(type=ACTION,
level=0,
description="Disconnect the (fake) loader.")
public void disconnectLoader()
throws InterruptedException
InterruptedException@Command(type=ACTION,
level=0,
description="Connect the (fake) loader.")
public void connectLoader()
throws org.lsst.ccs.messaging.BadCommandException,
org.lsst.ccs.HardwareException
org.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.HardwareException@Command(type=QUERY,
level=0,
description="Read temperature.")
public double readTemperature()
throws FcsHardwareException,
LoaderDisconnectedException
public void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION,
level=0,
description="Turn ON the Led.")
public String turnOnLED()
throws SDORequestException,
HardwareNotDetectedException,
FcsHardwareException
SDORequestExceptionHardwareNotDetectedExceptionFcsHardwareException@Command(type=ACTION,
level=0,
description="Turn OFF the Led.")
public String turnOffLED()
throws SDORequestException,
HardwareNotDetectedException,
FcsHardwareException
public void updateStateWithSensors()
throws FcsHardwareException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
org.lsst.ccs.messaging.BadCommandException
updateStateWithSensors in class MainModuleFcsHardwareExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionorg.lsst.ccs.messaging.BadCommandExceptionCopyright © 2016 LSST. All rights reserved.