Skip to content

Commit

Permalink
[ins] alt_float: if USE_BARO_BOARD, dt is 1/BARO_PERIODIC_FREQUENCY
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Oct 8, 2014
1 parent c69ea3d commit a044a14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sw/airborne/subsystems/ins/ins_alt_float.c
Expand Up @@ -232,6 +232,13 @@ static void alt_kalman(float z_meas) {
DT = BARO_SIM_DT;
R = 0.5;
SIGMA2 = 0.1;
#elif USE_BARO_BOARD
#ifndef BARO_PERIODIC_FREQUENCY
#define BARO_PERIODIC_FREQUENCY 50
#endif
DT = (1./BARO_PERIODIC_FREQUENCY);
R = 0.5;
SIGMA2 = 0.1;
#elif USE_BARO_MS5534A
if (alt_baro_enabled) {
DT = 0.1;
Expand Down

0 comments on commit a044a14

Please sign in to comment.