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
baro_bmp.h File Reference
#include "std.h"
+ Include dependency graph for baro_bmp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BMP085_EEPROM_AC1   0xAA
 
#define BMP085_EEPROM_AC2   0xAC
 
#define BMP085_EEPROM_AC3   0xAE
 
#define BMP085_EEPROM_AC4   0xB0
 
#define BMP085_EEPROM_AC5   0xB2
 
#define BMP085_EEPROM_AC6   0xB4
 
#define BMP085_EEPROM_B1   0xB6
 
#define BMP085_EEPROM_B2   0xB8
 
#define BMP085_EEPROM_MB   0xBA
 
#define BMP085_EEPROM_MC   0xBC
 
#define BMP085_EEPROM_MD   0xBE
 
#define BMP085_CTRL_REG   0xF4
 
#define BMP085_START_TEMP   0x2E
 
#define BMP085_START_P0   0x34
 
#define BMP085_START_P1   0x74
 
#define BMP085_START_P2   0xB4
 
#define BMP085_START_P3   0xF4
 
#define BMP085_DAT_MSB   0xF6
 
#define BMP085_DAT_LSB   0xF7
 
#define BMP085_DAT_XLSB   0xF8
 
#define BARO_BMP_UNINIT   0
 
#define BARO_BMP_IDLE   1
 
#define BARO_BMP_START_TEMP   2
 
#define BARO_BMP_READ_TEMP   3
 
#define BARO_BMP_START_PRESS   4
 
#define BARO_BMP_READ_PRESS   5
 
#define BARO_BMP_DT   (BARO_BMP_PERIODIC_PERIOID / 3)
 new measurement every 3rd baro_bmp_periodic More...
 
#define BaroBmpUpdate(_b, _h)   { if (baro_bmp_valid) { _b = baro_bmp_pressure; _h(); baro_bmp_valid = FALSE; } }
 

Functions

void baro_bmp_init (void)
 
void baro_bmp_periodic (void)
 
void baro_bmp_event (void)
 

Variables

bool_t baro_bmp_enabled
 
float baro_bmp_r
 
float baro_bmp_sigma2
 
uint8_t baro_bmp_status
 
bool_t baro_bmp_valid
 
uint32_t baro_bmp_pressure
 
uint16_t baro_bmp_temperature
 
int32_t baro_bmp_altitude
 
int32_t baro_bmp
 
int32_t baro_bmp_offset
 

Macro Definition Documentation

#define BARO_BMP_DT   (BARO_BMP_PERIODIC_PERIOID / 3)

new measurement every 3rd baro_bmp_periodic

Definition at line 39 of file baro_bmp.h.

Referenced by alt_kalman().

#define BARO_BMP_IDLE   1

Definition at line 31 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

#define BARO_BMP_READ_PRESS   5

Definition at line 35 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

#define BARO_BMP_READ_TEMP   3

Definition at line 33 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

#define BARO_BMP_START_PRESS   4

Definition at line 34 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

#define BARO_BMP_START_TEMP   2

Definition at line 32 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

#define BARO_BMP_UNINIT   0

Definition at line 30 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_init().

#define BaroBmpUpdate (   _b,
  _h 
)    { if (baro_bmp_valid) { _b = baro_bmp_pressure; _h(); baro_bmp_valid = FALSE; } }

Definition at line 60 of file baro_bmp.h.

#define BMP085_CTRL_REG   0xF4

Definition at line 18 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

#define BMP085_DAT_LSB   0xF7

Definition at line 27 of file baro_bmp.h.

#define BMP085_DAT_MSB   0xF6

Definition at line 26 of file baro_bmp.h.

Referenced by baro_bmp_periodic().

#define BMP085_DAT_XLSB   0xF8

Definition at line 28 of file baro_bmp.h.

#define BMP085_EEPROM_AC1   0xAA

Definition at line 6 of file baro_bmp.h.

Referenced by baro_bmp_init().

#define BMP085_EEPROM_AC2   0xAC

Definition at line 7 of file baro_bmp.h.

#define BMP085_EEPROM_AC3   0xAE

Definition at line 8 of file baro_bmp.h.

#define BMP085_EEPROM_AC4   0xB0

Definition at line 9 of file baro_bmp.h.

#define BMP085_EEPROM_AC5   0xB2

Definition at line 10 of file baro_bmp.h.

#define BMP085_EEPROM_AC6   0xB4

Definition at line 11 of file baro_bmp.h.

#define BMP085_EEPROM_B1   0xB6

Definition at line 12 of file baro_bmp.h.

#define BMP085_EEPROM_B2   0xB8

Definition at line 13 of file baro_bmp.h.

#define BMP085_EEPROM_MB   0xBA

Definition at line 14 of file baro_bmp.h.

#define BMP085_EEPROM_MC   0xBC

Definition at line 15 of file baro_bmp.h.

#define BMP085_EEPROM_MD   0xBE

Definition at line 16 of file baro_bmp.h.

#define BMP085_START_P0   0x34

Definition at line 21 of file baro_bmp.h.

#define BMP085_START_P1   0x74

Definition at line 22 of file baro_bmp.h.

#define BMP085_START_P2   0xB4

Definition at line 23 of file baro_bmp.h.

#define BMP085_START_P3   0xF4

Definition at line 24 of file baro_bmp.h.

Referenced by baro_bmp_event().

#define BMP085_START_TEMP   0x2E

Definition at line 20 of file baro_bmp.h.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

Function Documentation

Variable Documentation

int32_t baro_bmp

Definition at line 77 of file baro_bmp.c.

Referenced by baro_bmp_event().

int32_t baro_bmp_altitude

Definition at line 77 of file baro_bmp.c.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

bool_t baro_bmp_enabled

Definition at line 68 of file baro_bmp.c.

Referenced by alt_kalman(), and baro_bmp_init().

int32_t baro_bmp_offset

Definition at line 77 of file baro_bmp.c.

Referenced by baro_bmp_event().

uint32_t baro_bmp_pressure

Definition at line 75 of file baro_bmp.c.

Referenced by baro_bmp_event(), and baro_bmp_periodic().

float baro_bmp_r

Definition at line 69 of file baro_bmp.c.

Referenced by alt_kalman(), and baro_bmp_init().

float baro_bmp_sigma2

Definition at line 70 of file baro_bmp.c.

Referenced by alt_kalman(), and baro_bmp_init().

uint8_t baro_bmp_status

Definition at line 73 of file baro_bmp.c.

Referenced by baro_bmp_event(), baro_bmp_init(), and baro_bmp_periodic().

uint16_t baro_bmp_temperature

Definition at line 76 of file baro_bmp.c.

Referenced by baro_bmp_event().

bool_t baro_bmp_valid

Definition at line 74 of file baro_bmp.c.

Referenced by baro_bmp_event(), baro_bmp_init(), and baro_bmp_periodic().