I have built a quadcopter and am trying to design a control algorithm to stabilise it in flight. I have done a simulink model of the quadcopter that uses PID control and stabilises fine. I would like to somehow convert this simulink model into arduino code so that i can fly it without it connected to my computer using an arduino board. Is this possible?
The aim is to design my own flight stabilisation algorithm for a quadcopter after simulating it on simulink and then testing it experimentally.