rpi tested new angle formula