MODELING AND PROTOTYPING A MODULAR, LOW-COST COLLISION AVOIDANCE SYSTEM FOR UAVS