Not sure if it will build now. May be used as a reference.
Forked from ndrone-experiment to continue development.
Hybrid software for quadrocopter on Node.js.
¹ state — data block, contains navigation (attitude) and conditional (temperatures, load average, memory and cpu usage) data;
² video — continuous video stream.
- If subject has file/directory, then path shall lead to nearest parent directory/itself.
- All file extensions shall be specified, but sources:
.ts
,.cc
,.hh
. - Subject name shall be kept as it will be used in code
- If work was done in one commit then
push
tomaster
. - If word requires more than one commit then:
2a. create branch{work name}
;
2b. commit message conventions are still actual within branches;
2c. when work is done, dopull
andrebase
withmaster
;
2d.merge
with--edit --no-ff
and name it according to objectives (feat/fix/chore
)({work subject}): {work description}
;
2e. thenpush
.
- static fields
- static accessors
- static methods
- instance fields
- instance accessors
- constructor
- instance methods
Within each of these groups order by access:
- public
- private
TypeScript: follow Google's JavaScript guide. C/C++: follow Google's C++ guide.
- Do not use
@const
(TypeScript) - Do not use
using namespace
(C/C++) - Use constructions like
if(...)
,while(...)
- Make
file_names_like_this
lowerCamelCase
(TypeScript)snake_case
(C/C++)- Identation in 4 whitespaces
- 80-90 symbols per line
- Always align multiline arguments or conditions for readability
- Do not use
{}
for single operators - Prototype extentions in
libs/
only - always align
:
or=
by logical blocks and at minimum difference :
without whitespace after variable, but before type (TypeScript)- Name imported modules equal to they real names
- use
//#TODO: ...
,//#FIXME: ...
and//#XXX: ...
Simple: no levels required, write all important logs to stdout
. Use next format:
<[event]
> [[spot]
] <description
>
event
:ERROR
— vital negative eventWARNING
— non-vital negative eventREPORT
— vital neutral/positive event
spot
— class, module or function, that caused:ERROR
,WARNING
— strictly requiredREPORT
— required if related
description
:ERROR
— cause and how system was terminatedWARNING
— cause and how was ignoredREPORT
— message
Follow Google's JSDoc