1

I know that for a gyroscope, you can detect pitch, roll, and yaw, but how does a phone (or other machine) know what direction the phone is facing (north, east, south, west)?

Jaboyc
  • 123

2 Answers2

1

The majority of smartphones include a compass sensor; a sensor which responds to Magnetic North.

Through this the phone can tell exactly which direction you're facing, and can use this data, combined with the accelerometer & gyroscope, to help GPS applications with location 'fixing'.

AStopher
  • 2,393
0

It has a compass built in, in addition to the GPS/accelerometer/gyroscope chips.

For an example, I think the iPhone 6 uses the AK8963

Sean
  • 109