Calibrating the height and angle