News for hackers. Stuff that matters.
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by sebzim4500 on Saturday July 24, 2021 @07:19PM (#27945198)
Might be a dumb question, but these leap seconds seem like they cause way more hassle than they are worth. Why don't we just stop adding them?
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by beerandt on Saturday July 24, 2021 @07:45PM (#27945359)
For navigation especially, these leap seconds are important so that celestial bodies rise/set/transit overhead at the expected times when calculating longitude.

Lots of critical military devices still use star based navigation, and likely even more will in the future, since it's become obvious we can't rely on NAVSTAR GPS to be working if we go to war.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by perihelions on Saturday July 24, 2021 @08:21PM (#27945541)
"Lots of critical military devices still use star based navigation,"

ICBM's inclusive. I've always thought it poetic that if humanity destroys itself, one of its final acts of comprehension will be that of a robot contemplating the heavens. We end as we began.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by toomuchtodo on Saturday July 24, 2021 @07:51PM (#27945387)
> Lots of critical military devices still use star based navigation, and likely even more will in the future, since it's become obvious we can't rely on NAVSTAR GPS to be working if we go to war.

I pine for a commercial/hobbyist grade celestial navigation system (point CCD at sky, get position). If anyone has any recommendations or pointers, would love them.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by kadoban on Saturday July 24, 2021 @08:00PM (#27945442)
You still need an accurate clock even if you can use a view of the sky, right? Not sure the best way that could work. Could accept optional updates to time via GPS?

Would this potentially work during the day, or do you need to be able to see stars? If you can see the Sun I guess that should be good enough, if the sensor can even handle that without clipping to hell?

Do you also have to be able to accurately measure angle to the horizon too? I'm not all that familiar with celestial navigation in practice.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by beerandt on Saturday July 24, 2021 @09:18PM (#27945821)
You'd either need to know your starting location, or have a clock synced with a known observatory, (which in combination with an overhead observation, is just another way to determine your approximate starting location).

You don't measure angle to the horizon, but angle from gravitational/geodetic "up", so you'd need probably a good leveling mechanism plus an inertial device, (if you want to be moving). And a reference to correct geodetic up to elliptical up (similar to a magnetic declination, but for gravity).

But even military quality geodetic transits can only get your longitude +/-100yds, plus they weigh a few hundred pounds, need to be manually set up, leveled, and a person has to do the actual observation (click a button as a star passes through the crosshair).

Granted this is decades old technology, (and I think actually used a electronic-mechanical computer) but I don't know that much has changed since then, at least in the unclassified world.

I believe ships at sea doing it manually with a sextant or similar device are only going for accuracy in the magnitude of 1-10 nautical miles.

So depending on what you're trying to do, it's questionable how much this might help you.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by toomuchtodo on Saturday July 24, 2021 @08:07PM (#27945484)
So most of my research is historical (military hardware [1]) and amateur. Building my own attempt has been on my TODO list for sometime. Assume I would use something like a CSAC (chip scale atomic clock) for local high accuracy, high stability timekeeping (and for my purposes, it's probably okay to cheat and fallback to GPS to get a PPS time update occasionally). It's my understanding that existing celestial navigation systems can discern stars even during daylight, but as I mentioned, I haven't tried it yet (although when you can detect celestial markers, accuracy can be as good as ~20 meters with a fix provided in sub 30 seconds based on state of the art).

To me, there's something profound about the idea of locating yourself in 3D space using light from stars light years away. GPS is great, but the universe is inherently providing beacons (not just stars, but also pulsars [2]) for positioning and guidance. That's very cool!

[1] https://timeandnavigation.si.edu/multimedia-asset/nortronics... (Nortronics NAS-14V2 Astroinertial Navigation System: Mounted behind the SR-71’s cockpit, this unit, affectionately known as “R2-D2,” computed navigational fixes using stars sighted through the lens in the top of the unit. These fixes were used to update the inertial navigation system and provided course guidance with an accuracy of at least 90 meters (300 feet). Some current aircraft and missile systems use improved versions as a backup to GPS.")

[2] https://directory.eoportal.org/web/eoportal/satellite-missio... (ISS Utilization: NICER/SEXTANT)

(I have not acquired nor reversed engineering any military grade celestial navigation equipment or systems, please don't sic ITAR on me)

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by tzs on Saturday July 24, 2021 @10:34PM (#27946200)
> You still need an accurate clock even if you can use a view of the sky, right?

Yup. In the 18th century figuring out a way to get accurate enough time at sea to allow accurate navigation was one of the most pressing problems for the various countries trying to establish themselves as major players in the New World.

Whichever country figured it out first would gain a significant military and economic advantage for as long as they could keep it secret.

An excellent book about this is "Longitude" by Dava Sobel [1].

[1] https://en.wikipedia.org/wiki/Longitude_(book)

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by loonster on Saturday July 24, 2021 @08:13PM (#27945504)
The sun is only 1 point of reference. You would want at least 3 to know exactly where you are. I suppose a built in compass would be a 2nd.

With two points that should narrow down the position to two possible locations (with rather large uncertainty).

Edit: thinking about it further knowing north would reduce it down to 1 point. You also need to know where you are in the world to know which way magnetic north is pointing. It would be 1 very fuzzy spot.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by beerandt on Saturday July 24, 2021 @09:25PM (#27945856)
Yeah, you're sort of assuming a generic geometric solution, when we already know how to simplify a lot of the math/ reduce the unknowns.

If you find Polaris, you have both a vector to north and an angle to calculate latitude. No other info needed for that.

So you only need 1 overhead star plus a clock to figure out approx longitude.

Magnetic north is only useful if you need help finding Polaris.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by loonster on Monday July 26, 2021 @08:37AM (#27958625)
During the day, can you see polaris? If you only have the sun as a reference you will need a 2nd reference to know where you are. Magnetic north would be easily available.

For celestial objects, The math is rather simple. It is the intersection of 2 circles. The refence between the two objects would resolve which intersection is the correct one.

For magnetic north and 1 celestial object, the math is much more complex. Magnetic declination changes depending on where you are. You have to know roughly where you are before you start using it.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by beerandt on Tuesday July 27, 2021 @12:32AM (#27968637)
You can see Polaris with the right equipment, meaning an eye adjusted to darkness, and a filter on your optics. It's always above the horizon in the Northern hemisphere, even during the day. (Same goes for the Southern cross in the Southern hemisphere.)

Polaris is important because it doesn't move, relative to the rest of the sky rotating around it.

You measure the angle from Polaris to geodetic "up" and that's the complimentary angle to your latitude. There is no complex math, just 90-x=y

If you have the time in London, and can observe the sun at its peak (solar noon) then you have longitude (after converting hours to degrees, and keeping minutes and seconds).

Or with an almanac, you can measure pretty much any known ID'd star or the sun at any time, and look up longitude from that.

Reinventing the wheel isn't needed, it's been the same process for centuries.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by amluto on Saturday July 24, 2021 @07:59PM (#27945437)
I expect that whatever ephemerides the military uses are perfectly capable of handling UTC-TAI offset (and relativistic correction and refractive correction and orbital perturbation and speed-of-light correction for the observer’s location and pretty much any other error you can think of).

Whether the instruments being used are precise enough for any of this to matter is a different story. I’m quite curious whether military clocks correct their own relativistic errors. Military satellites almost certainly do.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by beerandt on Saturday July 24, 2021 @08:22PM (#27945548)
The Navy is historically in charge of keeping official time in the US, and many other countries.

It's not that they can or can't make adjustments vs any other standard of keeping time, it's that they don't have to.

Whatever may (or may not) make sense today, we adjust to Navy time, because that's what's official, and that's what GPS time is ultimately based on.

Re, relativistic corrections, I don't know the answer for sure, but they average the time between multiple (I think cesium?) atomic clocks. If those clocks all shared the ~same reference frame, I'd think, by definition, you'd not need to make a relativistic adjustment. The frame you'd reference to is the one you're already in.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by paxys on Saturday July 24, 2021 @07:30PM (#27945283)
They cause a hassle but are required. The Earth's rotation isn't perfectly constant, so without any adjustment we would keep drifting away from solar time.
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by himinlomax on Saturday July 24, 2021 @07:44PM (#27945354)
They are not required when using TAI. The only sensible way to count time is with TAI. UTC and its leap seconds should only be used for display/parsing, not for counting time. That people do otherwise is rage inducing.
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by user-the-name on Saturday July 24, 2021 @08:08PM (#27945490)
A time expressed in TAI that is in the future has no conversion to human-readable time. That is not a very useful piece of data for many, many use cases.
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by d110af5ccf on Saturday July 24, 2021 @08:44PM (#27945642)
> TAI that is in the future has no conversion to human-readable time

Doesn't it convert to within some margin for error? Checking Wikipedia, I see that the delta between TAI and Unix time has only drifted 27 seconds since 1972. That should be more than sufficient for your average mundane human readable purpose.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by nextaccountic on Saturday July 24, 2021 @07:55PM (#27945410)
YEP! no timestamp should EVER be in UTC.
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by neckardt on Saturday July 24, 2021 @07:40PM (#27945329)
What's the problem with slowly drifting away from solar time? If 9:00am became 9:10am by the time I'm 100 years old I don't think I'd encounter any difficulties. Who requires this level of accuracy?
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by beerandt on Saturday July 24, 2021 @07:50PM (#27945380)
Because then you'd still need an almanac of the drift in determining celestial location/navigation.

It's easier to just keep high noon at the Greenwich observatory as the defining datum, since most worldwide coordinates ultimately reference back to it, being 0deg longitude.

Ultimately, either time or location would need to be adjusted, and it's easier to do time. Plus it's consistent with what's been done historically.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by IfOnlyYouKnew on Saturday July 24, 2021 @09:21PM (#27945837)
It’s sorta like asking why we don’t fix pi at 3.1, even if the scale may (initially) be smaller. Or get rid of time zones: It’s sacrificing truth for the convenience of about a dozen people in IT.
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by MiddleEndian on Sunday July 25, 2021 @04:02AM (#27947563)
>It’s sacrificing truth for the convenience of about a dozen people in IT.

And this kind of thing can never be undone. See: NTSC "60" Hz actually being 59.94 Hz due to the transition between black and white and color TV. Monitors today still have this lasting effect for consistency's sake.

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by tablespoon on Saturday July 24, 2021 @09:32PM (#27945877)
> It’s sacrificing truth for the convenience of about a dozen people in IT.

But those dozen IT people think the trade off is really worth it (for them)!

Re:GPS will broadcast a 0 second leap second in 128 days. Th... by Gigachad on Saturday July 24, 2021 @10:31PM (#27946181)
This is exactly the kind of thing that is often done. Some software will just treat all months as having 30 days because it simplifies logic massively and doesn't cause that much of an issue.
Re:GPS will broadcast a 0 second leap second in 128 days. Th... by gh02t on Saturday July 24, 2021 @08:03PM (#27945466)
There isn't a huge problem with changing it, there are people who want to do exactly that and do something else instead. The prominent alternatives that I know of still do something to keep time tied to the mean solar day, though, and changing time standards can be a complicated process so it's likely to take a while.

https://en.wikipedia.org/wiki/Leap_second#International_prop...