# how it works

### What data is recorded 

*  We need to reproduce the flight path, so we need the GPS coordinates of each time of the drone 

*  We need to make sure the photos are the same, so we need to record the gimbal angle, the drone heading, and the camera activity at each time.

### How to control the drone

*  We can control the drone to move in each direction by controlling the speed of the drone in the x, y and z axes, and then we can calculate the distance between the current GPS coordinates of the drone and the coordinates we want to reach, and substitute the result into the control algorithm to control the aircraft to any GPS coordinates in real time.

### How to control the camera

* The route we record is actually a very dense set of GPS coordinates, which we call waypoints, and each waypoint contains a lot of data, not just GPS coordinates. We can determine whether the camera needs to work based on the camera activity stored in the waypoint, and if it needs to work, control the drone to stay in place, adjust the gimbal angle and execute the camera task, and then continue to the next waypoint after the execution is completed.

  Translated with www.DeepL.com/Translator (free version)

