xioTechnologies / Oscillatory-Motion-Tracking-With-x-IMU

411 stars 170 forks source link

Removing "Pull" from code #8

Open mcarlson1738 opened 5 years ago

mcarlson1738 commented 5 years ago

Hello,

I see in the code that it says it "pulls" the XIMU back to the origin when it's stationary. Do you know how I could remove this feature?

Thanks, Mike

YANG-explorer commented 2 years ago

Hello,

I see in the code that it says it "pulls" the XIMU back to the origin when it's stationary. Do you know how I could remove this feature?

Thanks, Mike

How to solve this problem?thanks

xioTechnologies commented 2 years ago

The algorithm high-pass filters the calculated velocity and position. The effect of a high-pass filter is to 'pull' a signal to zero. You can remove the high-pass filters by commenting out these sections of the code. Without the high-pass filters, the calculated velocity and position will rapidly drift and make the measurements unusable.