Autonomous obstacle avoidance

I am working on a quadcopter and want to give it an automous flight. I also want to do obstacle detection during the automous flight and then avoid it. Will sending MAV link commands using raspberry pi when copter is in automous mode do the job for me? Kindly help me achieving this goal.

or

?
Obstacle avoidance is supported on ArduCopter:
https://ardupilot.org/copter/docs/common-object-avoidance-landing-page.html

1 Like

It is a Copter…Actually I am confused that during autonomous mode will the command sent by mavlink be accepted first or I need to go to guided mode and then command it using mavlink through raspberry pi