For dip try this instead:
dip=180/Math.PI*Math.atan(yaw/Math.sqrt(roll*roll+pitch*pitch));
dip is positive in Northern and negative in Southern hemispheres. It ranges from -90 to +90.
@ClearMemory041063 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
For dip try this instead:
dip is positive in Northern and negative in Southern hemispheres.
It ranges from -90 to +90.