mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +08:00
[modules] BARO_x_DT from generated BARO_x_PERIODIC_PERIOD
This commit is contained in:
committed by
Tobias Muench
parent
80bfc56629
commit
2ff4e9d68d
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user