It seems to me that there's an interesting problem that the Blackbird goes so fast that its down vector changes dramatically over the course of a typical flight, so I'm wondering how it accurately updates its down vector reference. Jets can go through arbitrary and wobbly 3-d trajectories, accelerating in any direction, so it can't be a simple measurement of gravity. It would have to be a accelerometer combined with inertial and gyro and elevation readings all summed up.
But I don't think it's possible to measure a horizon that accurately. There are temperature and pressure dependent atmospheric effects at low angles that effect how light refracts and curves through the atmosphere, and these effects will have to be compensated for to measure the angle accurately. Additionally, there are mountains and valleys to compensate for.