Real-time hardware-in-the-loop tests of star tracker algorithms