Target Distance & Bearing Calculation
With the help from mathematics, the remaining distance to a targeted location (teddy bear) is calculated at all times so that the drone knows when to stop. At the same time, the bearing must be know so that the drone has the correct heading, and does not end up flying further away from the target object.