Home > Geospatial Application Papers > Environment > Conservation & Monitoring


Full Paper | PDF | Printer Friendly Format

Page 2 of 5
| Previous | Next |


Global Positioning System GPS and its application in Forestry


The Big Idea Mathematically
In a sense, the whole thing boils down to those "velocity times travel time" math problems:

Velocity (60 mph) x Time (2 hours) = Distance (120 miles) In the case of GPS we're measuring a radio signal so the velocity is going to be the speed of light or roughly 186,000 miles per second.

The problem is measuring the travel time.
The timing problem is tricky. First, the times are going to be awfully short. If a satellite were right overhead the travel time would be something like 0.06 seconds. So we're going to need some really precise clocks. We'll talk about those soon. But assuming we have precise clocks, how do we measure travel time? To explain it let's use a goofy analogy: Suppose there was a way to get both the satellite and the receiver to start playing "The Star Spangled Banner" at precisely 12 noon. If sound could reach us from space (which, of course, is ridiculous) then standing at the receiver we'd hear two versions of the Star Spangled Banner, one from our receiver and one from the satellite. These two versions would be out of sync. The version coming from the satellite would be a little delayed because it had to travel more than 11,000 miles. If we wanted to see just how delayed the satellite's version was, we could start delaying the receiver's version until they fell into perfect sync. The amount we have to shift back the receiver's version is equal to the travel time of the satellite's version. So we just multiply that time times the speed of light and we've got our distance to the satellite. That's basically how GPS works. Only instead of the Star Spangled Banner the satellites and receivers use something called a "Pseudo Random Code" - which is probably easier to sing than the Star Spangled Banner.

A Random Code?
The Pseudo Random Code (PRC, shown above) is a fundamental part of GPS. The signal is so complicated that it almost looks like random electrical noise. Hence the name "Pseudo-Random." There are several good reasons for that complexity: First, the complex pattern helps make sure that the receiver doesn't accidentally sync up to some other signal. The patterns are so complex that it's highly unlikely that a stray signal will have exactly the same shape. Since each satellite has its own unique Pseudo-Random Code this complexity also guarantees that the receiver won't accidentally pick up another satellite's signal. So all the satellites can use the same frequency without jamming each other. And it makes it more difficult for a hostile force to jam the system. In fact the Pseudo Random Code gives the DoD a way to control access to the system. But there's another reason for the complexity of the Pseudo Random Code, a reason that's crucial to making GPS economical. The codes make it possible to use "information theory" to "amplify" the GPS signal. And that's why GPS receivers don't need big satellite dishes to receive the GPS signals. We glossed over one point in our goofy Star-Spangled Banner analogy. It assumes that we can guarantee that both the satellite and the receiver start generating their codes at exactly the same time. 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 receivers here on the ground?
We have to remember that both the satellite and the receiver need to be able to precisely synchronize their pseudo-random codes to make the system work. 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.

Extra Measurement Cures Timing Offset
If our receiver's clocks were perfect, then all our satellite ranges would intersect at a single point (which is our position). But with imperfect clocks, a fourth measurement, done as a cross-check, will NOT intersect with the first three. So the receiver's computer says "Uh-oh! there is a discrepancy in my measurements. I must not be perfectly synced with universal time." Since any offset from universal time will affect all of our measurements, the receiver looks for a single correction factor that it can subtract from all its timing measurements that would cause them all to intersect at a single point. That correction brings the receiver's clock back into sync with universal time, and bingo! - you've got atomic accuracy time right in the palm of your hand. Once it has that correction it applies to all the rest of its measurements and now we've got precise positioning. One consequence of this principle is that any decent GPS receiver will need to have at least four channels so that it can make the four measurements simultaneously. With the pseudo-random code as a rock solid timing sync pulse, and this extra measurement trick to get us perfectly synced to universal time, we have got everything we need to measure our distance to a satellite in space. But for the triangulation to work we not only need to know distance, we also need to know exactly where the satellites are.

Getting Perfect Timing
  • Accurate timing is the key to measuring distance to satellites.
  • Satellites are accurate because they have atomic clocks on board.
  • Receiver clocks don't have to be too accurate because an extra satellite range measurement can remove errors.
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.

Satellite Positions
  • To use the satellites as references for range measurements we 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.
Measuring Distance: Summary of Discussion


A GPS receiver determines its position by using the signals that it observes from different satellites. Since the receiver must solve for its position (X, Y, Z) and the clock error (x), four SVs are required to solve receiver's position using the following four equations:



where (x1,y1) (x2,y2) (x3,y3) and (x4, y4) stand for the location of satellites and R1, R2, R3, R4 are the distances of satellites from the receiver position (Figure-3). Hence solving the four equations for four unknowns X, Y, Z and x, the position or location of the station is calculated.
  1. Distance to a satellite is determined by measuring how long a radio signal takes to reach us from that satellite.
  2. To make the measurement we assume that both the satellite and our receiver are generating the same pseudo-random codes at exactly the same time.
  3. By comparing how late the satellite's pseudo-random code appears compared to our receiver's code, we determine how long it took to reach us.
  4. Multiply that travel time by the speed of light and you've got distance.
Page 2 of 5
| Previous | Next |