Obstacle Detection via Arduino

Hi guys I am planning to make a hexa but I want obstacle detection on all 6 sides. That’s up, down, left, right, forward and backward. I am using the pixhawk 2.1 and I want it to send a signal if it is armed or if it is going on a special mission given by me to the arduino. I want it to understand the the signals such as go up or go down or slide left or slide right. I can program the arduino but not the pixhawk 2.1 so I would like some help.
Thank You for paying attention to my request!

BTW I want the pixhawk to understand go up, down, slide left, right, go forward and go backward

Yes it can be done. Please studdy the AC_Avoid, and AC_Proximity libraries.

But how exactly? Plus Thanks for telling me!

look at:

and

read it, understand it, and then ask concrete questions.

I think this is the kind of project you are looking for
https://discuss.ardupilot.org/t/basic-obstacle-stop-system-build-log-and-firmware/14454

Firstly, I don’t know much about programming

Thx for help ppoirer