Skip to content

Commit

Permalink
bugfix compassBiasEstimatorInit initialisation (betaflight#13226)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctzsnooze authored Dec 14, 2023
1 parent 03495f9 commit 3eb776e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/sensors/compass.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ bool compassInit(void)

buildRotationMatrixFromAlignment(&compassConfig()->mag_customAlignment, &magDev.rotationMatrix);

compassBiasEstimatorInit(&compassBiasEstimator, LAMBDA_MIN, P0);

if (magDev.magOdrHz) {
// For Mags that send data at a fixed ODR, we wait some quiet period after a read before checking for new data
// allow two re-check intervals, plus a margin for clock variations in mag vs FC
Expand Down

0 comments on commit 3eb776e

Please sign in to comment.