PX4 Firmware
PX4 Autopilot Software http://px4.io
LidarLiteI2C.h File Reference
#include "LidarLite.h"
#include <drivers/device/i2c.h>
#include <drivers/drv_hrt.h>
#include <mathlib/mathlib.h>
#include <px4_platform_common/defines.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
Include dependency graph for LidarLiteI2C.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LidarLiteI2C
 

Variables

static constexpr uint8_t LL40LS_BASEADDR = 0x62
 
static constexpr uint8_t LL40LS_BASEADDR_OLD = 0x42
 
static constexpr uint8_t LL40LS_SIG_COUNT_VAL_DEFAULT = 0x80
 
static constexpr uint8_t LL40LS_MEASURE_REG = 0x00
 
static constexpr uint8_t LL40LS_MSRREG_RESET = 0x00
 
static constexpr uint8_t LL40LS_MSRREG_ACQUIRE = 0x04
 
static constexpr uint8_t LL40LS_DISTHIGH_REG = 0x0F
 
static constexpr uint8_t LL40LS_AUTO_INCREMENT = 0x80
 
static constexpr uint8_t LL40LS_HW_VERSION = 0x41
 
static constexpr uint8_t LL40LS_SW_VERSION = 0x4f
 
static constexpr uint8_t LL40LS_SIGNAL_STRENGTH_REG = 0x0e
 
static constexpr uint8_t LL40LS_PEAK_STRENGTH_REG = 0x0c
 
static constexpr uint8_t LL40LS_UNIT_ID_HIGH = 0x16
 
static constexpr uint8_t LL40LS_UNIT_ID_LOW = 0x17
 
static constexpr uint8_t LL40LS_SIG_COUNT_VAL_REG = 0x02
 
static constexpr uint8_t LL40LS_SIG_COUNT_VAL_MAX = 0xFF
 
static constexpr int LL40LS_SIGNAL_STRENGTH_MIN_V3HP = 70
 
static constexpr int LL40LS_SIGNAL_STRENGTH_MAX_V3HP = 255
 
static constexpr int LL40LS_SIGNAL_STRENGTH_LOW = 24
 
static constexpr int LL40LS_PEAK_STRENGTH_LOW = 135
 
static constexpr int LL40LS_PEAK_STRENGTH_HIGH = 234
 

Detailed Description

Author
Allyson Kreft

Driver for the PulsedLight Lidar-Lite range finders connected via I2C.

Definition in file LidarLiteI2C.h.

Variable Documentation

◆ LL40LS_AUTO_INCREMENT

constexpr uint8_t LL40LS_AUTO_INCREMENT = 0x80
static

Definition at line 62 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_BASEADDR

constexpr uint8_t LL40LS_BASEADDR = 0x62
static

Definition at line 53 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::probe().

◆ LL40LS_BASEADDR_OLD

constexpr uint8_t LL40LS_BASEADDR_OLD = 0x42
static

Definition at line 54 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::probe().

◆ LL40LS_DISTHIGH_REG

constexpr uint8_t LL40LS_DISTHIGH_REG = 0x0F
static

Definition at line 61 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_HW_VERSION

constexpr uint8_t LL40LS_HW_VERSION = 0x41
static

Definition at line 63 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::probe().

◆ LL40LS_MEASURE_REG

constexpr uint8_t LL40LS_MEASURE_REG = 0x00
static

Definition at line 58 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::measure(), and LidarLiteI2C::reset_sensor().

◆ LL40LS_MSRREG_ACQUIRE

constexpr uint8_t LL40LS_MSRREG_ACQUIRE = 0x04
static

Definition at line 60 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::measure().

◆ LL40LS_MSRREG_RESET

constexpr uint8_t LL40LS_MSRREG_RESET = 0x00
static

Definition at line 59 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::reset_sensor().

◆ LL40LS_PEAK_STRENGTH_HIGH

constexpr int LL40LS_PEAK_STRENGTH_HIGH = 234
static

Definition at line 78 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_PEAK_STRENGTH_LOW

constexpr int LL40LS_PEAK_STRENGTH_LOW = 135
static

Definition at line 77 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_PEAK_STRENGTH_REG

constexpr uint8_t LL40LS_PEAK_STRENGTH_REG = 0x0c
static

Definition at line 66 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_SIG_COUNT_VAL_DEFAULT

constexpr uint8_t LL40LS_SIG_COUNT_VAL_DEFAULT = 0x80
static

Definition at line 55 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::reset_sensor().

◆ LL40LS_SIG_COUNT_VAL_MAX

constexpr uint8_t LL40LS_SIG_COUNT_VAL_MAX = 0xFF
static

Definition at line 71 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::reset_sensor().

◆ LL40LS_SIG_COUNT_VAL_REG

constexpr uint8_t LL40LS_SIG_COUNT_VAL_REG = 0x02
static

Definition at line 70 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::reset_sensor().

◆ LL40LS_SIGNAL_STRENGTH_LOW

constexpr int LL40LS_SIGNAL_STRENGTH_LOW = 24
static

Definition at line 76 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_SIGNAL_STRENGTH_MAX_V3HP

constexpr int LL40LS_SIGNAL_STRENGTH_MAX_V3HP = 255
static

Definition at line 74 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_SIGNAL_STRENGTH_MIN_V3HP

constexpr int LL40LS_SIGNAL_STRENGTH_MIN_V3HP = 70
static

Definition at line 73 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_SIGNAL_STRENGTH_REG

constexpr uint8_t LL40LS_SIGNAL_STRENGTH_REG = 0x0e
static

Definition at line 65 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::collect().

◆ LL40LS_SW_VERSION

constexpr uint8_t LL40LS_SW_VERSION = 0x4f
static

Definition at line 64 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::probe().

◆ LL40LS_UNIT_ID_HIGH

constexpr uint8_t LL40LS_UNIT_ID_HIGH = 0x16
static

Definition at line 67 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::probe().

◆ LL40LS_UNIT_ID_LOW

constexpr uint8_t LL40LS_UNIT_ID_LOW = 0x17
static

Definition at line 68 of file LidarLiteI2C.h.

Referenced by LidarLiteI2C::probe().