Obstacle Avoidance, Visual Automatic Target Tracking, and Task Allocation for Small Unmanned Air Vehicles