문제

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?

도움이 되었습니까?

해결책

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top