How GPS receivers work (simple and advanced explanations of trilateration)

  • Thread starter Thread starter moonman239
  • Start date Start date
  • Tags Tags
    advanced Gps Work
AI Thread Summary
GPS receivers determine location by connecting with at least three satellites, sending signals, and measuring the time it takes for responses to return. The speed of light is used to calculate the distance to each satellite, and accurate timing is crucial for precise positioning. The receiver uses trilateration, creating spheres around each satellite based on the calculated distances, which intersect at a single point representing the receiver's location. Mathematically, the distances to satellites can be expressed through equations involving their coordinates. However, relativity plays a significant role in GPS accuracy. Satellite clocks run faster due to gravitational effects and slower due to their speed, resulting in a net increase in clock speed. This necessitates correction factors in the GPS signal to ensure accurate positioning.
moonman239
Messages
276
Reaction score
0
First, the GPS receiver has to "find" at least three satellites. The more, the better.
Then, it sends a signal to the satellites and waits for their response. It even records the time between when the receiver sent a signal and when it received the response. In a vacuum, the signals can travel at the speed of light (about 3 million meters/second). All it has to do is take the time, divide it by half to get the time it took the signal it sent to reach the satellite, and multiply it by the speed of light. For the most accurate calculation, the timing must be accurate, so the receiver figures out what time it is according to the clocks that the satellites use.
The receiver now knows its distance to the satellites and the latitude, longitude, and elevation of each of the satellites.
The receiver then "draws" three spheres, each one centered at a satellite and having a radius equal to its distance to the receiver. Those three spheres intersect at only one point: your current location. This is known as trilateration.

Advanced (for math geeks): The receiver knows that its distance to a satellite can be calculated using the following equation:

(x1-x2)2 + (y1 - y2)2 + (z1 - z2)2 = r2

where point 1 represents the satellite, and point 2 represents the receiver, and r is the distance to the satellite
Given the distance to three satellites and their positions, it now has three equations. The receiver then finds the point whose x, y, and z coordinates satisfy all three equations. This point represents where you are in coordinate space.
 
Computer science news on Phys.org
moonman239, what was your point in posting this? Is there a question in there somewhere or did you just need to get that off your chest?

I note that you have completely ignored relativity effects, which means that your receiver will likely end you up in a cornfield somewhere.
 
phinds said:
moonman239, what was your point in posting this? Is there a question in there somewhere or did you just need to get that off your chest?

I note that you have completely ignored relativity effects, which means that your receiver will likely end you up in a cornfield somewhere.

How does relativity affect the accuracy of the signal?
 
moonman239 said:
How does relativity affect the accuracy of the signal?
Due to gravitational relativistic effects, the clocks on satellites in orbit should run faster than they would if on the surface of the earth. The relative speed of the satellites should cause their clocks to run slower. The combined effects result in their clocks running faster.

More information can be found at this web site:

gps_and_relativity.htm

The wiki article on GPS mentions a correction factor:

the P code, for U.S. military use, transmits at 10.23 million chips per second. The actual internal reference of the satellites is 10.22999999543 MHz to compensate for relativistic effects
 
Last edited:
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
i am customizing a Linux distro [arch] into love os which I am building to impress my crush. I had an idea to integrate an ai model into the Linux system so it can speak like me but romantically. but I don't know what or how to do. I don't know the basic concept of Linux but yet I am customizing my os purely relying on chat gpt and perplexity. when i ask chat gpt about this it said to fine tune an ai model and integrate to the Linux distro and my friend said for the data to be fed to the ai...
Back
Top