Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_ets.h File Reference

Driver for the EagleTree Systems Altitude Sensor. More...

#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for baro_ets.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BARO_ETS_DT   BARO_ETS_READ_PERIODIC_PERIOD
 new measurement every baro_ets_read_periodic More...
 
#define BaroEtsEvent()   { if (baro_ets_i2c_trans.status == I2CTransSuccess) baro_ets_read_event(); }
 

Functions

void baro_ets_init (void)
 
void baro_ets_read_periodic (void)
 
void baro_ets_read_event (void)
 

Variables

uint16_t baro_ets_adc
 
uint16_t baro_ets_offset
 
bool baro_ets_valid
 
bool baro_ets_enabled
 
float baro_ets_altitude
 
float baro_ets_r
 
float baro_ets_sigma2
 
struct i2c_transaction baro_ets_i2c_trans
 

Detailed Description

Driver for the EagleTree Systems Altitude Sensor.

Has only been tested with V3 of the sensor hardware.

Notes: Connect directly to TWOG/Tiny I2C port. Multiple sensors can be chained together. Sensor should be in the proprietary mode (default) and not in 3rd party mode. Pitch gains may need to be updated.

Sensor module wire assignments: Red wire: 5V White wire: Ground Yellow wire: SDA Brown wire: SCL

Definition in file baro_ets.h.

Macro Definition Documentation

#define BARO_ETS_DT   BARO_ETS_READ_PERIODIC_PERIOD

new measurement every baro_ets_read_periodic

Definition at line 49 of file baro_ets.h.

#define BaroEtsEvent ( )    { if (baro_ets_i2c_trans.status == I2CTransSuccess) baro_ets_read_event(); }

Definition at line 65 of file baro_ets.h.

Function Documentation

void baro_ets_read_periodic ( void  )

Variable Documentation

uint16_t baro_ets_adc

Definition at line 103 of file baro_ets.c.

Referenced by baro_ets_read_event().

float baro_ets_altitude

Definition at line 106 of file baro_ets.c.

Referenced by alt_filter_periodic(), and baro_ets_read_event().

bool baro_ets_enabled

Definition at line 107 of file baro_ets.c.

Referenced by alt_kalman().

struct i2c_transaction baro_ets_i2c_trans

Definition at line 111 of file baro_ets.c.

Referenced by baro_ets_read_event(), and baro_ets_read_periodic().

uint16_t baro_ets_offset

Definition at line 104 of file baro_ets.c.

Referenced by baro_ets_read_event().

float baro_ets_r

Definition at line 108 of file baro_ets.c.

Referenced by alt_kalman().

float baro_ets_sigma2

Definition at line 109 of file baro_ets.c.

Referenced by alt_kalman().

bool baro_ets_valid

Definition at line 105 of file baro_ets.c.

Referenced by baro_ets_read_event().