Attitude control (spacecraft)#Attitude control algorithms