Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
baro_ms5611_i2c.h
Go to the documentation of this file.
1 #ifndef BARO_MS56111_I2C_H
2 #define BARO_MS56111_I2C_H
3 
4 #include "std.h"
6 
8 #define BARO_MS5611_DT BARO_MS5611_READ_PERIOD
9 #define BARO_MS5611_R 20
10 #define BARO_MS5611_SIGMA2 1
11 extern float baro_ms5611_r;
12 extern float baro_ms5611_sigma2;
13 
14 extern float baro_ms5611_alt;
15 extern bool baro_ms5611_alt_valid;
16 extern bool baro_ms5611_enabled;
17 
18 extern struct Ms5611_I2c baro_ms5611;
19 
20 extern void baro_ms5611_init(void);
21 extern void baro_ms5611_read(void);
22 extern void baro_ms5611_periodic_check(void);
23 extern void baro_ms5611_event(void);
24 extern void baro_ms5611_send_coeff(void);
25 
26 #define baro_ms5611_periodic() { baro_ms5611_read(); baro_ms5611_periodic_check(); }
27 
28 #endif
baro_ms5611_alt
float baro_ms5611_alt
Definition: baro_ms5611_i2c.c:58
baro_ms5611_event
void baro_ms5611_event(void)
Definition: baro_ms5611_i2c.c:96
baro_ms5611_periodic_check
void baro_ms5611_periodic_check(void)
Definition: baro_ms5611_i2c.c:77
ms5611_i2c.h
std.h
Ms5611_I2c
Definition: ms5611_i2c.h:36
baro_ms5611_enabled
bool baro_ms5611_enabled
Definition: baro_ms5611_i2c.c:60
baro_ms5611_send_coeff
void baro_ms5611_send_coeff(void)
Definition: baro_ms5611_i2c.c:121
baro_ms5611_sigma2
float baro_ms5611_sigma2
Definition: baro_ms5611_i2c.c:63
baro_ms5611_read
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
Definition: baro_ms5611_i2c.c:89
baro_ms5611_alt_valid
bool baro_ms5611_alt_valid
Definition: baro_ms5611_i2c.c:59
baro_ms5611_r
float baro_ms5611_r
Definition: baro_ms5611_i2c.c:62
baro_ms5611
struct Ms5611_I2c baro_ms5611
Definition: baro_ms5611_i2c.c:55
baro_ms5611_init
void baro_ms5611_init(void)
Definition: baro_ms5611_i2c.c:66