Task priority approach to the coordinated control of a team of flying vehicles in the presence of obstacles