Electromagnetic position and attitude control for PACMAN experiment