mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
module template: move documentation to a new category 'template' (#9324)
This commit is contained in:
parent
a05bf390c1
commit
e46e6f99f3
@ -9,7 +9,7 @@ class ModuleDocumentation(object):
|
||||
"""
|
||||
|
||||
valid_categories = ['driver', 'estimator', 'controller', 'system',
|
||||
'communication', 'command']
|
||||
'communication', 'command', 'template']
|
||||
|
||||
max_line_length = 80 # wrap lines that are longer than this
|
||||
|
||||
|
||||
@ -403,7 +403,7 @@ __EXPORT void PRINT_MODULE_DESCRIPTION(const char *description);
|
||||
/**
|
||||
* Print the command name
|
||||
* @param executable_name: command name used in scripts & CLI
|
||||
* @param category one of: driver, estimator, controller, system, communication, command
|
||||
* @param category one of: driver, estimator, controller, system, communication, command, template
|
||||
*/
|
||||
__EXPORT void PRINT_MODULE_USAGE_NAME(const char *executable_name, const char *category);
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ $ module start -f -p 42
|
||||
|
||||
)DESCR_STR");
|
||||
|
||||
PRINT_MODULE_USAGE_NAME("module", "system");
|
||||
PRINT_MODULE_USAGE_NAME("module", "template");
|
||||
PRINT_MODULE_USAGE_COMMAND("start");
|
||||
PRINT_MODULE_USAGE_PARAM_FLAG('f', "Optional example flag", true);
|
||||
PRINT_MODULE_USAGE_PARAM_INT('p', 0, 0, 1000, "Optional example parameter", true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user