This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
codingstandard:index [2012-05-18 19:59] macke |
codingstandard:index [2021-06-24 16:35] (current) kimberly |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <WRAP center round important 60%> | ||
| + | This page has deprecated and will be archived. Please go to [[https:// | ||
| + | </ | ||
| + | |||
| ====== Coding standard for C ====== | ====== Coding standard for C ====== | ||
| ===== Indentation ===== | ===== Indentation ===== | ||
| Line 151: | Line 155: | ||
| ==== Macros ==== | ==== Macros ==== | ||
| + | < | ||
| /** Max count for things */ | /** Max count for things */ | ||
| #define MAX_COUNT | #define MAX_COUNT | ||
| Line 156: | Line 161: | ||
| /** Macro for selecting max value */ | /** Macro for selecting max value */ | ||
| #define MAX(a,b) (a> | #define MAX(a,b) (a> | ||
| + | </ | ||
| ====== Coding standard for Python ====== | ====== Coding standard for Python ====== | ||
| - | What ever works ;-) | + | We aim to follow [[http:// |
| + | |||
| + | ===== Documentation ===== | ||
| + | For documentation doc strings are used. | ||
| + | |||
| + | ===== Static analysis ===== | ||
| + | For static code analysis [[https:// | ||
| + | * These has been added to the list of good variables | ||
| + | * pk - used all over for variables that are CRTPPacket | ||
| + | * cf - used all over for variables that are Crazyflie | ||
| + | * logger - used all over as a file-global logger | ||
| + | * cb - used all over to describe an argument or variable that is a callback | ||