Improved safety of AR.Drone code