Class XLidarLite

java.lang.Object
xbot.common.controls.sensors.XLidarLite
All Implemented Interfaces:
DistanceSensor
Direct Known Subclasses:
LidarLiteWpiAdapter, MockLidarLite

public abstract class XLidarLite extends Object implements DistanceSensor
  • Field Details

    • distance

      protected byte[] distance
    • lidar_address

      protected final int lidar_address
      See Also:
    • lidar_config_register

      protected final int lidar_config_register
      See Also:
    • lidar_distance_register

      protected final int lidar_distance_register
      See Also:
  • Constructor Details

  • Method Details

    • update

      protected abstract void update()
    • getDistance

      public double getDistance()
      Specified by:
      getDistance in interface DistanceSensor
    • pidGet

      public double pidGet()
    • start

      public void start()
    • stop

      public void stop()
    • setAveraging

      public void setAveraging(boolean shouldAverage)
      Specified by:
      setAveraging in interface DistanceSensor