Calculation of coordinates for sending to the rover