Error in Acceleration integration
AnaRhisT94 opened this issue · 2 comments
AnaRhisT94 commented
I'm getting the following error after moving the IMU:
python3 accel_integration.py
Starting Data Acquisition
Start Moving IMU...
Data Acquisition Stopped
Traceback (most recent call last):
File "accel_integration.py", line 189, in <module>
imu_integrator()
File "accel_integration.py", line 128, in imu_integrator
b_filt,a_filt = signal.butter(4,5,'low',fs=Fs_approx)
File "/home/pi/imu_project/venv/lib/python3.7/site-packages/scipy/signal/filter_design.py", line 2957, in butter
output=output, ftype='butter', fs=fs)
File "/home/pi/imu_project/venv/lib/python3.7/site-packages/scipy/signal/filter_design.py", line 2423, in iirfilter
"must be 0 < Wn < fs/2 (fs={} -> fs/2={})".format(fs, fs/2))
ValueError: Digital filter critical frequencies must be 0 < Wn < fs/2 (fs=6.0 -> fs/2=3.0)
Any idea why this happens?
AnaRhisT94 commented
Solved it by turning off the magnetometer readings which slow my rpi zero. But still the integration fails. (posted in new issue)
asciiscry3r commented
Try to downgrade python libs
…On Thu, Nov 4, 2021, 23:51 Ilan Aizelman ***@***.***> wrote:
Solved it by turning off the magnetometer readings which slow my rpi zero.
But still the integration fails.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKKRNCUZWZZLLSHVERQ2ITUKL57LANCNFSM5HLSFO5Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.