Skip to content

Commit 5cf56e8

Browse files
committed
Fix comment/code mismatch in position estimator weight factors
Comments incorrectly stated 0.3 when code uses 0.5f. Updated comments to match actual implementation.
1 parent 798a612 commit 5cf56e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/navigation/navigation_pos_estimator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static bool gravityCalibrationComplete(void)
354354
static void updateIMUEstimationWeight(const float dt)
355355
{
356356
static float acc_clip_factor = 1.0f;
357-
// If accelerometer measurement is clipped - drop the acc weight to 0.3
357+
// If accelerometer measurement is clipped - drop the acc weight to 0.5
358358
// and gradually restore weight back to 1.0 over time
359359
if (accIsClipped()) {
360360
acc_clip_factor = 0.5f;

0 commit comments

Comments
 (0)