public class Scale1ProtoTestBenchMainModule extends MainModule
| Modifier and Type | Field and Description |
|---|---|
double |
hygrometry |
double |
pressure |
double |
temperature |
bridge, fcslog, haltRequired, hardwareReady, stopRequired| Constructor and Description |
|---|
Scale1ProtoTestBenchMainModule(String aName,
int aTickMillis,
BridgeToHardware bridge,
HygrometrySensor hygrometrySensor,
PressureSensor pressureSensor,
Thermometer thermometer,
CanOpenLED led,
CanOpenLED fakeLed,
Thermometer fakeSensor,
Scale1ProtoPivotingFrame pivotingFrame,
LPCInclinometerModule inclinometer) |
| Modifier and Type | Method and Description |
|---|---|
double |
readFakeSensor() |
double |
readHygrometry()
Read hygrometry on the gauge and returns its values in decimal format.
|
double |
readPressure()
Read pressure on the gauge and returns its values in decimal format.
|
double |
readTemperature()
Read temperature on the gauge and returns its values in decimal format.
|
void |
rotateCamera(long angle)
Rotate camera around axe Z within angle value given as argument.
|
void |
rotateX(long angle)
Rotate camera around axe X within angle value given as argument.
|
void |
tick() |
String |
turnOffFakeLED() |
String |
turnOffLED()
Turn Off the led.
|
String |
turnOnFakeLED() |
String |
turnOnLED()
Turn On the led.
|
void |
updateStateWithSensors() |
controlRealHardware, getCanOpenHardwareFullState, getHaltRequired, getStopRequired, getTcpProxy, initModule, isHardwareReady, listHardware, postStart, signal, simulateAlarm, toStringalias, getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic double temperature
public double pressure
public double hygrometry
public Scale1ProtoTestBenchMainModule(String aName, int aTickMillis, BridgeToHardware bridge, HygrometrySensor hygrometrySensor, PressureSensor pressureSensor, Thermometer thermometer, CanOpenLED led, CanOpenLED fakeLed, Thermometer fakeSensor, Scale1ProtoPivotingFrame pivotingFrame, LPCInclinometerModule inclinometer)
@Command(type=QUERY,
level=1,
description="Read hygrometry on the gauge and returns its values in decimal format.")
public double readHygrometry()
throws FcsHardwareException
FcsHardwareException@Command(type=QUERY,
level=1,
description="Read pressure on the gauge and returns its values in decimal format.")
public double readPressure()
throws FcsHardwareException
FcsHardwareException@Command(type=QUERY,
level=1,
description="Read temperature on the gauge and returns its values in decimal format.")
public double readTemperature()
throws FcsHardwareException
FcsHardwareException@Command(type=ACTION,
level=1,
description="Turn On the led.")
public String turnOnLED()
throws SDORequestException,
HardwareNotDetectedException
SDORequestExceptionHardwareNotDetectedException@Command(type=ACTION,
level=1,
description="Turn Off the led.")
public String turnOffLED()
throws SDORequestException,
HardwareNotDetectedException
SDORequestExceptionHardwareNotDetectedExceptionpublic String turnOnFakeLED() throws SDORequestException, HardwareNotDetectedException
public String turnOffFakeLED() throws SDORequestException, HardwareNotDetectedException
public double readFakeSensor()
throws FcsHardwareException,
org.lsst.ccs.messaging.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.messaging.BadCommandException@Command(type=ACTION,
level=1,
description="Rotate camera around axe Z with angle value given as argument.")
public void rotateCamera(long angle)
angle - @Command(type=ACTION,
level=1,
description="Rotate camera around axe X with angle value given as argument.")
public void rotateX(long angle)
angle - public void tick()
tick in class org.lsst.ccs.framework.Modulepublic 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 © 2015 LSST. All rights reserved.