Magnetometer
A magnetometer is an instrument that measures the magnitude and, in some implementations, the direction of the ambient magnetic field. In spacecraft applications, magnetometers are commonly used for attitude determination and control, as well as for measuring the local geomagnetic environment.
