The code where Arduino communicates with Pixhawk does not compile

Click the green code button on github (the link that you provided) and use the option Download ZIP