Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_ms5611_spi.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Martin Mueller <martinmm@pfump.org>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  */
22 
29 #ifndef BARO_MS56111_SPI_H
30 #define BARO_MS56111_SPI_H
31 
32 #include "std.h"
33 #include "peripherals/ms5611_spi.h"
34 
36 #define BARO_MS5611_DT BARO_MS5611_READ_PERIOD
37 #define BARO_MS5611_R 20
38 #define BARO_MS5611_SIGMA2 1
39 extern float baro_ms5611_r;
40 extern float baro_ms5611_sigma2;
41 
42 extern float baro_ms5611_alt;
43 extern bool baro_ms5611_alt_valid;
44 extern bool baro_ms5611_enabled;
45 
46 extern struct Ms5611_Spi baro_ms5611;
47 
48 extern void baro_ms5611_init(void);
49 extern void baro_ms5611_read(void);
50 extern void baro_ms5611_periodic_check(void);
51 extern void baro_ms5611_event(void);
52 extern void baro_ms5611_send_coeff(void);
53 
54 #endif
bool baro_ms5611_enabled
Measurement Specialties (Intersema) MS5611-01BA and MS5607-02BA03 pressure/temperature sensor interfa...
bool baro_ms5611_alt_valid
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
float baro_ms5611_alt
void baro_ms5611_init(void)
void baro_ms5611_event(void)
void baro_ms5611_periodic_check(void)
void baro_ms5611_send_coeff(void)
float baro_ms5611_sigma2
float baro_ms5611_r
struct Ms5611_Spi baro_ms5611