Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between orientation sensor and magnetic field sensor on Android?

Does anyone know the difference between the orientation sensor and magnetic field sensor on Android?

My understanding:

  • orientation => digital compass
  • magnetic field => magnetometer

Since I've read that magnetometer is synonymous with digital compass I'm a little bit confused. What are they really?

like image 716
devpg Avatar asked Nov 02 '10 22:11

devpg


1 Answers

The magnetic field sensor is the compass.

The orientation sensor is a combination between the magnetic field sensor, and gravity sensors. It tells you the angle of the phone relative to the ground (pitch and roll) and the direction (compass).

like image 121
Guffa Avatar answered Sep 30 '22 17:09

Guffa