atan2 is what you want for pitch computations
Merge pull request #135 from Protonk/master

Pitch computations for accelerometer