The communicatory question between pixhawk and raspberry pi3

You need to do two separate things:

  1. Enable the serial interface with ‘set enable_uart=1’
  2. Disable console output on the serial interface, there are instructions to do this here.

-Jacob