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:
- 
                                              busNumberNumber of the used bus 
- 
                                              devAddrNumberAddress 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:
- 
                                              regNumberregister address to read from. 
- 
                                              monitorBusyFlagBooleanif 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:
- 
                                              regNumberAddress of the register 
Returns:
i2cReadReg_16
                      
                              - 
                                              reg
Reads a two-byte register
Parameters:
- 
                                              regNumberAddress of the register 
Returns:
i2cWriteReg
                      
                              - 
                                              reg
- 
                                              value
Writes to a one-byte register
Parameters:
- 
                                              regNumberAddress of the register 
- 
                                              valueNumberByte to be written