How to apply a different control method for stabilizing a drone. MPC instead of PID

Hi everyone,
As part of my thesis I want to apply different control methods to stabilize quadrotor (+4servo) . What are the steps I need to implement, is there any guide, where can one see such work?

https://ardupilot.org/dev/docs/apmcopter-programming-attitude-control-2.html and related pages.

here’s a PDF link in this area. Another student interested in MPC and specifically implementation within the AC codebase https://core.ac.uk/download/pdf/188220406.pdf