Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66670

Implement Complementary Filter from Text File

$
0
0

Hello,

 

I am a mechanical engineer student and I have just been introduced to LabView.

 

I am using an IMU (3-axis accelermoeter and 3-axis gyro) to eventually get position data.  

 

A program has already been written to calibrate, find gain and offset of the IMU for the myrio.  The accelerometer has also been converted to g's and gyro to deg/sec. Once the data is collected it is saved to a tab delimited text file.  Columns of: Time(s), Gyro_X, Gyro_Y, Gyro_Z, Acc_X, Acc_Y, and Acc_Z.  This is where my problem begins.

 

I need help in implementing the complementary filter in LabView to combine the gyro and accelerometer data across all three axis'.  I completely understand how the filter works just do not understand how LabView works yet.  I have been referencing the "mycomplementary filter" example here:  https://decibel.ni.com/content/docs/DOC-22933 but it runs in real-time so my setup is a little different.

 

I have looked into the kalman filter but believe a complementray filter will work just fine.  Eventually I will be converting this filtered data to quaternions but that is for a later discussion.

 

Any help would be great!

 

Thanks!

 


Viewing all articles
Browse latest Browse all 66670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>