public class CanOpenThermometer extends CanOpenSensor14bits implements Thermometer
adc, numOfAnalogInputvalue| Constructor and Description |
|---|
CanOpenThermometer(String moduleName,
int aTickMillis,
String adcName,
int numOfAnalogInput) |
| Modifier and Type | Method and Description |
|---|---|
static double |
getDoubleValue(String valueInHexa)
This methods translate the hexa value return by a sensor to the double
value.
|
double |
readTemperature()
Read the temperature on the hardware device and returns the temperature
as a double in degrees Celsius.
|
double |
readTemperatureWithPDO(PDOStorage pdo)
Read the temperature from a PDOStorage.
|
getAdc, getNumOfAnalogInput, initModule, readNewValue, setAdcName, setNumOfAnalogInput, toString, updateValuegetValue, printValue, setValue, updateValuegetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, 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, validateBulkChangepublic static double getDoubleValue(String valueInHexa)
valueInHexa - public double readTemperature()
throws HardwareNotDetectedException,
SDORequestException,
FcsHardwareException
ThermometerreadTemperature in interface ThermometerFcsHardwareExceptionHardwareNotDetectedExceptionSDORequestExceptionpublic double readTemperatureWithPDO(PDOStorage pdo) throws org.lsst.ccs.messaging.BadCommandException
pdo - org.lsst.ccs.messaging.BadCommandExceptionCopyright © 2016 LSST. All rights reserved.