Motor Control Of Heading In Foraging Versus Rearing Reveals Multiple States For The Coordination Of Head Motion With Sniffing