C++ code to achieve autonomous flight

Hi, my project is to achieving autonomous flight which consists of tree functions object detection, tracking and control. While I have done the first two parts in c++ written function and want to write code that can send to the drone so I can control the drone using my laptop.

I am looking for c++ library in developing the drone.

Drone model: AR Drone 2.0
Operating system: Mac OS, Ubuntu 16

Please leave any comment below.

I think this will help you your 3rd part is covered in this report

Can you share your codes with me i am also stuck on same project for achieving autonomous flight