How do pixhawk and Arduino communicate each other?

Hello
You may take a look at this: Basic Obstacle Stop System-Build Log and firmware