[modules] BARO_x_DT from generated BARO_x_PERIODIC_PERIOD

This commit is contained in:
Felix Ruess
2013-08-27 20:01:59 +02:00
committed by Tobias Muench
parent 80bfc56629
commit 2ff4e9d68d
3 changed files with 12 additions and 3 deletions
+7 -1
View File
@@ -34,7 +34,13 @@
#define BARO_BMP_START_PRESS 4 #define BARO_BMP_START_PRESS 4
#define BARO_BMP_READ_PRESS 5 #define BARO_BMP_READ_PRESS 5
#define BARO_BMP_DT 0.05 /// new measurement every 3rd baro_bmp_periodic
#ifndef SITL
#define BARO_BMP_DT (BARO_BMP_PERIODIC_PERIOID / 3)
#else
#define BARO_BMP_DT BARO_BMP_PERIODIC_PERIOID
#endif
extern bool_t baro_bmp_enabled; extern bool_t baro_bmp_enabled;
extern float baro_bmp_r; extern float baro_bmp_r;
extern float baro_bmp_sigma2; extern float baro_bmp_sigma2;
+2 -1
View File
@@ -45,7 +45,8 @@
#include "std.h" #include "std.h"
#include "mcu_periph/i2c.h" #include "mcu_periph/i2c.h"
#define BARO_ETS_DT 0.05 /// new measurement every baro_ets_read_periodic
#define BARO_ETS_DT BARO_ETS_READ_PERIODIC_PERIOD
extern uint16_t baro_ets_adc; extern uint16_t baro_ets_adc;
extern uint16_t baro_ets_offset; extern uint16_t baro_ets_offset;
@@ -12,7 +12,9 @@
#define PROM_NB 8 #define PROM_NB 8
#define BARO_MS5611_DT 0.05 /// new measurement every baro_ms5611_periodic
#define BARO_MS5611_DT BARO_MS5611_PERIODIC_PERIOID
#define BARO_MS5611_R 20 #define BARO_MS5611_R 20
#define BARO_MS5611_SIGMA2 1 #define BARO_MS5611_SIGMA2 1
extern float baro_ms5611_alt; extern float baro_ms5611_alt;