A method for avoiding singularities in the movement of a set of collinear
CMGs in an array of CMGs in a spacecraft is provided. First, a command to
adjust an orientation of the spacecraft is received. Then, the momentum
needed from the set of collinear CMGs is determined. A dynamic control
that determines a momentum path and avoids singularities by rotating the
singularities out of the momentum path is used and a required gimbal
movement for each of the CMGs in the set of collinear CMGs from the
momentum path is calculated.