01-26-2015 01:36 PM
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
01-28-2015 03:07 AM
Hi enrcjone,
Would it be possible for you to upload your code onto the thread?
What NI demonstration have you been watching?
01-28-2015 12:02 PM
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