05.03.2013 Views

Data Hacking

Data Hacking

Data Hacking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A — GPS Primer<br />

Receivers generally use four or more satellites, however, to improve accuracy and provide precise<br />

altitude information.<br />

In order to perform this simple calculation and determine where you are, the GPS receiver has<br />

to know two things:<br />

The location of at least three satellites above you<br />

The distance between you and each of those satellites<br />

The more accurate these values are, the more accurate your position will be.<br />

The GPS receiver determines both the location of the satellites and your distance from them by<br />

analyzing the high-frequency, low-power radio signals from the GPS satellites. Better units have<br />

multiple (or parallel) receivers, so they can pick up signals from several satellites simultaneously.<br />

If you buy a GPS receiver nowadays, it will be a multi-channel receiver (12 or even 14 channels<br />

simultaneously).<br />

The radio waves from the GPS SVs, like all other radio waves, are electromagnetic energy, which<br />

means that they propagate at the speed of light (roughly 186,000 miles per second, or 300,000 km<br />

per second, in a vacuum). A GPS receiver can figure out how far a signal has traveled by timing<br />

how long it took the signal to arrive. The mechanism by which it does this is quite clever.<br />

At a particular time (midnight, for example), the SVs begins transmitting a long digital pattern<br />

called a pseudo-random code. This code consists of a carrier wave that transmits the digital “chips”<br />

that make up the code. The receiver knows when this code starts (this information is transmitted<br />

to the GPS along with the signal) and begins running the same digital pattern at exactly the same<br />

time. When the satellite’s signal reaches the receiver, its transmission of the digital pattern will<br />

lag slightly behind the digital pattern that the receiver would expect. This lag between the two<br />

corresponds to the time delay from the satellite sending the signal and the receiver receiving it.<br />

Speed × Time = Distance<br />

Therefore, if it takes 0.08 of a second for a satellite’s signal to reach the GPS receiver, the<br />

distance between the two must be 14,880 miles (186,000 miles per second × 0.08 seconds =<br />

14,880 miles). The GPS receiver must be located somewhere on an imaginary sphere that has<br />

a radius of 14,880 miles.<br />

One thing that GPS relies on is accurate timing. To provide this, every GPS satellite carries<br />

four atomic clocks on board that provide an extremely accurate timing signal. The GPS receiver,<br />

however, doesn’t contain an atomic clock (this would make it preposterously expensive!). Instead,<br />

it contains an inexpensive quartz clock, and the internal timekeeping is updated when the<br />

receiver is capable of locking on and receiving a signal from four or more SVs.<br />

GPS Signal Errors<br />

The GPS system isn’t absolutely perfect, however, because the radio signal has to propagate<br />

through the atmosphere to the receiver. The receiver isn’t perfect either. The following table<br />

describes the sources of the possible errors present.<br />

311

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!