Programming the obstacle avoidance sequence