Obstacle avoidance code

hello, i have a project where i need to program a drone using pixhawk 2.4.8 to avoid obstacles using a “radiation sensor” i am guessing the code should be the same as an obstacle avoidance with ultrasonic, i have no experiance in setting up the drone or programming the pix hawk i just want it to fly to specific waypoints and take a measurement if the measurement increases it should back off, i already have a tarrot fy680 frame with dji motors (e800) hexachopter. please help me with the code or set up. i am lost !!

You are in luck. Ardupilot supports that. http://ardupilot.org/dev/docs/code-overview-object-avoidance.html
and http://ardupilot.org/copter/docs/common-oa-bendyruler.html?highlight=obstacle

google is your best friend :slight_smile:


You can refer to these experiments as well:

Thank you so much for your help!!!