Integrated optical flow for situation awareness, detection and avoidance systems in UAV systems