Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_bmp.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Martin Mueller
3  * Copyright (C) 2013 Felix Ruess <felix.ruess@gmail.com>
4  *
5  * This file is part of paparazzi.
6  *
7  * paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, write to
19  * the Free Software Foundation, 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  *
22  */
23 
31 #ifndef BARO_BMP_H
32 #define BARO_BMP_H
33 
34 #include "peripherals/bmp085.h"
35 
36 extern struct Bmp085 baro_bmp;
37 
39 #define BARO_BMP_DT (BARO_BMP_PERIODIC_PERIOD / 3)
40 
41 extern bool baro_bmp_enabled;
42 extern float baro_bmp_r;
43 extern float baro_bmp_sigma2;
44 extern int32_t baro_bmp_alt;
45 
46 void baro_bmp_init(void);
47 void baro_bmp_periodic(void);
48 void baro_bmp_event(void);
49 
50 #endif
float baro_bmp_r
Definition: baro_bmp.c:55
int32_t baro_bmp_alt
Definition: baro_bmp.c:57
void baro_bmp_init(void)
Definition: baro_bmp.c:59
bool baro_bmp_enabled
Definition: baro_bmp.c:54
Definition: bmp085.h:62
Bosch BMP085 driver interface.
struct Bmp085 baro_bmp
Definition: baro_bmp.c:52
void baro_bmp_periodic(void)
Definition: baro_bmp.c:70
void baro_bmp_event(void)
Definition: baro_bmp.c:81
signed long int32_t
Definition: types.h:19
float baro_bmp_sigma2
Definition: baro_bmp.c:56