# prevention/avoidance in offboard pattern flight

Source: https://forum.modalai.com/topic/1550/prevention-avoidance-in-offboard-pattern-flight
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2022-11-17 11:47:11 UTC by Anubhav
Replies: 0 · Views: 378

## Anubhav · 2022-11-17 11:47:11 UTC

Hello Team, 

I am able to implement a particular pattern flight through MAVSDK API in offboard mode. 
I also want to do collision prevention or obstacle avoidance in this pattern flight.
 
After following the documentation given [here](https://docs.modalai.com/voxl-vision-px4-collision-prevention/) I am able to do the collision prevention in position mode with manual control. How can I do this same in offboard pattern flight?

Thank you. 
Anubhav
