Heading detection from optic flow