File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ static bool gravityCalibrationComplete(void)
354354static 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 ;
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ void estimationCalculateAGL(estimationContext_t * ctx)
149149 // Update estimate
150150 posEstimator .est .aglAlt += posEstimator .est .aglVel * ctx -> dt ;
151151 posEstimator .est .aglAlt += posEstimator .imu .accelNEU .z * sq (ctx -> dt ) / 2.0f * posEstimator .imu .accWeightFactor ;
152- posEstimator .est .aglVel += posEstimator .imu .accelNEU .z * ctx -> dt * sq ( posEstimator .imu .accWeightFactor ) ;
152+ posEstimator .est .aglVel += posEstimator .imu .accelNEU .z * ctx -> dt * posEstimator .imu .accWeightFactor ;
153153
154154 // Apply correction
155155 if (posEstimator .est .aglQual == SURFACE_QUAL_HIGH ) {
You can’t perform that action at this time.
0 commit comments