class AngularRate does not accept q0
l82ky opened this issue · comments
https://github.com/Mayitzin/ahrs/blob/master/ahrs/filters/angular.py#L355
q0 argument is ignored by the AngularRate constructor
In init declaration q0 is specified as a named argument:
def init(self, gyr: np.ndarray = None, q0: np.ndarray = None, frequency: float = 100.0, order: int = 1, **kw):
But self.q0 is set via **kw:
self.q0 = kw.get('q0', np.array([1.0, 0.0, 0.0, 0.0]))
Fixed in commit dd914a2