@@ -162,7 +162,7 @@ def velocity(self) -> NDArray:
162162 Velocity estimates for each of the N time steps where the smoother has
163163 been updated with measurements.
164164 """
165- if len (self ._x ) == 0 :
165+ if len (self ._x_buf ) == 0 :
166166 return np .array ([])
167167 return self .x [:, 3 :6 ]
168168
@@ -176,7 +176,7 @@ def quaternion(self) -> NDArray:
176176 Unit quaternion estimates for each of the N time steps where the smoother has
177177 been updated with measurements.
178178 """
179- if len (self ._x ) == 0 :
179+ if len (self ._x_buf ) == 0 :
180180 return np .array ([])
181181 return self .x [:, 6 :10 ]
182182
@@ -190,7 +190,7 @@ def bias_acc(self) -> NDArray:
190190 Accelerometer bias estimates for each of the N time steps where the smoother has
191191 been updated with measurements.
192192 """
193- if len (self ._x ) == 0 :
193+ if len (self ._x_buf ) == 0 :
194194 return np .array ([])
195195 return self .x [:, 10 :13 ]
196196
@@ -204,7 +204,7 @@ def bias_gyro(self, degrees: bool = False) -> NDArray:
204204 Gyroscope bias estimates for each of the N time steps where the smoother has
205205 been updated with measurements.
206206 """
207- if len (self ._x ) == 0 :
207+ if len (self ._x_buf ) == 0 :
208208 return np .array ([])
209209 bg = self .x [:, 13 :16 ]
210210 if degrees :
@@ -221,7 +221,7 @@ def euler(self, degrees: bool = False) -> NDArray:
221221 Euler angles estimates for each of the N time steps where the smoother has
222222 been updated with measurements.
223223 """
224- if len (self ._x ) == 0 :
224+ if len (self ._x_buf ) == 0 :
225225 return np .array ([])
226226 q = self .quaternion ()
227227 theta = np .empty ((q .shape [0 ], 3 ))
0 commit comments