You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In method def _compute_all(self): of filters that have a parameter q0, computation is 1 element off.
For example, in the AQUA filter:
Q[0] = self.init_q(self.acc[0], self.mag[0]) if self.q0 is None else self.q0.copy()
for t in range(1, num_samples):
Q[t] = self.updateMARG(Q[t-1], self.gyr[t], self.acc[t], self.mag[t])
range(1, num_samples) can produce numbers only from 1, which is good if you are using reading [0] as your starting point.
But when q0 is set, it just skips [0] reading.
It can be very crucial if you send a small number of samples.
I'm trying to use def init() result as a real-time filter by sending only one sample + previous Q as q0 and because of this bug it returns only q0
The text was updated successfully, but these errors were encountered:
In method
def _compute_all(self):
of filters that have a parameterq0
, computation is 1 element off.For example, in the AQUA filter:
range(1, num_samples)
can produce numbers only from 1, which is good if you are using reading [0] as your starting point.But when q0 is set, it just skips [0] reading.
It can be very crucial if you send a small number of samples.
I'm trying to use
def init()
result as a real-time filter by sending only one sample + previous Q asq0
and because of this bug it returns onlyq0
The text was updated successfully, but these errors were encountered: