When it first notices an approaching threat, a fly's body might be in any sort of posture depending on what it was doing at the time, like grooming, feeding, walking, or courting. Our experiments showed that the fly somehow 'knows' whether it needs to make large or small postural changes to reach the correct preflight posture.
Dickinson, Michael. "How to Swat a Fly: Caltech Researchers Reveal the Secrets of Fly Evasion." Caltech News, California Institute of Technology, 28 Aug. 2008.
Sourced by: Quote.org sourced