Changed pitch calculation
I have changed the pitch angle calculation which is more widely used, e.g. here:
https://wiki.dfrobot.com/How_to_Use_a_Three-Axis_Accelerometer_for_Tilt_Sensing
I have changed the pitch angle calculation which is more widely used, e.g. here:
https://wiki.dfrobot.com/How_to_Use_a_Three-Axis_Accelerometer_for_Tilt_Sensing