public class ForceSensor extends Object implements SensorPluggedOnDevice, org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected int |
byteNumero
byte number on the gateway
|
protected org.lsst.ccs.services.DataProviderDictionaryService |
dataProviderDictionaryService |
protected String |
deviceName
name of the gateway this sensor is plugged on.
|
protected org.lsst.ccs.Subsystem |
subs |
| Constructor and Description |
|---|
ForceSensor() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
int |
getByteNumero()
return byteNumero
|
String |
getDeviceName() |
String |
getName() |
int |
getVoltage()
Returns voltage value read on force sensor in mV.
|
String |
toString() |
void |
updateValue(int newValue) |
@LookupField(strategy=TOP) protected org.lsst.ccs.Subsystem subs
@LookupField(strategy=TREE) protected org.lsst.ccs.services.DataProviderDictionaryService dataProviderDictionaryService
@ConfigurationParameter(description="name of the gateway this sensor is plugged on",
units="unitless",
category="sensor")
protected volatile String deviceName
@ConfigurationParameter(description="byte number on the gateway",
units="unitless",
category="sensor")
protected volatile int byteNumero
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic String getName()
getName in interface SensorPluggedOnDevicepublic int getByteNumero()
getByteNumero in interface SensorPluggedOnDevicepublic String getDeviceName()
getDeviceName in interface SensorPluggedOnDevicepublic void updateValue(int newValue)
updateValue in interface SensorPluggedOnDevice@Command(type=ACTION,
level=1,
description="Returns force sensor analog Value. No unit.")
public int getVoltage()
Copyright © 2022 LSST. All rights reserved.