I think the trig equations for the alpha angle on y-axis are incorrect.
Hi, could elaborate why its wrong? That will us sole it as soon as possible