Generalized dynamic motion compensation technology for star tracker on rotating spacecraft with acceleration