uas code for moving obstacle avoidance