Hacker News new | ask | show | jobs
by ErroneousBosh 33 days ago
You'd think, but it's far stranger than that.

The actual VSI reading is taken either from barometric pressure or GNSS, and the source is flagged in a bit in the ADS-B packet. Then it's encoded in one of two forms in a 9-bit value with a single-bit sign.

If the 9-bit value is 0, there is no vertical speed available. Otherwise the vertical speed is encoded as +/-64 * (value - 1), giving a range from 0 to 510 for a range of bitfield values from 1 to 511.

Now this gives you a range in 64ft/min steps up to 32640ft/min. Most civilian high-performance aircraft will be in an absolutely screaming climb at around 10000ft/min and an 8000ft/min descent would be pretty aggressive - autopilots may drop into a 8000ish ft/min descent if there's a loss of cabin pressure, for example but 6000 would be considerably more comfortable. So even with your 9-bit value you've got enough resolution to show a fairly gentle climb (try staying below 1ft/sec climb or sink when flying by hand!) and something well in excess of what you'd normally want to experience.

1 comments

64 * 512 = 32768

64 * 511 = 32704

64 * 510 = 32640

So that's just a bunch of zeros for the lower bits.

Interesting. Thanks for the explanation.

Yep. Picked 32640 because the last two values are, from my understanding, inconsistently handled by transmitters due to how far from norm they are.
Too many zeros or too many ones in a row can cause problems with DC balance on the transmitter and the receiver stages.
It's a bit like how the petrol gauge on your car is out to lunch below about 1/8th of a tank.

If you're doing 32000ft/min you're clearly going *muuuuch* too fast, either up or down, implausibly so.

Unless you're in a jet fighter aircraft in which case showing up correctly on flightradar24 is not your biggest worry.