LIDARLITEV3 Class
- ID: lidarlightv3
- Name: Optical Distance Measurement Sensor
- Category: light
- Manufacturer: garmin
- Connection: i2c
- Link: https://www.sparkfun.com/products/14032
It is a compact, high-performance optical distance measurement sensor from Garmin. [ LIDARLITEV3 Datasheet] http://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf
Item Index
Methods
LIDARLITEV3
-
bus
-
devAddr
Instantiates an LIDARLITEV3 object
Parameters:
-
bus
NumberNumber of the used bus
-
devAddr
NumberAddress of the used I2C device: 0x62
Returns:
getDistance
()
Number
LIDARLITEV3 object destructor; basically, it closes the I2C connection.
~LIDARLITEV3 (); no need for the destructor - the I2c connection will be closed when m_i2ControlCtx variable will be out of context Returns distance measurement on success Retruns -1 on failure.
Returns:
read
-
reg
-
monitorBusyFlag
Read Perform I2C read from device.
Parameters:
-
reg
Numberregister address to read from.
-
monitorBusyFlag
Booleanif true, the routine will repeatedly read the status register until the busy flag (LSB) is 0.
Returns:
name
()
String
Returns the name of the component
Returns:
i2cReadReg_8
-
reg
Reads a one-byte register
Parameters:
-
reg
NumberAddress of the register
Returns:
i2cReadReg_16
-
reg
Reads a two-byte register
Parameters:
-
reg
NumberAddress of the register
Returns:
i2cWriteReg
-
reg
-
value
Writes to a one-byte register
Parameters:
-
reg
NumberAddress of the register
-
value
NumberByte to be written