atan2 is what you want for pitch computations