Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
teraranger_one.h File Reference
#include "std.h"
+ Include dependency graph for teraranger_one.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TeraRanger
 

Functions

void teraranger_init (void)
 
void teraranger_periodic (void)
 
void teraranger_event (void)
 
void teraranger_downlink (void)
 

Variables

struct TeraRanger teraranger
 

Detailed Description

Author
Gautier Hattenberger gauti.nosp@m.er.h.nosp@m.atten.nosp@m.berg.nosp@m.er@en.nosp@m.ac.f.nosp@m.r Driver for the TeraRanger One range finder (I2C)

Definition in file teraranger_one.h.


Data Structure Documentation

struct TeraRanger

Definition at line 31 of file teraranger_one.h.

Data Fields
bool data_available
float dist scaled distance in m
float offset offset in m
uint16_t raw raw distance in mm

Function Documentation

void teraranger_downlink ( void  )
void teraranger_periodic ( void  )

Definition at line 106 of file teraranger_one.c.

References i2c_receive(), I2CTransDone, i2c_transaction::status, teraranger_i2c_trans, and TERARANGER_ONE_I2C_ADDR.

+ Here is the call graph for this function:

Variable Documentation

struct TeraRanger teraranger

Definition at line 90 of file teraranger_one.c.

Referenced by teraranger_downlink(), teraranger_event(), and teraranger_init().