public class DigitalSensor extends Object implements org.lsst.ccs.UsesSubsystem
| Modifier and Type | Field and Description |
|---|---|
protected int |
byteNumero
Gateway byte number where the sensor is coded.
|
protected boolean |
on
this represents the value sent by the sensor.
|
| Constructor and Description |
|---|
DigitalSensor(String dioName,
int inputNumero)
Build a new DigitalSensor.
|
DigitalSensor(String dioName,
int inputNumero,
int byteNumero)
Build a new DigitalSensor which is plugged on a plutoGateway for example.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getByteNumero() |
int |
getInputNumero() |
boolean |
isOn() |
String |
toString() |
void |
updateValue(String hex)
This methods updates the digital value for this sensor.
|
void |
updateValue(String[] hexaValues)
Update the field on from the bytes read on the gateway.
|
@ConfigurationParameter(range="0..15",
description="The numero of the byte where the value of this sensor is stored in.")
protected int byteNumero
protected boolean on
public DigitalSensor(String dioName, int inputNumero)
dioName - name of the CANopen dio device where this sensor is plugged on.inputNumero - public DigitalSensor(String dioName, int inputNumero, int byteNumero)
dioName - inputNumero - byteNumero - @Command(type=QUERY,
level=1)
public int getByteNumero()
@Command(type=QUERY,
level=1)
public int getInputNumero()
@Command(type=QUERY,
level=1)
public boolean isOn()
public void updateValue(String hex)
hex - public void updateValue(String[] hexaValues)
hexaValues - Copyright © 2017 LSST. All rights reserved.