:?
Does this mean that the original problem is solved?

(correction of a sentence in my former post: "ground_dist IMO must be higher _than_ zero, ")