Class EncoderWPIAdapter
java.lang.Object
xbot.common.controls.sensors.XEncoder
xbot.common.controls.sensors.wpi_adapters.EncoderWPIAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XEncoder
XEncoder.XEncoderFactory
-
Field Summary
Fields inherited from class xbot.common.controls.sensors.XEncoder
distancePerPulse, distancePerPulseSupplier, isInverted
-
Constructor Summary
ConstructorDescriptionEncoderWPIAdapter
(String name, int aChannel, int bChannel, double defaultDistancePerPulse, PropertyFactory propMan, DevicePolice police) -
Method Summary
Modifier and TypeMethodDescriptionprotected double
protected double
getRate()
void
setSamplesToAverage
(int samples) Methods inherited from class xbot.common.controls.sensors.XEncoder
getAdjustedDistance, getAdjustedRate, setDistancePerPulseSupplier, setInverted
-
Constructor Details
-
EncoderWPIAdapter
@AssistedInject public EncoderWPIAdapter(@Assisted("name") String name, @Assisted("aChannel") int aChannel, @Assisted("bChannel") int bChannel, @Assisted("defaultDistancePerPulse") double defaultDistancePerPulse, PropertyFactory propMan, DevicePolice police)
-
-
Method Details
-
getRate
protected double getRate() -
getDistance
protected double getDistance()- Specified by:
getDistance
in classXEncoder
-
setSamplesToAverage
public void setSamplesToAverage(int samples) - Specified by:
setSamplesToAverage
in classXEncoder
-