Also, I've been wondering, how effective the old scheme with a secret military and a public code was - certainly an old GPS reciever shows up sometimes at a military surplus store. I wouldn't be surprized if enemy nations bought one of those, and extracted the secret parameters from the now quite old chips using modern technology.
Semi-codeless receivers can use it anyways. The reason is that the W code has a much lower data-rate (500KHz I think).
Take the incoming signal, correlate with the aligned P code. The resulting signal will be a MHZ wide signal, bandpass to it, and square the result. The squaring wipes off the residual W code. Because you bandpass filtered before the squaring you don't get so much squaring loss. Lock the resulting carrier, and use RTK signals and long observations to resolve integer ambiguities.
For a dual frequency rx you can exploit that P(Y) is the same on both frequencies and correlate them against each other to find the ionospheric delays.
E.G.
P code 1001011010010110101010100010101
W code 00001111000000001111111100001111
And since it's modulated with the W code this would leak information. Not really sure how off base that part is, that's just a rough explanation I was told many years back.
https://en.wikipedia.org/wiki/GPS_signals#Military_.28M-code...
Though I'm honestly surprised I've "known" of GPS for this long and never realized there were a variety of codes. Legacy--some still operating, modern, military, and more. I'm going to enjoy binge reading this wiki/math stuff tomorrow.
Obviously the self-driving cars of the future will also need other sensors as GPS doesn't work under tunnels and bridges.
[1] https://agriculture.trimble.com/precision-ag/products/steeri...
Most if not all airliners equipped with autoland systems use ILS rather than GPS for position as well.
Knowing the lane of the highway you are may be useful as well.
Yesterday I read an idea from a guy who wanted to create a mariokart-style "ghost" via AR to pace you while you are on a run. That's one example.
Would you have links to any examples?
That's not true. Military receivers can use the Y Code which is encrypted for military use only. There are some really fancy civilian receivers out there that can leverage Y code to a limited extent without knowing the encryption key but full accuracy is only possible on a military receiver that can decrypt and use the Y code.