The paper considers the dynamics of the spatial motion of a composite nanosatellite with a movable module making an angular deviation relative to the carrier body. Control laws have been developed to stabilize the rotation of the nanosatellite relative to the longitudinal axis.