ahrs icon indicating copy to clipboard operation
ahrs copied to clipboard

Error when intializing FAMC filter without acc or mag samples.

Open osskov opened this issue 8 months ago • 0 comments

Minor bug but when initializing an FAMC filter with no acc or mag entry, it throws: AttributeError: 'NoneType' object has no attribute 'copy'

Here is the version of the initialization call in the package: class FAMC: def init(self, acc: np.ndarray = None, mag: np.ndarray = None): self.acc = acc.copy() self.mag = mag.copy() self.Q = None if self.acc is not None and self.mag is not None: self.Q = self._compute_all()

osskov avatar Oct 14 '23 00:10 osskov