18 ms·
GPS
- hwers 5y agoThis person deserves to get filthy rich off of their patreon.
- DaltonCoffee 5y agoAgreed, amazing content and presentation! The article covers much of what you'd learn in an advanced positioning course.
- marai2 5y agoThis guy is a (inter-)national treasure!
- whiteboardr 5y agoNot just filthy rich i guess. Bartosz is a one of a kind explainer of things - no matter what topic he touches, he always manages to outright nail the communication of the core concepts in a manner almost anyone can understand. Let alone the interactive visualizations. There should be some sort of Nobel Prize for people that contribute to humanity’s education - and methods therof. Kudos!
- epaulson 5y agoA MacArthur Fellowship would be a good award for him.
- anon_123g987 5y agoThat's for Americans only.
- fikama 5y agoI like this idea much also I would say that Ben Eater also deserve such a prize if one will exists
- nielsbot 5y agoThought I'd link Patreon, here: https://www.patreon.com/ciechanowski https://www.patreon.com/ciechanowski
- arendtio 5y agoThanks, I created a Patreon account just to support him :-) For anyone who is still hesitant: Just do it, it feels so good to put your money where you mouth is ;-)
- drawkbox 5y agoYes what an absolute solid educational interactive, from presentation to code to writing and simplicity. Additionally the code level, If you view the source you can see, nice clean, non-minified code that is clear and has no dependencies other than browser/render standards. The project simply has a base.js and a gps.js, base for common canvas tools and gps for the project/interactives. Very nicely done and very refreshing to see and experience. We need to get back to this level, it was a simpler higher level with more innovation. Even HN's code is this way, partially why this site is great besides the contributors and curation. Engineering/creative and good value creation is ultimately taking complexity and making it simple, this is right along those lines in every aspect. Simple is beautiful and very difficult to achieve in a cluttered/distracting/dependency/minimal context overload world. This interactive nails it. Solid work Bartosz Ciechanowski!
- hwers 5y ago@dang Why was this suddenly pushed to the bottom of the comments? (After being second in rank.) Possibly a bot detection false positive. Hope this is fixed so the author gets the reward he deserves for this amazing work
- daveofdaves 5y agoI hear you.
- eDameXxX 5y agoI'm so much impressed by the fact that all these graphics are in fact interactive animations created/written by Bartosz himself. Well done.
- jakub_g 5y agoAuto-upvoted based on domain name. See all submissions from Bartosz: https://news.ycombinator.com/from?site=ciechanow.ski https://news.ycombinator.com/from?site=ciechanow.ski
- deleted 5y ago[deleted]
- masswerk 5y agoYes, great educational content and great interactive animations! (Also, a constant reminder to learn WebGL. ;-) )
- elxr 5y agoThis article just pushed WebGL to the top of my to-learn list! Those graphics were lovely, and makes me realize how underutilized this stuff is in the modern web.
- masswerk 5y agoThe really neat stuff is in the details, like when the elastic rope curls. – We have somewhat forgotten how important these details are, even in infographics. Let's call this "interactive texture".
- NKosmatos 5y agoAnother excelent post with very detailed explanation and step by step information for GPS. Check out also the other posts by Bartosz.
- tfsh 5y agoWhat an interesting read, it feels like a privilege to have free and open access to such well presented curiosity-led work.
- spicybright 5y agoFor every handful of crappy sites people use as examples for why the modern web sucks, we get fantastic sites like this one. There's amazing stuff out there, you just have to spend time looking around!
- eminence32 5y agoThere's a lot of really great info in here. One random things I learned from this: > As that angle increases, the signal from a satellite travels more sideways and its larger portion gets affected by the atmosphere. To account for this, GPS receivers ignore ranges measured from satellites at very low elevation angles. ... atmospheric effects are primary source of GPS inaccuracies. (I know GPS has inaccuracies, but I didn't really know what caused them, but if I had to guess, the atmosphere wouldn't have been on my list of guesses for the top causes)
- throw0101a 5y agoThis is also true for celestial navigation with a sextant and the light refracting in the atmosphere: the "Altitude Correction Tables" give the combined correction for refraction, semidiameter, and parallax under standard atmosphere conditions. * https://reginasailing.com/wp-content/uploads/2020/04/Altitude-Correction-Table.pdf https://reginasailing.com/wp-content/uploads/2020/04/Altitud... * https://thenauticalalmanac.com/Altitude_Correction_Tables.pdf https://thenauticalalmanac.com/Altitude_Correction_Tables.pd... * https://thenauticalalmanac.com/Altitude_Correction_Tables_for_the_Moon.pdf https://thenauticalalmanac.com/Altitude_Correction_Tables_fo...
- mnw21cam 5y agoNot only that. You can use a ground-based fixed station to listen to GPS signals and work out how much they have been affected by the atmosphere. This then gets fed back into the weather prediction models used by many weather forecasting services.
- brandmeyer 5y agoEven better, use a receiver in low-earth orbit. See also: COSMIC, GeoOptics, Spire, and PlanetiQ.
- JackMcMack 5y agoSomething not mentioned: the "new" L5 signal at 1176Mhz, combined with the existing L1 signal at 1575Mhz, allows the receiver to estimate the atmospheric effects and reduce the uncertainty, allowing for a much better position fix. Think centimeters instead of meters. One more thing I've wondered: the system depends on the sattelites knowing and broadcasting their exact position, but how do you determine this position? From ground stations, sure, but how exactly? What's the margin of error on that? And to add to this, how do you bootstrap this? Galileo had an outage from 2019-07-11 to 2019-07-18 [0]. I've not read much about the details what caused the outage, or why it took an entire week to get back up & running. [0] https://www.gsc-europa.eu/news/galileo-initial-services-have-now-been-restored https://www.gsc-europa.eu/news/galileo-initial-services-have...
- Toutouxc 5y agoSo who else spent five minutes playing with the flexible rope?
- progbits 5y agoWonderful write up, as always from Bartosz! Here are some fun GPS projects I've found in the past, maybe others can add to this list. GPS/Galileo/Beidou/Glonass status and error monitoring, open-source community-ran project: https://galmon.eu/ https://galmon.eu/ DIY GPS receiver using minimal signal frontend, FPGA Forth CPU for real-time processing and RPi running position solvers: http://www.aholme.co.uk/GPS/Main.htm http://www.aholme.co.uk/GPS/Main.htm
- picture 5y agoThe transition from the white background of "theory" to the black background of "space" is so satisfying for some reason
- Accacin 5y agoWonderful, I learnt a lot!
- zeeb 5y agoGPS applies the theory of relativity directly to your everyday life... pretty cool!
- jandrese 5y agoGPS is great because it has to take into account both special and general relativity. Very few consumer goods can make this claim.
- ModernMech 5y agoIndeed, GPS is the technology I always point to for people who don't believe in relativity. If relativity isn't real, then explain how GPS works!
- juxtaposicion 5y agoHow are these interactive visualizations made? As a senior machine learning engineer (with only rudimentary JS skills) it would be fantastically fun to make something like these.
- vbezhenar 5y agohttps://ciechanow.ski/js/base.js https://ciechanow.ski/js/base.js https://ciechanow.ski/js/gps.js https://ciechanow.ski/js/gps.js Looks like WebGL to me.
- dt3ft 5y agoBeautiful. I also checked the archives on that blog and every article is a work of art. I would love to work with this dev!
- openfuture 5y agoSomeone told me that apparently they aren't made, they are discovered.
- onion2k 5y agoIt's WebGL in a <canvas>, written by hand by the looks of the source - https://ciechanow.ski/js/gps.js https://ciechanow.ski/js/gps.js
- tiborsaas 5y agoThe author wrote his own WebGL library. If you don't have much knowledge about 3D, then https://threejs.org/ https://threejs.org/ is a fantastic library to learn. It abstracts away much of the tedious part. Not sure what's the best starting point to learn, but there's lots of videos on YT to help you get started.
- pahn 5y agonot what he/she uses, but if you are interested in these kind of things, check out https://cables.gl/ https://cables.gl/ . it provides you with an in-browser, graphical, node based interface where you can just connect boxes together and it will output js-code ready to implement in your website. (disclosure: i know the dev plus am a huge fan!)
- jvanderbot 5y ago> Naturally, large range uncertainty increases the ambiguity of position, but the relative position of the satellites also matters. If they aren’t well spread, the exactness of calculated location also suffers. (see the excellent example in OP) Fun tidbit, the resulting error is known for the system in closed form as Geometric Dilution of Precision, and is a 3x3 (edit: or 4+x4+ if you are estimating bias or quantities like time, thx brandmeyer) matrix that depends on all the locations of the visible sats, and your position relative to them. GDOP is a general relationship for any estimator based only on the equations used to derive something from sensor remote sensor measurements. It's possible to derive GDOP for any sensing system using the Fisher Information Matrix (which is the inverse of GDOP). Some minor caveats apply, but in general this is a useful trick. FIM is worth learning if you want to get into sensing & estimation. https://en.wikipedia.org/wiki/Fisher_information https://en.wikipedia.org/wiki/Fisher_information Another fun thing: FIM can be derived a number of ways, and appears if you simply ask (mathematically) "What is the most likely position of the gps sensor given sat locations" as the hessian matrix of the system that you use while answering that question using e.g., convex minimization. All of sensing & estimation is just mostly convex optimization.
- jmnicolas 5y agoYou and I have definitively a different notion of what is fun ;)
- brandmeyer 5y agoThe natural expression of the DOP matrix is 4x4, since the receiver is computing a solution in 4D space-time. Its pretty common for the dominant eigenvector to be along the time-vertical axis for a terrestrial receiver.
- jvanderbot 5y agoGreat point, thanks. I edited.
- beerandt 5y agoGeometric quality is easy to consider in terms of using trig and measured angles to solve for an (roughly) equilateral triangle vs a triangle with a very small measured internal angle. Also, it's easier to understand variables vs uknowns of GPS if you consider that direct measurement is of velocity and/or acceleration, and position is the resultant derivative, after taking into account the probabilities of various solutions. (Velocity and acceleration can be measured directly without making as many assumptions about various starting conditions.)
- ChrisMarshallNY 5y agoThat is a really well-done page! Kudos to the author.
- js2 5y agoAs a complement to this amazing explanation of GPS, let me recommend this documentary about GPS's creation: The Lonely Halls Meeting a GPS Documentary https://scpnt.stanford.edu/news/tom-sylvester-video-lonely-halls-meeting-gps-documentary https://scpnt.stanford.edu/news/tom-sylvester-video-lonely-h... https://www.amazon.com/Lonely-Halls-Meeting-GPS-Documentary/dp/B07J2QW13V https://www.amazon.com/Lonely-Halls-Meeting-GPS-Documentary/...
- masswerk 5y agoHowever, I do like the role GPS plays as a plot device in all kind of stories, where it's an active device, with GPS-enabled devices giving away position or there's no GPS in the wilderness, as mobile connections fail. So there are two versions of GPS, the popular plot device and the actual navigation device. (The more sinister version is that this has actually been planted as a cover-up for more realistic electronic intrusions, as this is also a trope in popular media and news.)
- beerandt 5y agoThere are way more (real-world) versions than two, with quite a few arrangements that can cancel out some of the systematic error, both with and without inputs requiring a data connection, and with some augmented solutions passively broadcast as "one-way" data. The funny thing is that the James Bond/ Tomorrow Never Dies plot device has turned out to be the most realistic, but doesn't actually require the theft of some encoding device, with various record and delay replay attacks. Other underused plot device: lots is made out of over reliance on GPS and what would happen in the event of an attack on the system. But most ignores the fact that the US NAVSTAR GPS constellation is multipurpose, and is also a (confirmed) primary component of worldwide nuke detection, with some (afaik unconfirmed) claims of a missile launch detection capability, as well.
- Rebelgecko 5y agoThe original study by Woodford and Nakamura (which laid the foundations for what eventually became NAVSTAR/GPS) has a really fascinating slide where they consider the tradeoffs of alternative configurations. What if GPS receivers had transmitters? What if the mathy computation was offloaded to a nearby ground station? What if every GPS receiver had an atomic clock? Or just a cheap quartz clock? How does that impact the quality of the signal and the number of satellites you need to get a fix? I think we're really fortunate that they made the choices they did. If they hadn't take the route that was the most complicated technically, GPS wouldn't have become as ubiquitous as it is today.
- jcrawfordor 5y agoThere's good reason for them to have considered these questions too, as a lot of the satellite-based positioning systems prior to GPS, such as the Navy's TRANSIT, involved both a more active receiver and offloading parts of the work to ground stations. This was very practical at the time, as is TRANSIT fixes were so complex that GE had to design a special computer with a cylindrical chassis so that it would fit through the porthole for installation in submarines. This replaced the previous situation of the submarine having to send its TRANSIT observations to a ground station for fix calculation. You can still do this with GPS if you want. In the surveying community, it's not unusual to collect an extended period of raw GPS observations (e.g. 48 hours) and then submit them to NOAA's offline GPS computation service OPUS which will return a fix by email a while later. This can result in a more accurate fix but perhaps more importantly a more consistent fix, since OPUS will apply the exact same sophisticated solver used for other government geodetics like survey benchmarks. The tradeoff is that OPUS is slow enough that it tends to run on a queue. In any case modern GPS involves surprisingly active receivers since smartphones commonly use AGPS over IP to accelerate receiving ephemera.
- taubek 5y agoIf all of the teaching materials would be so good... I've encountered first GPS devices back 1997.i remember when my coulegues were explaining them to me. At that time you wouldn't get precise measurements right away. You had to wait for correction factors or something like that. The GPS signal was scrambled at that time.
- jandrese 5y agoIn order to determine where you are you need to know where all of the satellites are. For a standalone receiver this involves downloading a almanac of the satellites from the signal, but GPS receivers have small antennas and the satellites don't blast out at tremendous power so the available bandwidth is very low. This means the effective bitrate of a GPS signal is only 50 bits per second so it takes twelve and a half minutes to transmit the entire list. Cell phones get around this by downloading the almanac from the internet. Standalone receivers also keep the almanac in nonvolatile storage, but the almanacs eventually go stale if you leave the receiver off for too long.
- grkvlt 5y agosurely you need to know where you are not, to know where you are. if the difference between where you are not and where you were, or vice versa, is correct, then you are being targeted by the missile.
- modeless 5y agoThe article explains the delay. The satellites transmit their ephemeris data and other important data very slowly, 50 bits per second, so you have to listen to the signals for a long time to get all of it. Not explained in the article is that modern GPS receivers in phones download this data separately from the internet, so they can calculate positions instantly without waiting for the data to finish transmitting.
- myself248 5y agoI think you're talking about receiving a full almanac and ephemeris, and the parent is talking about post-processing. See my parallel comment about PP. Even sidestepping the internet just handing you a full alm+eph dump, modern standalone receivers can perform a cold-start much faster than their predecessors, because they have huge numbers of receiver channels available. The system operators cleverly offset the almanac being transmitted by each satellite, so if you can receive several satellites at once, you can start writing your almanac with several pencils on the page writing different paragraphs, as it were. Finish the page very quickly. In the early 90s, it was common for a GPS receiver to have just 4 channels. So a blind search through all the satellite PRNs could take quite a while, and since the receiver didn't know where anything was yet, Murphy's law guaranteed that any satellite it did get a lock on would soon disappear over the horizon anyway. It took agonizingly long to get lucky and hit a bird just coming into view, so you could get whole messages from it and start filling in that table. And of course any obstructions that limited your sky-view just made it worse. By the late 90s, 12-channel receivers were fairly common, my first was one of these. This greatly increased the odds of getting useful satellites in a reasonable period of time, and on cold-start it would get a fix pretty reliably in 15 minutes, sometimes less. In all cases, if the user could give the receiver a hint of the current time (within a few minutes) and location (within a few degrees), as soon as it got part of the almanac it could start figuring out which satellites must be behind the Earth right now, versus which ones would likely be overhead, and make much better use of its receiver channels to shorten the TTFF. Additionally, being able to estimate the Doppler shift greatly shortens the lock-on period. Today's receivers don't even have discrete radio channels in the old sense, they just have a wide RF front end and then slice the data into digital correlator pipelines, achieving hundreds of virtual channels. True "all-in-view" reception is possible even with four full constellations aloft, and it's nearly magical how good they are. Cold-start times under a minute in some cases. HOWEVER. A survey receiver, whose data is being post-processed, need not even calculate its own position. (It probably does, since that costs nothing once the data has been received, but it's not strictly necessary.) It just records carrier-phase measurements and pseudoranges, along with clock and doppler info, in (or later converted to) a format called RINEX. The surveyor just keeps it in one place for a while, marks down "3:32pm-3:38pm, marker C", and then moves to the next point. Later back at the office (once the precise ephemeris comes out), the RINEX is crunched with that better data, and solutions are derived which allow the surveyor to say exactly where Marker C actually is. This is better than doing it in real time, because the ephemerides available in real time just aren't that good. Only by measuring with a network of ground stations, can the better ephemerides be calculated, and then applied to the observations. There's also RTK and correction networks, which deserve mention: Real-Time Kinematic is called that because it tells you about distance and motion, the kinematics, _relative to a nearby base station_. If the base doesn't know where it is, the rover doesn't either. So the base is usually surveyed first, using the techniques outlined above, and then that surveyed position is combined with the kinematic differences, to derive the rover's precise position. It requires a data link between the base and rover, though that's gotten dramatically easier in the last few decades... Correction networks do all of that, over a wide area, providing a "virtual reference station" nearby to wherever you need it to be. The corrections are transmitted typically over a separate data channel (often on leased L-band satellite time), and applied by the receiver. Some are available over the internet as well, if cellular signal is easy to come by wherever you happen to be. I don't know as much about these as I'd like to.
- cwt137 5y agoBest non-rocket scientist explanation of GPS ever!
- MajorSauce 5y agoAnyone else got the concept by conducting probe scanning in the MMO Eve Online?
- vladstudio 5y agoIf you have not yet seen the other articles by Bartosz, I am jealous :-) https://ciechanow.ski/archives/ https://ciechanow.ski/archives/
- copperx 5y agoWhy are you jealous of someone not reading the other articles? Are they factually incorrect? I found them to be amazingly accurate.
- _Microft 5y agoThe ones new to them can still experience the wonder of discovering these articles for the first time.
- vladstudio 5y agosorry for not being clear. Yes I referred to the joy of discovering them for the first time.
- SamBam 5y agoThis is very nice. Very clear, and the 3D interactives are excellent at guiding the explanation. One thing that I thought was a little confusing was right at the beginning, when we were estimating the position of the figurine and there was an area of uncertainty shown by the yellow circle. It isn't clear how you're estimating position, and why we have an area of uncertainty. At first I figured it was going to explain it using triangulation (measurement of angles) but there's no reason triangulation wouldn't be exactly as accurate as the tape measure method on a 2D surface, so wouldn't explain the area of uncertainty. The description merely says: > Just by using these three reference points we can relate the figurine’s position in the environment to an approximate placement on the map as show with the yellow shape on the right. I worry that having this ambiguity so early on might put some people off from reading the rest, because they figure they don't understand that and so won't understand the rest of it.
- thehappypm 5y agoLiterally left the article to come here to see if anyone addressed this yet. I can’t figure out what it means.
- tazjin 5y agoIt's about literally looking at it (in 3D) and guessing the exact position on the 2D map, which is easier closer to the landmarks. At least that's my interpretation.
- thehappypm 5y agoYeah, I suppose it’s like “you are a human standing on a flat plain looking at these 3 landmark towers. Where on the map are you? Intuitively you would be able to eyeball the angles between the landmarks, and eyeball the relative distances. I don’t think I’d draw a circle though. I’d probably have way less confidence for the landmark farther away and balloon out my estimate.
- randomifcpfan 5y ago
- mherdeg 5y agoI'd be interested to see an illustration of how selective availability works -- if your goal is to ensure that a position cannot be determined accurately, how do you alter the signals produced by your satellites to correctly introduce only the desired amount of error?
- genewitch 5y agoCivilian GPS does this two ways, clock skew and how many digits of resolution the timestamp is.
- garaetjjte 5y agoSelective availability worked by introducing pseudorandom variation into satellite clock used to generate C/A signal, which directly mapped into pseudorange errors. http://www.nbmg.unr.edu/staff/pdfs/blewitt%20basics%20of%20gps.pdf http://www.nbmg.unr.edu/staff/pdfs/blewitt%20basics%20of%20g... (page 8)
- CaliforniaKarl 5y agoOne of the things I love about GPS is: Since you know your exact position, you can pick a good GPS satellite (one of the satellite's you're using to calculate your position), look at the timestamp from that satellite, and use it as a highly-accurate time source! Purpose-built GPS time servers (like those from Meinberg) give you an option to enter the length of the coax cable connecting the receiver and the antenna, so that it can correct for the extra time it takes for the signal to travel over the cable (for example, see https://www.meinbergglobal.com/download/docs/manuals/english/m300_gps_ltos5.pdf https://www.meinbergglobal.com/download/docs/manuals/english... page 19).
- withinboredom 5y agoThen you’d have a Stratum 0 source for a stratum 1 NTP server!
- AceJohnny2 5y agoWhich is what Google did to have a quality time-source for synchronized time for their global database: https://www.wired.com/2012/11/google-spanner-time/ https://www.wired.com/2012/11/google-spanner-time/
- jlgaddis 5y ago> ... quality time-source ... Except they decided to "smear" leap seconds [0], instead of handling them appropriately. For that reason, if you "require correct timestamps for legal purposes" [1], you may want to make sure that you aren't using Google's NTP servers. (N.B.: Amazon (AWS) too, FWIW.) --- [0]: https://developers.google.com/time/smear https://developers.google.com/time/smear [1]: https://docs.ntpsec.org/latest/leapsmear.html https://docs.ntpsec.org/latest/leapsmear.html
- floatrock 5y agoMy car does this. Unfortunately, it's a Honda/Acura, and there's a downstream bug in the way the receiver sends the info to the clock display that this year, almost all older Hondas/Acura's are reporting the wrong time: https://didhondafixtheclocks.com/ https://didhondafixtheclocks.com/ > Honda’s head unit receives a GPS signal for date and time including a number representing a week, coded in binary. These digits count from 0-1024 and rollover to 0 after the completion of week 1024. Honda’s head unit supplier did not code their head units to account for the rollover and, on January 1, 2022, reverted to a date and time 1024 weeks in the past [1024/52 = 19.7, so 20 years in the past or 2002] So despite all the almost-magic level of engineering that has gone into the GPS system that has stayed consistent for 40-some-odd years, a classic integer overflow has ruined it all because some subcomponent test engineer didn't think to check the inputs against the expected lifetime duration of the car's equipment. Another fun issue with these is DST databases. The satellites will tell you the time, but it's up to you know how your location translates into a DST zone. And if you have long-running offline equipment (say, a car), and the DST dates change, well, your smarts are only as smart as the update procedure.
- ragona 5y agoI'm weirdly impressed by the "switch to metric/imperial" button that updates the article text. It's just so helpful.
- askvictor 5y agoI wish this was standard in recipe webpages. It really makes a difference, and shows the author is thinking about their audience.
- ninkendo 5y agoAdam Ragusea has a good video on why recipes aren't so easy to translate between imperial and metric: https://www.youtube.com/watch?v=TE8xg3d8dBg https://www.youtube.com/watch?v=TE8xg3d8dBg It comes down to the fact that the ingredients we buy from the stores near us tend to come in nice round numbers in our local measuring system, and recipes tend to be tailored to that. For example, "1 cup of shredded cheese and 1lb sausage" may translate precisely to "236.9 mL shredded cheese and 0.45kg sausage", but your nearby store selling metric ingredients may have shredded cheese in a 300mL bag and sausage in 0.5kg packages. So you either measure very precisely and waste food (which makes the recipe a pain to get right), or try to use the local equivalent (and the recipe might not end up tasting the same as a result.) So there ends up being some "art" to doing a proper translation.
- askvictor 5y agoFor baking, precision is important, but subsequently most recipes are precisely specified, so the conversion should be followed pretty exactly. For most non-baking recipes, precisions is much less important, so a 'recipe translator' could either perform some rounding (maybe there should be a 'level of precision' metadata element for recipes), or, I could just do the rounding in my head and use my critical thinking facilities rather than following the recipe blindly.
- causality0 5y agoConsidering GPS was originally created for military purposes, I find it fascinating that the largest holes are over the north and south poles. The northern polar region is where the US-launched missiles and bombers would travel. Does the lesser orbital coverage in that area not negatively affect GPS precision?
- detaro 5y agoIt does affect precision, but it also isn't needed that much in an area you travel over.
- chipsa 5y agoICBMs don't use GPS. The almost universally use a inertial guidance system. For example: https://en.wikipedia.org/wiki/Advanced_Inertial_Reference_Sphere https://en.wikipedia.org/wiki/Advanced_Inertial_Reference_Sp.... Bombers use a similar inertial guidance system, but with updates from GPS and star trackers as applicable. The reduced precision from GPS doesn't matter too much, as the inertial guidance systems are pretty good now.
- jcadam 5y agoThe assumption is that in a nuclear conflagration, expect GPS to become... unavailable.
- jcrawfordor 5y agoA surprising number of ICBMs have used star trackers as well! It's somewhat surprising that ICBMs used star trackers before inertial guidance was sufficiently precise. The idea of an automated, high-precision star tracker is not so surprising today but back in the '60s it was quite an achievement.
- cronix 5y agoI don't believe ICBM's are using GPS. They're programmed like they always have been and follow a very predictable path and don't change course (unlike hypersonic missiles). It's the "smart weapons" that are usually plane/ship dropped/launched that are gps guided as they are smaller munitions that have a much smaller blast radius and need to be more precise to be effective (as opposed to just carpet bombing the whole area). Those are "close" range weapons. You don't need to be very precise with an ICBM to obliterate the target, as it's usually city-sized. A mile off here or there will still destroy the target. Planes can and do still fly without GPS. There also haven't been too many wars involving the poles as basically no one lives there except science teams and no one wants the "land" as you can't do anything economically practical with it. Most of our ICBM's are still ancient Minuteman III's which were manufactured in the 1960's (my dad launched one in 68 out of Minot AFB, ND) and recently updated in 2015 to extend their useful life.
- cromulent 5y agoGPS is fascinating, especially the development period. Due to the complexity of the signal processing (relativity means that the clocks onboard run faster than on earth) there was much scepticism. The story I heard was that they only let them launch 1 Block 1 satellite to prove that could work, and then the first block of 10 satellites was used to validate the system before spending enough to get the full 24 satellites needed.
- jcadam 5y agoAnd the story about why the GPS satellites carry a NUDET payload (NDS) is a fun one too.
- jcadam 5y agoVery nice primer. I worked on the GPS program (first at Boeing, then at a small subcontractor when Lockheed won the GPS III work) - though I worked on the software simulator for the satellites (focused on the operational side of the constellation) so didn't get much into the weeds of how the PNT actually works for clients on the ground :)
- mNovak 5y agoIf you want to explore deeper, there's some fun (and well commented) open source GPS processing codes in Octave/Matlab [1], coming from the excellent book [2]. Those are compatible with cheap RTL-SDRs. [3] also looks nice, but as I recall is Linux only. [1] https://github.com/kristianpaul/SoftGNSS https://github.com/kristianpaul/SoftGNSS [2] https://www.ocf.berkeley.edu/~marsy/resources/gnss/A%20Software-Defined%20GPS%20and%20Galileo%20Receiver.pdf https://www.ocf.berkeley.edu/~marsy/resources/gnss/A%20Softw... [3] https://gnss-sdr.org/ https://gnss-sdr.org/
- standardUser 5y agoOn this topic, maybe someone can share the status of Galileo and the Russian and Chinese systems?
- kristofferR 5y agoThey are operational and very compatible with GPS. Modern devices have them all, the iPhone 13 for examples combines satellite data from GPS, BeiDou, GLONASS & Galileo. In practice, you get a "super-GPS", with way more satellites (120 vs GPS' 35) and great coverage. Potential accuracy can be in the cm's, it is all about software optimization. https://www.nature.com/articles/srep08328 https://www.nature.com/articles/srep08328
- arendtio 5y ago> What I find particularly remarkable is how... ...Bartosz always manages to over-deliver despite very high expectations. Amazing! Maybe we should give him an impossible task, like explaining different types of neural networks ;-)
- gsibble 5y agoOne of my favorite engineering tech interview questions is asking an engineer how they think GPS works. You won't believe how many people start with: "Well, your cell phone sends a signal to the satellite......." Amazing that even engineers don't understand that GPS receivers don't talk to the satellites.
- jason0597 5y agoI don't quite understand how such questions help in the hiring process? It reminds me of the famous "why are pothole covers round" question, still not sure what it achieves.
- goodpoint 5y agoSome are silly, some are effective ways to measure curiosity and ability to think through an abstract problem.
- HeyLaughingBoy 5y agoYes, but how many of them are relevant to determining if a particular candidate is a good fit for a programming position?
- mhb 5y agoEngineers, not programmers.
- dpark 5y agoWhat kind of “engineers”? I’m not aware of most engineers going through this sort of interview. Mostly just software engineers who are indeed programmers even if they get uppity about the title
- mhb 5y agoOK, I'll play. Some qualities that are valuable in an engineer are curiosity, creativity, and general knowledge. If your nomenclature has a programmer as a software engineer and a software engineer as an engineer, then these qualities are also valuable in programmers. If you ask an interviewee how GPS works and he says something about the cell phone sending signals to a satellite, you would want to pursue that further, at least to make sure that he's asserting that with a sufficiently low confidence.
- mavci 5y agoAs someone who learned about GPS and was impressed by its structure, I used to tell my friends around me, whenever I had the opportunity, how great GPS was. Now I saw this article and I got goosebumps, well done, thank you very much! It's really fantastic. From today it will be enough for me to just share this article with my friends, or I will tell along with this article.
- pauldavis 5y agoWhat a debt your friends have to OP! :)
- deleted 5y ago[deleted]
- TomVDB 5y agoIf you're interested in the implementation details of a home made GPS receiver, check out this fantastic writeup: http://www.aholme.co.uk/GPS/Main.htm http://www.aholme.co.uk/GPS/Main.htm.
- AlexanderTheGr8 5y agoI never understood what motivates these people to spend so much time and effort making such an amazing blog to educate so many people in such a nice way....It's incredible!
- HeyLaughingBoy 5y agoSome people really like teaching and are very good at it.
- ranit 5y agoLikely out of love to educate. And/or if you are inclined to look for less altruistic reasons, just his blog presence in HN could bring him a lot of visibility. Every of his amazing posts appeared on first page (disclaimer: I have seen and enjoyed a few, I don't know that for certain.)
- VHRanger 5y agoSimilar ones: - https://www.redblobgames.com/ https://www.redblobgames.com/ - https://ncase.me/ https://ncase.me/
- whiteboardr 5y agoBartosz is a one of a kind explainer of things - no matter what topic he touches, he always manages to outright nail the communication of the core concepts in a manner almost anyone can understand. Let alone the interactive visualizations. There should be some sort of Nobel Prize for people that contribute to humanity’s education - and methods therof. Kudos!
- npollock 5y agohttps://www.patreon.com/ciechanowski https://www.patreon.com/ciechanowski
- anonporridge 5y agoLegacy? Organization and presenting information in a uniquely useful way can cement your life as having a major impact on the memetic evolution of human colossus, to a much greater degree than making babies ever will in most cases, even if no one ever knows or remembers your name. There's a certain satisfaction in knowing that you've made an impact on millions of minds and that that impact will ripple into the future for as long as the light of consciousness burns.
- indiantinker 5y agoSo incredible!
- ajsnigrutin 5y agoHere's gps from another perspective: http://lea.hamradio.si/~s53mv/navsats/theory.html http://lea.hamradio.si/~s53mv/navsats/theory.html This guy made his own gps receiver from scratch in 1991-1992
- skilled 5y agoWhat even is this explanation! Holy crap. I wish I knew more people to share it with.
- leeoniya 5y agothis guy is a legend: https://ciechanow.ski/archives/ https://ciechanow.ski/archives/ (pretty sure each post has had its own HN submission) also see 3Blue1Brown: https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw
- seanalltogether 5y agoHow feasible is it to speed up the bitrate used by GPS? This really helped explain why it takes so long to get a position based on how slowly these satellites are sending information.
- modeless 5y agoMost receivers these days get that information from the internet so there is no need to wait minutes for the data transmission.
- mpmpmpmp 5y agoI think the slowness of the bitrate is about making sure any errors in transmission caused my the atmosphere can be detected and accounted for.
- tails4e 5y agoThoroughly enjoyable read, and explained a complex system excellently. Well done.
- gunshai 5y agoThis blog turns around high quality explorations for things so quickly. It is astonishing.
- SomewhatLikely 5y agoFrom the toy model it seems like if in addition to distance you could also get your angle to the landmark then you could get your position from a single landmark. Is that something which is practical? Knowing which angle a radio signal came from? It seems like if you had several receivers you could use the timings of when they receive a message to determine the approximate direction of the satellite in the sky. Given receivers have gotten much cheaper over time, is this a viable extra constraint to improve accuracy?
- scrumbledober 5y agothen you're basically just doing the triangulation backwards. I'd think the accuracy would decrease the closer together your multiple receivers were
- jzwinck 5y agoUsing multiple receivers on the ground to improve accuracy is done, but the details are different to what you describe. See https://en.m.wikipedia.org/wiki/Differential_GPS https://en.m.wikipedia.org/wiki/Differential_GPS
- rzzzt 5y agoAssisted GPS in phones can augment GPS data with information coming from cell towers nearby. From a quick search, some are omni-directional while others operate in a specific direction. Depending on reported signal strength, you could get some hints on the angle as well.
- perlgeek 5y ago> Is that something which is practical? Not really. Determining the angle of a microwave signal requires a pretty big receiver dish (or an array of receivers, at least). The wavelength of the GPS L1 band is 19cm, you'd need (roughly) something of at least 10x that size to get a good sense of where a signal is coming from, so on the order of 2m. A single good antenna and sensitive amplifier gets you a fix on more satellites, which provides good accuracy with less space and hardware used.
- gfd 5y agoDumb question, but how does this deal with security? Can't anyone broadcast valid but malicious data on 1575.42 MHz? (e.g. to crash planes/missiles etc) EDIT: found wiki from some quick googling https://en.wikipedia.org/wiki/Spoofing_attack#Global_navigation_satellite_system_spoofing https://en.wikipedia.org/wiki/Spoofing_attack#Global_navigat...
- ezconnect 5y agoIt's illegal in most countries to jam or transmit on that frequency.
- ncmncm 5y agoBut common in military activity.
- grkvlt 5y agoit's already illegal to cause a plane to crash, regardless of the mechanism used, and the legality of the mechanism generally has no bearing on its effectiveness...! but, gps (or other gndss) spoofing or jamming is effective, and i think that commercially available jammers simply broadcast reasonably broad spectrum noise around that frequency, which can overwhelm nearby recievers; although the article describes how noise rejection is performed, it has its limits. spoofing is more difficult, but still possible, including simple re-broadcast attacks using data received at another location, however i believe these things are non-trivial for military receivers due to countermeasures like beam steering?
- myself248 5y agoYes, and there are moves in the next generation to add cryptographic signatures to the satellite streams. Someone could still jam it, but they couldn't spoof it. Tons of info starting here: https://berthub.eu/articles/posts/galileos-authentication-algorithm-part-1/ https://berthub.eu/articles/posts/galileos-authentication-al... Continued here: https://berthub.eu/articles/posts/galileos-authentication-algorithm-part-2/ https://berthub.eu/articles/posts/galileos-authentication-al... And finally here: https://berthub.eu/articles/posts/galileos-authentication-algorithm-part-3/ https://berthub.eu/articles/posts/galileos-authentication-al...
- skzv 5y agoAmazing work. I work on the Android location team at Google, and I sent this article out to my team. GPS/GNSS is critical for accurate location/context, and there's still plenty of innovations happening in this field. One of our directors is Frank Van Diggelen - none other than the professor who taught the Stanford GPS MOOC referenced by the article :) I'm sure he is going to appreciate seeing the course called out there!
- mleonhard 5y agoThere are certain streets in downtown SF where Android (and iOS) location always suddenly jumps to a block away. Navigation apps then direct drivers to make incorrect turns or even dangerous turns like turning the wrong way onto a one-way street. It seems to me that your software could prevent this error.
- skzv 5y agoYup! This issue, which is commonly described as the "wrong-side-of-the-street" or "wrong-city-block" error, is one of the biggest ones, and is where a lot of the innovation I mentioned is happening today. This occurs because in "urban canyons", meaning streets with tall high-rises or sky scrapers, there is little or no line of sight to GNSS satellites (GNSS being the generic term for all satellite positioning systems, not just the American GPS). Consequently, what your phone picks up are signals reflected off of buildings, which exaggerates the distance between you and the satellites, and causes the positioning solution to be pushed away- onto the other side of the street or another city block. One way Google/Android is tackling this is by using Google's trove of 3D building data, the same that is rendered in Google Earth when you use it in 3D. Your phone uses the building data to correct for reflections. Read on here (and note the authour!): https://android-developers.googleblog.com/2020/12/improving-urban-gps-accuracy-for-your.html https://android-developers.googleblog.com/2020/12/improving-... And, the device can use various filters and smoothers to minimize sudden jumps, and normally does, but there are edge-cases (for example, an app may be requesting pure "unfiltered" GNSS location returned directly from the GNSS chipset, hence the jumps). But rest assured, we are working on this issue. Anyway, thanks for the feedback. We're always doing our best to improve location accuracy and reliability for billions of users in all scenarios and environments, and it's no trivial feat!
- YATA0 5y agoGPS is truly one of those technologies that bring the adage "any sufficiently advanced technology is indistinguishable from magic" to life.
- coryfklein 5y agoIt's so depressing that – at some point in the future – I'm going to want a really clear and precise explanation of how GPS works and the likelihood that an internet search directs me to this excellent, clean, and ad-free blog is essentially nil.
- amelius 5y agoI searched for an excellent, clear and precise explanation of GPS that is clean and ad-free, and landed on your comment.
- mometsi 5y agoI know not by what tools Web 3.0 content will be found, but Web 4.0 will be searched using hn comment breadcrumbs.
- bobberkarl 5y agothis is why i always add "thanks"||"it worked" in my queries
- coryfklein 5y agoYou may be on to something here. With GPT-3 you could improve the quality of the responses by starting with a prompt like, "You're a well-educated and very helpful individual". Maybe internet searches can be improved by changing the search from "how gps works" to "excellent, clear, and precise explanation of gps"?
- shesto 5y agoThis guys blog is simply amazing every time he posts something immediately gets tons of upvotes
- darkwizard42 5y agoThis is such a good write-up. Slowly builds on top of what I would consider the very basics of location terms while adding complexity in a digestible way. Excellent illustrations, great examples, and overall an informative teaching tone... It is worth every minute you spend reading it (took me over 60 to get through it and I feel like I did skim a little towards the end)
- vaxman 5y agoThanks Dad (for your team’s lifetime of work, including NavStar).
- momojo 5y agoThis is a beautiful combination of interactive visuals and thorough explanation
- ezconnect 5y ago
- justinator 5y agoWhy not bookmark* it? * where, "bookmark" may mean a variety of things that saves a URL so that it can easily be recalled.
- gpsGuys 5y agoWow, this is a great resource! Major props to Bartosz Ciechanowski. It's rare to see the time aspects of GPS covered so well.
- patcon 5y agoAd the highest possible compliment, this is like Bret Victor quality!
- groggo 5y agoHow are receivers sensitive enough for this to work? A GPS watch can tell the difference between a few billionths of a second? > It only takes light one billionth of a second to travel the distance of around 1 foot.
- zarzavat 5y ago1 billionth of a second is an age in the world of radio signal processing. That's 1 GHz. Wifi goes up to 6GHz. 5G gets up to ~30GHz!
- baalimago 5y agoGreat, now I'm late for work
- muunbo 5y agoLovely visualization! Reminds me of the principles used by Bret Victor to teach things well - allow the learner to play with time and space of the simulation so they can understand the system fully. Thank you for making this