Adjusted reference angles for arm to compensate for crooked joints