Need assistance with a quaternion based attitude estimator in simulink

Hello,

I’m a mechanical engineering student, and I’m working on a school project. I need to make a controller for a drone in simulink. My task right now is to build a quaternion based estimator for the attitude.

I’ve tried multiple implementations of EKF and complementary filters, butnothing seems to work as it should for now.

Before this project, I had no experience in this subject, so I had to learn it all by myself for now. The assistance we have for this project at my school is basically useless, so I’m writting here to see if someone have any experience in that and would be willing to help me.

If you want you can reach out to me and I’ll send you what I’ve done for now

julien.berset@epfl.ch

thanks !

Do these help you?

  1. PX4-Autopilot/src/modules/ekf2/EKF/python/ekf_derivation/derivation.py at 5eecffe60a0e5167b7d2f268a739f098b677742e · PX4/PX4-Autopilot · GitHub

  2. PX4-Autopilot/src/modules/attitude_estimator_q/attitude_estimator_q_main.cpp at 5eecffe60a0e5167b7d2f268a739f098b677742e · PX4/PX4-Autopilot · GitHub