Code for an aerial drone and its controller