Calibrating the angle sensors