Skip to content

Commit 75a7eb7

Browse files
authored
Double expected acceleration for kalman filter (#31)
The expected velocity of the rocket is 160m/s^2. We will double this for some safety factor for the kalman filter so that it does not reject values too easily. This change was made after performing a simulation test with double the expected acceleration and noticing that values were being rejected by the kalman filter.
1 parent 8be8748 commit 75a7eb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

firmware/src/sensors/baro_thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(baro_thread, LOG_LEVEL_INF);
3131
#define GRAVITY 9.80665f
3232

3333
/* Tuning knobs */
34-
#define KF_SIGMA_A 100.0f // m/s^2, process noise standard deviation of acceleration
34+
#define KF_SIGMA_A 340.0f // m/s^2, process noise standard deviation of acceleration
3535
#define BARO0_SIGMA_Z 1.5f // m, measurement noise standard deviation of altitude
3636
#define BARO1_SIGMA_Z 1.5f // m
3737

0 commit comments

Comments
 (0)