 In an aircraft's attitude and heading reference system, they are commonly used as a heading reference.Magnetometers are also used in the military to detect submarines.Consequently, some countries, such as the United States, Canada and Australia, classify the more sensitive magnetometers as military technology, and control their distribution.