The nervous system of arthropods consist of a dorsal brain with 2 ganglia with a ventral nerve cord running down it’s segments. Each of it’s segments have a ganglia for each of it’s segment.
Having a ganglia in each segment which connects to the ventral nerve cord allows it to coordinate it’s wing and leg movement.