in this video i will show how to make 2 modes to control pitch and roll: first mode is manual and second is auto stabilize based on accelrometer MPU6050.
full code & scheme:
https://drive.google.com/drive/folders/17e6vr0rGXn-xZlKS8C4OISBvtuPB27HF?usp=sharing
please subscribe my channel :)