43 #include <drivers/device/device.h> 44 #include <drivers/drv_range_finder.h> 47 #define LL40LS_MIN_DISTANCE (0.05f) 48 #define LL40LS_MAX_DISTANCE_V3 (35.00f) 49 #define LL40LS_MAX_DISTANCE_V1 (25.00f) 52 #define LL40LS_CONVERSION_INTERVAL 50*1000UL 55 #define LL40LS_CONVERSION_TIMEOUT 100*1000UL 64 virtual int init() = 0;
66 virtual int ioctl(
device::file_t *filp,
int cmd,
unsigned long arg);
68 virtual void start() = 0;
70 virtual void stop() = 0;
84 virtual const char *get_dev_name() = 0;
93 void set_maximum_distance(
const float max);
94 float get_minimum_distance()
const;
95 float get_maximum_distance()
const;
97 uint32_t getMeasureTicks()
const;
99 virtual int measure() = 0;
100 virtual int collect() = 0;
102 virtual int reset_sensor() = 0;
107 uint32_t _measure_ticks;
Definition: LidarLite.h:57
virtual void print_info()=0
Diagnostics - print some basic information about the driver.
virtual void print_registers()=0
print registers to console
Definition: cdev_platform.hpp:20
void set_minimum_distance(const float min)
Set the min and max distance thresholds if you want the end points of the sensors range to be brought...
Definition: LidarLite.cpp:51