Obstacle sensing and automatic avoidance up to 30 meters