[rotorcraft] move compute_dist2_to_home and ground_alt