Primitive inertial navigation using the iPhone's accelerometer and gyroscope.