@@ -50,6 +50,7 @@ This is done to check if the function had an error.
...
@@ -50,6 +50,7 @@ This is done to check if the function had an error.
-**Use C++ style cast (static_cast, dynamic_cast…) instead of their C counterparts**
-**Use C++ style cast (static_cast, dynamic_cast…) instead of their C counterparts**
-**Initialize objects in their costructors: avoid init() functions when possible**
-**Initialize objects in their costructors: avoid init() functions when possible**
It's very easy to forget to call an object's init() method, leaving objects in a undefined state.
It's very easy to forget to call an object's init() method, leaving objects in a undefined state.
-**Use TRACE() instead of printf()**`printf()` is a very heavy function (surprised?) and it's very unlikely you need it when the rocket is flying. TRACEs are like printfs but they are stripped out when compiling the flight binary.
## **Commenting rules**
## **Commenting rules**
-**Every function shall be documented using a doxygen comment describing the purpose of the function, its parameters and the return value.**
-**Every function shall be documented using a doxygen comment describing the purpose of the function, its parameters and the return value.**