public class RedondantSensors extends Object implements BinarySensor
| Constructor and Description |
|---|
RedondantSensors(DigitalSensor sensor,
DigitalSensor sensorR)
builds a RedondantSensors object from a couple of sensors.
|
| Modifier and Type | Method and Description |
|---|---|
DigitalSensor |
getSensor()
for simulation
|
DigitalSensor |
getSensorR()
for simulation
|
boolean |
isInError()
returns true if sensors send different values.
|
boolean |
isOn() |
public RedondantSensors(DigitalSensor sensor, DigitalSensor sensorR)
sensor - sensorR - public DigitalSensor getSensor()
public DigitalSensor getSensorR()
public boolean isInError()
isInError in interface BinarySensorpublic boolean isOn()
isOn in interface BinarySensorCopyright © 2020 LSST. All rights reserved.