
public class SimuCanOpenSensor14bits extends CanOpenSensor14bits
| Modifier and Type | Field and Description |
|---|---|
protected FilterHolder |
autochanger |
protected CarouselClampModule |
clamp |
protected org.lsst.ccs.Subsystem |
s |
protected SimuCanOpenProxy |
tcpProxy |
adc, numOfAnalogInputname, value| Constructor and Description |
|---|
SimuCanOpenSensor14bits(CanOpenADC adc,
int numOfAnalogInput)
Creates a new SimuCanOpenSensor14bits from arguments :
|
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialize the clamp that this sensor monitors, the simulated tcpProxy with a
PDO storage.
|
protected boolean |
isAtStandby()
return true if this sensor is on the clamp which is at STANDBY.
|
int |
readNewValue()
The simulated sensor doesn't read its new value on a CANopen device but the new value is
generated by a random generator between a min and a max value.
|
protected void |
updateFakePDOStorage()
In the simulator, instead of reading a new PDO to read a new value for the sensor,
we set a value for the sensor and then we update the PDOStorage for this sensor.
|
toString, updateValuegetName, getValue, printValue, updateValue@LookupField(strategy=TOP) protected org.lsst.ccs.Subsystem s
@LookupField(strategy=BYNAME) protected SimuCanOpenProxy tcpProxy
@LookupField(strategy=ANCESTORS) protected CarouselClampModule clamp
@LookupField(strategy=BYNAME) protected FilterHolder autochanger
public SimuCanOpenSensor14bits(CanOpenADC adc, int numOfAnalogInput)
adc - numOfAnalogInput - public void init()
public int readNewValue()
readNewValue in interface SensorreadNewValue in class CanOpenSensor14bitsprotected void updateFakePDOStorage()
protected boolean isAtStandby()
Copyright © 2017 LSST. All rights reserved.