Obstacle Avoidance using Arduino

Hello!

Im working on a obstacle avoidance system for quadcopters as a university project.
For the sensor I am using a Maxbotix MB1200 sonar sensor to detect object.
I have developed a simple coding to convert the distance (analog voltage) of the object into PWM.
For flight control I am using PIXHAWK.
And my receiver is a Futaba R2008SB.

However I am having problem interfacing the Arduino Uno with the PIXHAWK.

Is there any suggestions or advise on this? Thank you!

Are you overriding the manual control or autonomous flight? If it's manual control you may need to have the Arduino filter the signal between the radio receiver and the PIXHAWK. For autonomous flight you may need to modify the PIXHAWK source code to allow for override signals on some of the radio inputs.

The PIXHAWK is using an ARM processor which can probably work the sonar sensors itself, without need for an Arduino in the mix.