9dof code that gets headings