Hello, i am trying to be able to find the distance between our bot and one of the high goals with the GPS sensor, currently my method includes using the distance formula, sqrt((x2-x1)^2 + (y2-y1)^2), where x2 and y2 is the position of the high goals, (red goal being both positive 1350 and blue goal being both negative 1350 for x and y), and x1 and y1 being the position retrieved from the GPS Sensor.
I get a distance, but i am not sure what that distance means or if its correct, i assumed it was in mm but when i converted it to inches, the distance was still incorrect. Is there something I am doing wrong?