Modified rot_deg to use raw heading, not normalized heading.