PX4 Community Q&A: August 16, 2023

August 16, 2023

Join us

Agenda

  • Community Announcement
  • Community Q&A
  • General Discussions

:loudspeaker: Community Announcement


A.1 :

:people_holding_hands: Community Q&A (No deep technical discussions)


:exclamation: Guideline for asking a Question

  1. Specify what you are trying to achieve
  2. Specify what environment / platform you are using
  3. Prepare a Link or Document to help understand if possible
  4. First, ask the question on Discord or create a Github Issue!
  5. If you take over 5 minutes for the question, please continue in Discord or a Github Issue.

Q.1 :

:thinking: General Discussions


D.1 :

Hey everybody, I asked in the #dev-team channel on Discord about the coding standard.

In the code, I’m seeing a lot of private member variables with the prefix _ but in the documentation it says to use it as a suffix. Source Code Management | PX4 User Guide

It is also how it is defined in the Google C++ Style guide: Google C++ Style Guide

So, I’m wondering which one you prefer?
image

Here’s an example of the source code:

Also while talking with @hamishwillee, we were wondering if we should either add a note in the PX4 documentation that, although some of the code might not follow the coding standard, but it should follow it. In addition, the idea was brought if we would like to apply a linting to the code.

1 Like