There you can find some information:
https://ardupilot.org/copter/docs/common-simple-object-avoidance.html