CMOS star sensor image acquisition and real-time star centroiding algorithm