Ecompass algorithm and Kalman Filter

4 visualizaciones (últimos 30 días)
Mattia Vesperini
Mattia Vesperini el 24 de En. de 2020
Respondida: Vimal Rathod el 31 de En. de 2020
Hi , I used ecompass algorithm to analyze magnetometer and accelerometer signals. To process my data I need a kalman filter with input: (quaternions / angles of euler) and gyroscope. how can i implement it?
  3 comentarios
Mattia Vesperini
Mattia Vesperini el 27 de En. de 2020
Editada: Mattia Vesperini el 27 de En. de 2020
I consulted this link, I can't understand how to input my data in kallmanfilter. I attach my code:
orientation = ecompass(accelerometerReading,magnetometerReading);
rotationvector=rotvecd (orientation);
quaterionEulerAngles = eulerd (orientation, 'ZYX' , 'frame' )

Iniciar sesión para comentar.

Respuestas (1)

Vimal Rathod
Vimal Rathod el 31 de En. de 2020
To use the kalman filter to analyze the signals you first have to create a state-space model which will be directly passed with the noise covariance to the kalman function.
Refer the following link to know more about how to create a state-space model.
Refer the following link to know more about how to apply kalman filter using a state space model
Incase you just want to estimate the orientations from the readings of accelerometer and gyroscope readings, you could use the imufilter function which returns a kalman filter object which could be used on the signal readings directly.
Refer to the following link for more informantion about the imufilter function and about the FUSE object which will be returned when imufilter is used.
Refer to the sample code below to know how it is used. In the below example the simpler version is given but you could set different properties for the filter by passing different inputs in the imufilter function.
% returns a kalman filter object.
FUSE = imufilter;
%generates estimates about orientation and angular velocities
[orientation,angularVelocity] = FUSE(accelReadings,gyroReadings);
Hope this helps!

Community Treasure Hunt

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

Start Hunting!

Translated by