Code for converting turn rate and climb rate into roll angle and pitch angle.