dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Hardware functions to deal with the DIYDrones airspeed kit, using MPXV7002. This is a differential sensor, so the value returned is first converted into calibrated airspeed, using http://en.wikipedia.org/wiki/Calibrated_airspeed. More...

Files

file  pios_mpxv7002.h
 ETASV3 Airspeed Sensor Driver.
 
file  pios_mpxv7002.h
 ETASV3 Airspeed Sensor Driver.
 

Macros

#define VCC   5.0f
 
#define POWER   (2.0f/7.0f)
 

Functions

uint16_t PIOS_MPXV7002_Measure (uint8_t airspeedADCPin)
 
uint16_t PIOS_MPXV7002_Calibrate (uint8_t airspeedADCPin, uint16_t calibrationCount)
 
void PIOS_MPXV7002_UpdateCalibration (uint16_t zeroPoint)
 
float PIOS_MPXV7002_ReadAirspeed (uint8_t airspeedADCPin)
 

Detailed Description

Hardware functions to deal with the DIYDrones airspeed kit, using MPXV7002. This is a differential sensor, so the value returned is first converted into calibrated airspeed, using http://en.wikipedia.org/wiki/Calibrated_airspeed.

Hardware functions to deal with the DIYDrones airspeed kit, using MPXV7002.

Macro Definition Documentation

#define POWER   (2.0f/7.0f)

Definition at line 38 of file pios_mpxv7002.c.

#define VCC   5.0f

Definition at line 37 of file pios_mpxv7002.c.

Function Documentation

uint16_t PIOS_MPXV7002_Calibrate ( uint8_t  airspeedADCPin,
uint16_t  calibrationCount 
)
uint16_t PIOS_MPXV7002_Measure ( uint8_t  airspeedADCPin)
float PIOS_MPXV7002_ReadAirspeed ( uint8_t  airspeedADCPin)
void PIOS_MPXV7002_UpdateCalibration ( uint16_t  zeroPoint)