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

Tuple index out of Range - Complimentary filter #70

Open
arich6211 opened this issue Apr 5, 2022 · 1 comment
Open

Tuple index out of Range - Complimentary filter #70

arich6211 opened this issue Apr 5, 2022 · 1 comment

Comments

@arich6211
Copy link

I keep getting this tuple index out of range error for the complimentary filter. I am passing in data directly pulled from the MPU9250 sensor that I am using. Just curious what I am doing wrong.
Screenshot 2022-04-05 113056

Screenshot 2022-04-05 113254

@Mayitzin
Copy link
Owner

Mayitzin commented Apr 8, 2022

Hi, I cannot trace it back without the provided data. The only way I could reproduce it was passing an array with a single value or with None:

>>> np.array(1.0).shape[-1]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: tuple index out of range
>>> np.array(None).shape[-1]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: tuple index out of range
  • Does each array contain 3 values in it?
  • Are they being passed as an array?
  • Are there any None values?

It would be nice to check this, in order to better trace back the problem.

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

2 participants