Head attitude detection implemented