S-310-26 rocket carried two axial fluxgate magnetometer to measure two orthogonal components of geomagnetic field vector. The purpose is to measure the angle between the rocket spin axis and geomanetic field vector. The Z-axis of the magnetic sensor was parallel to the spin axis and the H-axis of the magnetic sensor located on a plane perpendicular to the spin axis. The range of measurable magnetic field was -50000nT to +50000nT and the resolution was 380nT. The sampling time was 5ms and the noise level was less than 380nT. The magnetic bias was less than 380nT in the rocket at the magnetic sensor position. The magnetometer was completely operated during the flight, and it provided us satisfactory geomagnetic field data. The magnetic attitude of the rocket was determined using magnetometer. The spin rate of rocket was 0.83Hz and the coning half angle of the precession was 15° with the period of 236 seconds.