The obstacle avoidance function is only for flying indoors. If you turn on it, a prompt will sound when it detects the inability to fly, and the drone will slow down and back up.