Coding Style

Hello Guys, I am a newbie to this development forum.
As I read the PX4-Autopilot/CONTRIBUTING.md at master · PX4/PX4-Autopilot · GitHub
The Coding Sytle link is dead .
Could any one offer me the coding style ??

Since I currently do the University Project needs the raspberry Pi 2 to communicate with the pixhawk. Could anyone offer me some advice ?

Coding standards are enforced through most of the code base with a tool called astyle.
http://astyle.sourceforge.net/

We don’t have a nice friendly page that shows good/bad examples, but these are the astyle options we use.
https://github.com/PX4/Firmware/blob/master/Tools/astylerc

If you install astyle locally you can just run make check_format to see if your code conforms.

For connecting the raspberry pi start here - http://dev.px4.io/pixhawk-companion-computer.html

1 Like