Skip to content

Commit

Permalink
[modules] BARO_x_DT from generated BARO_x_PERIODIC_PERIOD
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr authored and TobiasMue committed Aug 9, 2013
1 parent 80bfc56 commit 2ff4e9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 7 additions & 1 deletion sw/airborne/modules/sensors/baro_bmp.h
Expand Up @@ -34,7 +34,13 @@
#define BARO_BMP_START_PRESS 4
#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 float baro_bmp_r;
extern float baro_bmp_sigma2;
Expand Down
3 changes: 2 additions & 1 deletion sw/airborne/modules/sensors/baro_ets.h
Expand Up @@ -45,7 +45,8 @@
#include "std.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_offset;
Expand Down
4 changes: 3 additions & 1 deletion sw/airborne/modules/sensors/baro_ms5611_i2c.h
Expand Up @@ -12,7 +12,9 @@

#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_SIGMA2 1
extern float baro_ms5611_alt;
Expand Down

0 comments on commit 2ff4e9d

Please sign in to comment.