Package xbot.common.controls.sensors
Class XAnalogDistanceSensor
java.lang.Object
xbot.common.controls.sensors.XAnalogDistanceSensor
- All Implemented Interfaces:
DistanceSensor
- Direct Known Subclasses:
AnalogDistanceSensor
,SimulatedAnalogDistanceSensor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Constructor Summary
ModifierConstructorDescriptionprotected
XAnalogDistanceSensor
(int channel, DoubleFunction<Double> voltageMap) -
Method Summary
Modifier and TypeMethodDescriptionabstract double
abstract void
setAveraging
(boolean shouldAverage) abstract void
setDistanceOffset
(double offset) abstract void
setVoltageOffset
(double offset)
-
Constructor Details
-
XAnalogDistanceSensor
-
-
Method Details
-
getDistance
public abstract double getDistance()- Specified by:
getDistance
in interfaceDistanceSensor
-
setAveraging
public abstract void setAveraging(boolean shouldAverage) - Specified by:
setAveraging
in interfaceDistanceSensor
-
setVoltageOffset
public abstract void setVoltageOffset(double offset) -
setDistanceOffset
public abstract void setDistanceOffset(double offset)
-