There is indead an instruction for those problems, and JulzMighty already programed something in this direction.
Here is the instruction from the manual:
http://www.conitec.net/beta/ang_for_axis.htm