|
All About GPS
GPS is a complex technology but understanding it can
be quite easy if you take it one step at a time. This tutorial is designed to
give you a good basic understanding of the principles behind GPS without
loading you down with too much technical detail. For those details see the
reference links in our GPS Guide.
Why GPS?
Trying to figure out where you are and where you're
going is probably one of man's oldest pastimes.
Navigation and positioning are crucial to so many
activities and yet the process has always been quite cumbersome. Over the years
all kinds of technologies have tried to simplify the task but every one has had
some disadvantage.
Finally, the U.S. Department of Defense decided that
the military had to have a super precise form of worldwide positioning. And
fortunately they had the kind of money ($12 billion!) it took to build
something really good. The result is the Global Positioning System, a system
that's changed navigation forever.
What is GPS?
The Global Positioning System (GPS) is a worldwide
radio-navigation system formed from a constellation of 24 satellites and their
ground stations. GPS uses these "man-made stars" as reference points to
calculate positions accurate to a matter of meters. In fact, with advanced
forms of GPS you can make measurements to better than a centimeter!
In a sense it's like giving every square meter on the
planet a unique address.GPS receivers have been miniaturized to just a few
integrated circuits and so are becoming very economical. And that makes the
technology accessible to virtually everyone.
These days GPS is finding its way into cars, boats,
planes, construction equipment, movie making gear, farm machinery, even laptop
computers. Soon GPS will become almost as basic as the telephone. Indeed, at
Trimble, we think it just may become a universal utility.
How GPS Works
Here's how GPS works in five logical steps:
The basis of GPS is "triangulation" from satellites.
To "triangulate," a GPS receiver measures distance
using the travel time of radio signals. To measure travel time, GPS needs very
accurate timing which it achieves with some tricks. Along with distance, you
need to know exactly where the satellites are in space. High orbits and careful
monitoring are the secret. Finally you must correct for any delays the signal
experiences as it travels through the atmosphere.
We'll explain each of these points in the next five
sections of the tutorial. We recommend you follow the tutorial in order.
Remember, science is a step-by-step discipline!
Triangulating
Improbable as it may seem, the whole idea behind GPS
is to use satellites in space as reference points for locations here on earth.
That's right, by very, very accurately measuring our distance from three
satellites we can "triangulate" our position anywhere on earth.
Forget for a moment how our receiver measures this
distance. We'll get to that later. First consider how distance measurements
from three satellites can pinpoint you in space. The Big Idea Geometrically:
Suppose we measure our distance from a satellite and
find it to be 11,000 miles.Knowing that we're 11,000 miles from a particular
satellite narrows down all the possible locations we could be in the whole
universe to the surface of a sphere that is centered on this satellite and has
a radius of 11,000 miles.
Next, say we measure our distance to a second
satellite and find out that it's 12,000 miles away. That tells us that we're
not only on the first sphere but we're also on a sphere that's 12,000 miles
from the second satellite. Or in other words, we're somewhere on the circle
where these two spheres intersect.
If we then make a measurement from a third satellite
and find that we're 13,000 miles from that one, that narrows our position down
even further, to the two points where the 13,000 mile sphere cuts through the
circle that's the intersection of the first two spheres.
So by ranging from three satellites we can narrow our
position to just two points in space. To decide which one is our true location
we could make a fourth measurement. But usually one of the two points is a
ridiculous answer (either too far from Earth or moving at an impossible
velocity) and can be rejected without a measurement.
A fourth measurement does come in very handy for
another reason however, but we'll tell you about that later. Next we'll see how
the system measures distances to satellites.
In Review: Triangulating
Position is calculated from distance measurements
(ranges) to satellites.
Mathematically we need four satellite ranges to
determine exact position.
Three ranges are enough if we reject ridiculous
answers or use other tricks.
Another range is required for technical reasons to be
discussed later.
Measuring Distance
We saw in the last section that a position is
calculated from distance measurements to at least three satellites. But how can
you measure the distance to something that's floating around in space? We do it
by timing how long it takes for a signal sent from the satellite to arrive at
our receiver.
Getting Perfect Timing
If measuring the travel time of a radio signal is the
key to GPS, then our stop watches had better be darn good, because if their
timing is off by just a thousandth of a second, at the speed of light, that
translates into almost 200 miles of error!
On the satellite side, timing is almost perfect
because they have incredibly precise atomic clocks on board.
But what about our receivers here on the ground?
Remember that both the satellite and the receiver need
to be able to precisely synchronize their pseudo-random codes to make the
system work. (to review this point click here)
If our receivers needed atomic clocks (which cost
upwards of $50K to $100K) GPS would be a lame duck technology. Nobody could
afford it. Luckily the designers of GPS came up with a brilliant little trick
that lets us get by with much less accurate clocks in our receivers. This trick
is one of the key elements of GPS and as an added side benefit it means that
every GPS receiver is essentially an atomic-accuracy clock.
The secret to perfect timing is to make an extra
satellite measurement. That's right, if three perfect measurements can locate a
point in 3-dimensional space, then four imperfect measurements can do the same
thing.
This idea is so fundamental to the working of GPS that
we have a separate illustrated section that shows how it works. If you have
time, cruise through that.
Satellite Positions
In this tutorial we've been assuming that we know
where the GPS satellites are so we can use them as reference points.But how do
we know exactly where they are? After all they're floating around 11,000 miles
up in space.
A high satellite gathers no moss
That 11,000 mile altitude is actually a benefit in
this case, because something that high is well clear of the atmosphere. And
that means it will orbit according to very simple mathematics. The Air Force
has injected each GPS satellite into a very precise orbit, according to the GPS
master plan.
On the ground all GPS receivers have an almanac
programmed into their computers that tells them where in the sky each satellite
is, moment by moment.The basic orbits are quite exact but just to make things
perfect the GPS satellites are constantly monitored by the Department of
Defense.
They use very precise radar to check each satellite's
exact altitude, position and speed.The errors they're checking for are called
"ephemeris errors" because they affect the satellite's orbit or "ephemeris."
These errors are caused by gravitational pulls from the moon and sun and by the
pressure of solar radiation on the satellites.
The errors are usually very slight but if you want
great accuracy they must be taken into account.
Getting the message out Once the DoD has measured a
satellite's exact position, they relay that information back up to the
satellite itself. The satellite then includes this new corrected position
information in the timing signals it's broadcasting.
So a GPS signal is more than just pseudo-random code
for timing purposes. It also contains a navigation message with ephemeris
information as well. With perfect timing and the satellite's exact position
you'd think we'd be ready to make perfect position calculations. But there's
trouble afoot. Check out the next section to see what's up.
In Review: Satellite Positions
To use the satellites as references for range
measurementswe need to know exactly where they are.
GPS satellites are so high up their orbits are very
predictable.
Minor variations in their orbits are measured by the
Department of Defense.
The error information is sent to the satellites, to be
transmitted along with the timing signals.
Error Correction
Up to now we've been treating the calculations that go
into GPS very abstractly, as if the whole thing were happening in a vacuum. But
in the real world there are lots of things that can happen to a GPS signal that
will make its life less than mathematically perfect.
To get the most out of the system, a good GPS receiver
needs to take a wide variety of possible errors into account. Here's what
they've got to deal with. First, one of the basic assumptions we've been using
throughout this tutorial is not exactly true. We've been saying that you
calculate distance to a satellite by multiplying a signal's travel time by the
speed of light. But the speed of light is only constant in a vacuum.
As a GPS signal passes through the charged particles
of the ionosphere and then through the water vapor in the troposphere it gets
slowed down a bit, and this creates the same kind of error as bad clocks.
There are a couple of ways to minimize this kind of
error. For one thing we can predict what a typical delay might be on a typical
day. This is called modeling and it helps but, of course, atmospheric
conditions are rarely exactly typical. Another way to get a handle on these
atmosphere-induced errors is to compare the relative speeds of two different
signals. This "dual frequency" measurement is very sophisticated and is only
possible with advanced receivers.
Trouble for the GPS signal doesn't end when it gets
down to the ground. The signal may bounce off various local obstructions before
it gets to our receiver. This is called multipath error and is similar to the
ghosting you might see on a TV. Good receivers use sophisticated signal
rejection techniques to minimize this problem.
Problems at the satellite
Even though the satellites are very sophisticated they
do account for some tiny errors in the system.
The atomic clocks they use are very, very precise but
they're not perfect. Minute discrepancies can occur, and these translate into
travel time measurement errors.
And even though the satellites positions are
constantly monitored, they can't be watched every second. So slight position or
"ephemeris" errors can sneak in between monitoring times.
Basic geometry itself can magnify these other errors
with a principle called "Geometric Dilution of Precision" or GDOP.
It sounds complicated but the principle is quite
simple.
There are usually more satellites available than a
receiver needs to fix a position, so the receiver picks a few and ignores the
rest. If it picks satellites that are close together in the sky the
intersecting circles that define a position will cross at very shallow angles.
That increases the gray area or error margin around a position.
If it picks satellites that are widely separated the
circles intersect at almost right angles and that minimizes the error region.
Good receivers determine which satellites will give the lowest GDOP.
In Review: Correcting Errors
The earth's ionosphere and atmosphere cause delays
in the GPS signal that translate into position errors. See a summary of error
sources.Some errors can be factored out using mathematics and modeling. The
configuration of the satellites in the sky can magnify other
errors.Differential GPS can eliminate almost all error.
|