Skip to content

Commit c1bc047

Browse files
small fix
1 parent eac09dd commit c1bc047

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/smsfusion/_smoothing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def __init__(self, ains: AidedINS | AHRS | VRU, cov_smoothing: bool = True) -> N
4242
self._ains = ains
4343
self._cov_smoothing = cov_smoothing
4444

45+
# Buffers for storing state and covariance estimates from forward sweep
4546
self._x_buf = [] # state estimates (w/o smoothing)
4647
self._P_buf = [] # error covariance estimates (w/o smoothing)
4748
self._dx_buf = [] # error-state estimates (w/o smoothing)
@@ -50,6 +51,10 @@ def __init__(self, ains: AidedINS | AHRS | VRU, cov_smoothing: bool = True) -> N
5051
self._x = np.array([]) # smoothed state estimates
5152
self._P = np.array([]) # smoothed error covariance estimate
5253

54+
# Smoothed state and covariance estimates
55+
self._x = np.empty((0, 16), dtype="float64")
56+
self._P = np.empty((0, *self._ains.P.shape), dtype="float64")
57+
5358
@property
5459
def ains(self) -> AidedINS | AHRS | VRU:
5560
"""

0 commit comments

Comments
 (0)