The paper deals with spacecraft in the circular near-Earth orbit. The spacecraft interacts with geomagnetic field by the moments of Lorentz and magnetic forces. The octupole approximation of the Earth’s magnetic field is accepted. The spacecraft electromagnetic parameters, namely the electrostatic charge moment of the first order and the eigen magnetic moment are the controlled quasiperiodic functions. The control algorithms for the spacecraft electromagnetic parameters, which allows to stabilize the spacecraft attitude position in the orbital frame are obtained. The stability of the spacecraft stabilized orientation is proved both analytically and by PC computations.