Package edu.wpi.first.wpilibj
Class MockLidarLite
java.lang.Object
xbot.common.controls.sensors.XLidarLite
edu.wpi.first.wpilibj.MockLidarLite
- All Implemented Interfaces:
DistanceSensor
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XLidarLite
XLidarLite.XLidarLiteFactory
-
Field Summary
Fields inherited from class xbot.common.controls.sensors.XLidarLite
distance, lidar_address, lidar_config_register, lidar_distance_register
-
Constructor Summary
ConstructorDescriptionMockLidarLite
(I2C.Port port, PropertyFactory propMan, DevicePolice police, String prefix) -
Method Summary
Methods inherited from class xbot.common.controls.sensors.XLidarLite
getDistance, pidGet, setAveraging, start, stop
-
Constructor Details
-
MockLidarLite
@AssistedInject public MockLidarLite(@Assisted("port") I2C.Port port, PropertyFactory propMan, DevicePolice police, @Assisted("prefix") String prefix)
-
-
Method Details
-
update
protected void update()- Specified by:
update
in classXLidarLite
-
setTestDistance
public void setTestDistance(int testDistance)
-