Hardware-Software Co-Design for Path Planning by Drones