What is the believed function of the typically three ocelli located on a wasp's head?

Answer

Gauging light intensity and flight orientation

In addition to the large compound eyes that provide a wide field of view composed of many visual units, wasps possess simple eyes known as ocelli. There are typically three of these ocelli situated on the dorsal side of the head capsule. Their primary believed function is not detailed vision but rather serving as light sensors. By monitoring the intensity of light, these simple eyes are thought to assist the wasp significantly in maintaining orientation, especially during complex flight maneuvers or navigating wide territories during foraging.

What is the believed function of the typically three ocelli located on a wasp's head?
insectanatomymorphologycharacteristicwasp