
public class ForceSensor extends Object implements SensorPluggedOnDevice
| Modifier and Type | Field and Description |
|---|---|
protected int |
byteNumero
byte number on the gateway
|
protected String |
deviceName
name of the gateway this sensor is plugged on.
|
double |
transfert_coeff
transfert function coefficient
|
double |
transfert_Constante
transfert function constante
|
| Constructor and Description |
|---|
ForceSensor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getByteNumero()
return byteNumero
|
String |
getDeviceName() |
double |
getForce()
returns force value read on force senor in Newton.
|
FcsEnumerations.LockStatus |
getForceStatus()
return force Status
|
int |
getMaxRangeValue()
return high limit for force sensor value
|
String |
getName() |
double |
getTransfert_coeff() |
double |
getTransfert_Constante() |
int |
getVoltage()
Returns voltage value read on force sensor in mV.
|
boolean |
isClamped() |
String |
toString() |
double |
transfertFunction(int tension)
Computes force value from voltage given as argument.
|
void |
updateValue(int newValue) |
@ConfigurationParameter public double transfert_coeff
@ConfigurationParameter public double transfert_Constante
@ConfigurationParameter protected String deviceName
@ConfigurationParameter protected int byteNumero
public 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. Unit= mV") public int getVoltage()
@Command(type=ACTION, level=1, description="Returns force sensor value in Newton. Unit = N") public double getForce()
public FcsEnumerations.LockStatus getForceStatus()
public double getTransfert_coeff()
public double getTransfert_Constante()
public int getMaxRangeValue()
public double transfertFunction(int tension)
tension - @Command(type=ACTION, level=1, description="Returns true if force sensor value is in range values where clamp is clamped.") public boolean isClamped()
Copyright © 2018 LSST. All rights reserved.