3D distance filter for the autonomous navigation of UAVs in agricultural scenarios