title: Sample rate of magnetometer (compass)
body: <p>I was experimenting with the magnetometer (iPhone 3GS) and the Teslameter sample program. One question pops up, and that is if it is possible through some API to query the values of the magnetometer without going through the event-driven API.</p>
  
  <p>More specifically, the sample rate from the magnetometer seems to be limited to ~20-30 samples/second. Would it be possible to increase that to, say 120 samples per second (oh yes, the nyquist theorem...)? I guess this boils down to:</p>
  
  <ul>
  <li>Does the hardware support it, and</li>
  <li>Is it allowed? (i.e. does it require undocumented APIs)</li>
  </ul>