
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, stopRequired| Constructor and Description |
|---|
APCTestBench2CanBusMain(BridgeToHardware bridge,
BridgeToHardware bridgeToLoader)
Build a main module for APC testbench with 2 CANbus.
|
APCTestBench2CanBusMain(BridgeToHardware bridge,
BridgeToHardware bridgeToLoader,
Thermometer thermometer,
CanOpenLED led,
CanOpenLED fakeLed,
Thermometer fakeSensor)
Build a main module for APC testbench with 2 CANbus with :
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectLoader() |
void |
disconnectLoader() |
boolean |
isChangerConnected() |
boolean |
isChangerReady() |
boolean |
isLoaderConnected() |
boolean |
isLoaderReady() |
double |
readTemperature()
Read temperature.
|
String |
turnOffLED()
Turn OFF the Led.
|
String |
turnOnLED()
To turn the LED on.
|
void |
updateStateWithSensors()
Update state in reading sensors.
|
controlRealHardware, getFilterNames, initModule, isCANDevicesReady, isHaltRequired, isStopRequired, listHardwareNames, listLoaderHardwareNames, postStart, signal, updateFCSStategetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected BridgeToHardware bridgeToLoader
public double temperature
public APCTestBench2CanBusMain(BridgeToHardware bridge, BridgeToHardware bridgeToLoader)
bridge - bridgeToLoader - public APCTestBench2CanBusMain(BridgeToHardware bridge, BridgeToHardware bridgeToLoader, Thermometer thermometer, CanOpenLED led, CanOpenLED fakeLed, Thermometer fakeSensor)
bridge - bridgeToLoader - thermometer - led - fakeLed - 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.HardwareException
org.lsst.ccs.HardwareException@Command(type=QUERY, level=0, description="Read temperature.") public double readTemperature() throws LoaderDisconnectedException
FcsHardwareExceptionLoaderDisconnectedException@Command(type=ACTION, level=0, description="Turn ON the Led.") public String turnOnLED()
SDORequestExceptionHardwareNotDetectedException@Command(type=ACTION, level=0, description="Turn OFF the Led.") public String turnOffLED()
FcsHardwareExceptionpublic void updateStateWithSensors()
MainModuleupdateStateWithSensors in class MainModuleCopyright © 2017 LSST. All rights reserved.