Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lidar_sf11.c File Reference
#include "modules/lidar/lidar_sf11.h"
#include "subsystems/abi.h"
#include "filters/median_filter.h"
#include "state.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for lidar_sf11.c:

Go to the source code of this file.

Functions

void lidar_sf11_init (void)
 Initialization function. More...
 
void lidar_sf11_event (void)
 Lidar event function Check if the transaction succeded before reading the result. More...
 
void lidar_sf11_periodic (void)
 Poll lidar for data. More...
 
void lidar_sf11_downlink (void)
 Downlink message for debug. More...
 

Variables

struct LidarSF11 lidar_sf11
 
struct MedianFilterInt lidar_sf11_filter
 

Function Documentation

void lidar_sf11_downlink ( void  )

Downlink message for debug.

Definition at line 132 of file lidar_sf11.c.

References DefaultChannel, DefaultDevice, LidarSF11::distance, lidar_sf11, LidarSF11::status, i2c_transaction::status, and LidarSF11::trans.

void lidar_sf11_event ( void  )

Lidar event function Check if the transaction succeded before reading the result.

Definition at line 62 of file lidar_sf11.c.

References I2CTransDone, I2CTransFailed, I2CTransPending, I2CTransRunning, I2CTransSuccess, lidar_sf11, LIDAR_SF11_READ_OK, LidarSF11::status, i2c_transaction::status, and LidarSF11::trans.

Variable Documentation

struct LidarSF11 lidar_sf11
struct MedianFilterInt lidar_sf11_filter

Definition at line 38 of file lidar_sf11.c.

Referenced by lidar_sf11_init(), and lidar_sf11_periodic().