Calculation for pitch angle changed
I have changed the calculation of the pitch angle. The new method is more widely used than what I had implemented before. You find more information here, e.g.:
https://wiki.dfrobot.com/How_to_Use_a_Three-Axis_Accelerometer_for_Tilt_Sensing