wbt_max_elevation_deviation function

Max elevation deviation