Skip to content

Commit 3db239f

Browse files
comment
1 parent e3384ff commit 3db239f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/smsfusion/_smoothing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,14 @@ def _backward_sweep(
285285

286286
# Backward sweep
287287
for k in range(len(x) - 2, -1, -1):
288+
# Smoothed error-state estimate and corresponding covariance
288289
A = P[k] @ phi[k].T @ np.linalg.inv(P_prior[k + 1])
289290
ddx = A @ dx[k + 1]
290291
dx[k, :] += ddx
291292
if cov_smoothing:
292293
P[k, :, :] += A @ (P[k + 1] - P_prior[k + 1]) @ A.T
293294

295+
# Reset
294296
dda = ddx[6:9]
295297
ddq = (1.0 / np.sqrt(4.0 + dda.T @ dda)) * np.r_[2.0, dda]
296298
x[k, :3] = x[k, :3] + ddx[:3]

0 commit comments

Comments
 (0)