Fruit flies use the sun to avoid flying in circles, according to new research.