Three-axis attitude control