Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ SONAR_VL53L1X_DISTANCEMODE

#define SONAR_VL53L1X_DISTANCEMODE   2

Definition at line 57 of file sonar_vl53l1x.c.

◆ SONAR_VL53L1X_I2C_ADDR

#define SONAR_VL53L1X_I2C_ADDR   VL53L1_DEFAULT_ADDRESS

Definition at line 37 of file sonar_vl53l1x.c.

◆ SONAR_VL53L1X_INTERMEASUREMENT_MS

#define SONAR_VL53L1X_INTERMEASUREMENT_MS   SONAR_VL53L1X_TIMINGBUDGET_MS

Definition at line 65 of file sonar_vl53l1x.c.

◆ SONAR_VL53L1X_OFFSET

#define SONAR_VL53L1X_OFFSET   0

Definition at line 42 of file sonar_vl53l1x.c.

◆ SONAR_VL53L1X_TIMINGBUDGET_MS

#define SONAR_VL53L1X_TIMINGBUDGET_MS   100

Definition at line 51 of file sonar_vl53l1x.c.

Function Documentation

◆ sonar_vl53l1x_event()

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:

◆ sonar_vl53l1x_init()

◆ sonar_vl53l1x_publish()

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, f, 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:

◆ sonar_vl53l1x_read()

void sonar_vl53l1x_read ( void  )

Variable Documentation

◆ sonar_vl53l1x

struct sonar_vl53l1x_dev sonar_vl53l1x