public class CanOpenSensor14bits extends Sensor14bits implements org.lsst.ccs.framework.HasLifecycle
| 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.
|
name, value| Constructor and Description |
|---|
CanOpenSensor14bits(CanOpenADC adc,
int numOfAnalogInput)
Build a CanOpenSensor14bits with an ADC name a numero of input and a tickMillis of 1000.
|
| Modifier and Type | Method and Description |
|---|---|
int |
readNewValue()
Read a new value of this sensor on the ADC by sending a readSDO request.
|
String |
toString() |
int |
updateValue(PDOStorage pdoStorage)
Update the value of the sensor by retrieving it in a PDOStorage given as argument.
|
getName, getValue, printValue, updateValueprotected CanOpenADC adc
@ConfigurationParameter(range="1..25",
description="The numero of the input of ADC where this sensor is plugged on.")
protected int numOfAnalogInput
public CanOpenSensor14bits(CanOpenADC adc, int numOfAnalogInput)
adc - numOfAnalogInput - public int readNewValue()
readNewValue in interface SensorFcsHardwareExceptionpublic int updateValue(PDOStorage pdoStorage)
updateValue in class Sensor14bitspdoStorage - public String toString()
toString in class Sensor14bitsCopyright © 2017 LSST. All rights reserved.