Navy automatic terrain avoidance