Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sonar_vl53l1x.c File Reference
+ Include dependency graph for sonar_vl53l1x.c:

Go to the source code of this file.

Macros

#define SONAR_VL53L1X_I2C_ADDR   VL53L1_DEFAULT_ADDRESS
 
#define SONAR_VL53L1X_OFFSET   0
 
#define SONAR_VL53L1X_TIMINGBUDGET_MS   100
 
#define SONAR_VL53L1X_DISTANCEMODE   2
 
#define SONAR_VL53L1X_INTERMEASUREMENT_MS   SONAR_VL53L1X_TIMINGBUDGET_MS
 

Functions

static void sonar_vl53l1x_publish (uint16_t range_mm)
 
void sonar_vl53l1x_init (void)
 
void sonar_vl53l1x_read (void)
 
void sonar_vl53l1x_event (void)
 

Variables

struct sonar_vl53l1x_dev sonar_vl53l1x
 

Macro Definition Documentation

#define SONAR_VL53L1X_DISTANCEMODE   2

Definition at line 57 of file sonar_vl53l1x.c.

Referenced by sonar_vl53l1x_init().

#define SONAR_VL53L1X_I2C_ADDR   VL53L1_DEFAULT_ADDRESS

Definition at line 37 of file sonar_vl53l1x.c.

Referenced by sonar_vl53l1x_init().

#define SONAR_VL53L1X_INTERMEASUREMENT_MS   SONAR_VL53L1X_TIMINGBUDGET_MS

Definition at line 65 of file sonar_vl53l1x.c.

Referenced by sonar_vl53l1x_init().

#define SONAR_VL53L1X_OFFSET   0

Definition at line 42 of file sonar_vl53l1x.c.

Referenced by sonar_vl53l1x_init().

#define SONAR_VL53L1X_TIMINGBUDGET_MS   100

Definition at line 51 of file sonar_vl53l1x.c.

Referenced by sonar_vl53l1x_init().

Function Documentation

void sonar_vl53l1x_event ( void  )

Definition at line 118 of file sonar_vl53l1x.c.

References sonar_vl53l1x_dev::dev, sonar_vl53l1x, sonar_vl53l1x_publish(), and VL53L1X_NonBlocking_ReadDataEvent().

+ Here is the call graph for this function:

static void sonar_vl53l1x_publish ( uint16_t  range_mm)
static

Definition at line 75 of file sonar_vl53l1x.c.

References AGL_VL53L1X_ID, DefaultChannel, DefaultDevice, get_sys_time_usec(), sonar_vl53l1x_dev::offset_mm, and sonar_vl53l1x.

Referenced by sonar_vl53l1x_event(), and sonar_vl53l1x_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void sonar_vl53l1x_read ( void  )

Variable Documentation

struct sonar_vl53l1x_dev sonar_vl53l1x