A method and an apparatus for controlling the attitude and momentum of a spacecraft
while deploying an appendage from the spacecraft. The method comprises the steps
of predicting an environmental torque the spacecraft will be subjected to during
deployment of the appendage, computing a magnitude and a direction of momentum
to add to the spacecraft to at least partially oppose the predicted environmental
torque, and storing the computed magnitude and direction of momentum in at least
one of the momentum wheels before deploying the appendage.