iphonegpsn95

Does the Iphone 1/2 have a compass inside?


Can one be simulated by periodicly syncing with GPS and in the meen while working with the accelerometer? I know for example that the N95 accelerometer is invarient to rotation on the Y axis (while beeing face up/down).


Solution

  • The original iPhone and the iPhone 3G use GPS to calculate the heading, however the iPhone 3GS now has a 3-dimensional magnetometer compass in it.

    This can only be done taking two GPS coordinates (while moving) and determining the direction from point A to B.