Improved performance of ground to mouse distance determination