Implementing Model Predictive control for quadcopters

Hi , im a beginner who just got into developing controllers.

i heard PX4 uses cascaded PID. I wanted to implement model predictive control on the quadcopter which i am trying to build. However i don’t know which repositories to go through / which parts of code i should change.

Kindly help, or share a few video or resources that talks about the same