Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateIMU problem with parameters in AQUA #85

Open
JessicaBertolasi opened this issue Aug 30, 2022 · 0 comments
Open

updateIMU problem with parameters in AQUA #85

JessicaBertolasi opened this issue Aug 30, 2022 · 0 comments

Comments

@JessicaBertolasi
Copy link

Hi, I'm trying to calculate quaternions with AQUA filter - using only acc and gyro.
I actually implemented this

for index in range(len(timestamp)):
    q[index] = AQUA.estimate(AQUA, accelerometer[index])
    q1[index] = AQUA.updateIMU(AQUA, q[index], gyroscope[index], accelerometer[index])

where timestamp define the legth of the document where to get the datas.

It return me an error on q1

Traceback (most recent call last):
  File "quaternion.py", line 60, in <module>
    q1[index] = AQUA.updateIMU(AQUA, q[index], gyroscope[index], accelerometer[index])
  File "/home/jessicab/.local/lib/python3.8/site-packages/ahrs/filters/aqua.py", line 941, in updateIMU
    qDot = 0.5*self.Omega(gyr) @ q                      # Quaternion derivative (eq. 39)
TypeError: Omega() missing 1 required positional argument: 'x'

how can I fix it? I still tried to edit qDot = 0.5*self.Omega(gyr) @ q in qDot = 0.5*self.Omega(AQUA,gyr) @ q directly from source library but after that it returns me an error on the successive line qInt = q + qDot*self.Dt that says that AttributeError: type object 'AQUA' has no attribute 'Dt'

how can I fix it and find quaternions? thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant