public class APCTestBenchMainModule extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
temperature |
| Constructor and Description |
|---|
APCTestBenchMainModule(BridgeToHardware bridge,
CanOpenThermometer thermometer,
CanOpenLED led,
CanOpenLED fakeLed,
CanOpenThermometer fakeSensor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getReturnValue(String responseLine,
int inputNB)
Returns the value read on the socket for the input of the ADC given as an
argument.
|
double |
readFakeSensor() |
double |
readTemperature() |
double |
readTemperatureFromPDO() |
String |
turnOffFakeLED() |
String |
turnOffLED() |
String |
turnOnFakeLED() |
String |
turnOnLED() |
public APCTestBenchMainModule(BridgeToHardware bridge, CanOpenThermometer thermometer, CanOpenLED led, CanOpenLED fakeLed, CanOpenThermometer fakeSensor)
public int getReturnValue(String responseLine, int inputNB)
responseLine - A string read on the socket.inputNB - The numero if the input on the ADC. (1<=inputNB<=8)public double readTemperature()
public double readTemperatureFromPDO()
public String turnOnLED()
public String turnOffLED()
public String turnOnFakeLED()
public String turnOffFakeLED()
public double readFakeSensor()
Copyright © 2017 LSST. All rights reserved.