Drone flight controller

Hey guys,

I am trying to make a drone using a arduino uno, mpu6050, and a hc-12 wireless module.

Progress:I am able to receive values from the transmitter (throttle1000-2000, pithc and roll -25 to +25 and yaw -50 to +50). I am able to read the angles of the drone and rotaional rate.

Problem: I am not sure how to program the pid controller.

I have done a self balancing robot using only the angles. I am not sure how i will be using both rotaional rate and angle of the drone and the angle input from the transmitter into the pid controller and get a desired output.

Thanks.

I would read the PID controller manual for a start. Then if you do not have it contact the vendor or manufacturer for programming data and examples.

If you want some example codes.

Have a look at the multiwii code.

I know it was has been around for a long time, an not sure if they are still updating it or not.
When I used to fly rc helis an drones I remember it was quite popular until beta flight an cleanflight came along.