Flight Controller-Nano V3-MPU6050-HCSR04

Hi All

Im new to Arduino and need help with a sketch for a simple flight controller that has sonar for low alt hold. I dont know how to make the sketch for upload to the board. I have basic electronics and understand "Basic" programing. Please can some1 help with a sketch so i can reverse engineer and try understand and learn what does what and when Thanx :confused:

Have a look at the examples, coming with the libraries for the sensors, motor drivers etc.