Obstacles avoidance using lidar lite v3 interfaced with pixhawk(pwm method)

I just tried to interface pixhawk with garmin lidar lite v3 using pwm method as mentioned in wiki , but i want to do the obstacle avoidance for UAV with the same setup.Could anyone provide some info on that that how to start or what to do