The code where Arduino communicates with Pixhawk does not compile

Did you do this also?

It seems that PixhawkArduinoMAVLink.h , and PixhawkArduinoMAVLink.cpp need to be inside of src folder. All other imports need to be changed accordingly.