added 2-axis angle calculation codes