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 MPXV5004. 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_mpxv5004.h
 ETASV3 Airspeed Sensor Driver.
 
file  pios_mpxv5004.h
 ETASV3 Airspeed Sensor Driver.
 

Macros

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

Functions

uint16_t PIOS_MPXV5004_Measure (uint8_t airspeedADCPin)
 
uint16_t PIOS_MPXV5004_Calibrate (uint8_t airspeedADCPin, uint16_t calibrationCount)
 
void PIOS_MPXV5004_UpdateCalibration (uint16_t zeroPoint)
 
float PIOS_MPXV5004_ReadAirspeed (uint8_t airspeedADCPin)
 

Detailed Description

Hardware functions to deal with the DIYDrones airspeed kit, using MPXV5004. 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 MPXV5004.

Macro Definition Documentation

#define POWER   (2.0f/7.0f)

Definition at line 38 of file pios_mpxv5004.c.

#define VCC   5.0f

Definition at line 37 of file pios_mpxv5004.c.

Function Documentation

uint16_t PIOS_MPXV5004_Calibrate ( uint8_t  airspeedADCPin,
uint16_t  calibrationCount 
)
uint16_t PIOS_MPXV5004_Measure ( uint8_t  airspeedADCPin)
float PIOS_MPXV5004_ReadAirspeed ( uint8_t  airspeedADCPin)
void PIOS_MPXV5004_UpdateCalibration ( uint16_t  zeroPoint)