public class CanOpenSensor14bits extends Sensor14bits
| Modifier and Type | Field and Description |
|---|---|
protected CanOpenADC |
adc
The ADC on which this sensor is plugged.
|
protected int |
numOfAnalogInput
The numero of analog input where the sensor is plugged.
|
value| Constructor and Description |
|---|
CanOpenSensor14bits(String moduleName,
int aTickMillis,
String adcName,
int numOfAnalogInput) |
| Modifier and Type | Method and Description |
|---|---|
CanOpenADC |
getAdc() |
int |
getNumOfAnalogInput() |
void |
initModule()
***********************************************************************************************
|
int |
readNewValue()
This method reads the current value in decimal measured by the hardware
or compute a random value for the simulated sensor, and returns this
current value.
|
void |
setAdcName(String adcName)
***********************************************************************************************
|
void |
setNumOfAnalogInput(int numOfAnalogInput) |
String |
toString() |
int |
updateValue(PDOStorage pdoStorage)
This methods update the field value in extracting it from the parameter
sensorsValues which represents all the values read for an ADC.
|
getValue, 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, validateBulkChangeprotected CanOpenADC adc
protected int numOfAnalogInput
public void setAdcName(String adcName)
public void setNumOfAnalogInput(int numOfAnalogInput)
public CanOpenADC getAdc()
public int getNumOfAnalogInput()
public void initModule()
initModule in class Sensor14bitspublic int readNewValue()
throws FcsHardwareException
SensorFcsHardwareExceptionpublic int updateValue(PDOStorage pdoStorage)
Sensor14bitsupdateValue in class Sensor14bitspublic String toString()
toString in class Sensor14bitsCopyright © 2016 LSST. All rights reserved.