Detect rotation of iPhone on table
<p>How is it possible to detect the rotation of an iPhone that lies on a table like the compass but is showing a more accurate rotation? I have used the magnetic heading but it is really shakey. I want to achieve the result that Gyrosc does using the heading, accelerometer and gyroscope: 
<a href="http://appshopper.com/utilities/gyrosc" rel="nofollow">http://appshopper.com/utilities/gyrosc</a></p>

<p>How does one combine the 3?</p>
