Package trclib.archive
Class TrcLidarLite
java.lang.Object
trclib.archive.TrcLidarLite
This class implements the Lidar Lite v3 Laser Ranging sensor.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrcLidarLite
(String instanceName, TrcSerialBusDevice device) Constructor: Creates an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the distance measurement data with bias correction.void
This method is called when the read request is completed.void
start()
This method starts the reading device data by queuing the initial read request if not already.
-
Field Details
-
DEF_I2C_ADDRESS_7BIT
public static final int DEF_I2C_ADDRESS_7BIT- See Also:
-
-
Constructor Details
-
TrcLidarLite
Constructor: Creates an instance of the object.- Parameters:
instanceName
- specifies the instance name.device
- specifies the device object.
-
-
Method Details
-
start
public void start()This method starts the reading device data by queuing the initial read request if not already. -
getDistance
This method returns the distance measurement data with bias correction.- Returns:
- distance measurement data in cm.
-
notify
This method is called when the read request is completed.- Parameters:
context
- specifies the read request.
-