Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_ets.h File Reference

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

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

Go to the source code of this file.

Macros

#define AirspeedEtsEvent()   { if (airspeed_ets_i2c_trans.status == I2CTransSuccess) airspeed_ets_read_event(); }
 

Functions

void airspeed_ets_init (void)
 
void airspeed_ets_read_periodic (void)
 
void airspeed_ets_read_event (void)
 

Variables

uint16_t airspeed_ets_raw
 
uint16_t airspeed_ets_offset
 
bool_t airspeed_ets_valid
 
float airspeed_ets
 
struct i2c_transaction airspeed_ets_i2c_trans
 

Detailed Description

Driver for the EagleTree Systems Airspeed 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.

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

Definition in file airspeed_ets.h.

Macro Definition Documentation

#define AirspeedEtsEvent ( )    { if (airspeed_ets_i2c_trans.status == I2CTransSuccess) airspeed_ets_read_event(); }

Definition at line 58 of file airspeed_ets.h.

Function Documentation

void airspeed_ets_read_periodic ( void  )

Variable Documentation

float airspeed_ets

Definition at line 80 of file airspeed_ets.c.

Referenced by airspeed_ets_init(), and airspeed_ets_read_event().

struct i2c_transaction airspeed_ets_i2c_trans
uint16_t airspeed_ets_offset

Definition at line 78 of file airspeed_ets.c.

Referenced by airspeed_ets_init(), and airspeed_ets_read_event().

uint16_t airspeed_ets_raw

Definition at line 77 of file airspeed_ets.c.

Referenced by airspeed_ets_init(), and airspeed_ets_read_event().

bool_t airspeed_ets_valid

Definition at line 79 of file airspeed_ets.c.

Referenced by airspeed_ets_init(), and airspeed_ets_read_event().