Sorry not familiar with that quad but as far as I know what you're asking for is called object detection (is it a tree or a cloud) and avoidance (where is the thing relative to the quad and are we going towards it?). This feature sort of needs to be baked into the control system or flight controller for it to work since it needs to intervene like a cars automatic lane keeping or other computer vision based assistance systems. The skydio quadcopter is made to do object detection, avoidance and other path planning to try and keep a target in view while dodging trees and probably does the best job from what I've seen in reviews. If I recall correctly there is some amount of object avoidance and follow me mode on some of the smaller DJI models as well but again just nothing I know of you can bolt on to make this work (requires right sensors/cameras etc. to work)