Kalman filter accelerometer, gyroscope and magnetometer

26 visualizaciones (últimos 30 días)
Giuseppe Rinaldi
Giuseppe Rinaldi el 28 de Nov. de 2019
Respondida: Chidvi Modala el 2 de En. de 2020
Hi, I have a question. I have to design a Kalman filter for accelerometer, gyroscope and magnetometer and apply the sensor fusion to it. The sensor data is in three different .txt files. How can I change the filter in the link to pass my files to it? Thanks in advance!

Respuestas (1)

Chidvi Modala
Chidvi Modala el 2 de En. de 2020
Hi,
From my understanding, you are trying to extract data from the .txt files and use the data to design Kalman filter
You can use the following code and obtain required data from your files
fileID = fopen('data.txt');
Out = textscan(fileID,'%f %f %f');
A = Out{1};
B = [ Out{2} , Out{3} ];
For more information, you can refer to textscan

Categorías

Más información sobre State-Space Control Design and Estimation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by