ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Complementary Filters

I have an MPU9250.  I am attempting to calculate angular position in both roll and pitch planes, using the accel and gyro.  I have used the complementary filter used by an NI demonstration on youtube.  When a single filter is implemented, ie just on roll, this works perfectly.  I am putting raw and filtered data into a waveform chart.  However when I try to process both roll and pitch (on separate waveform charts, separate filter sub vi), both become wrong all of a sudden.  Has anyone experienced this before.  Is it down to the performance of my laptop (which is poor), or am I missing something fundamental here?

 

Thanks,

Chris

0 Kudos
Message 1 of 4
(5,740 Views)

Hi enrcjone,

 

Would it be possible for you to upload your code onto the thread? 

 

What NI demonstration have you been watching?

Jinfone
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(5,710 Views)

This is the video I was following:  https://www.youtube.com/watch?v=vtIiqnTJoHg

 

And i have attached the project as a zip

 

Thanks,

 

Chris

0 Kudos
Message 3 of 4
(5,699 Views)

Hi.  I am aware that this now a very old thread, but the topic and content are still relevant and of interest.

 

In the Youtube video which Lewis Gear posted back in 2012, was a link to the underlying LabVIEW code, but this link is now broken.

 

Is anyone able to provide me with a copy of the Complementary Filter software?  I would be very grateful.

 

Thanks - Alan K.

0 Kudos
Message 4 of 4
(534 Views)