mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
module template: move documentation to a new category 'template' (#9324)
This commit is contained in:
@@ -9,7 +9,7 @@ class ModuleDocumentation(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
valid_categories = ['driver', 'estimator', 'controller', 'system',
|
valid_categories = ['driver', 'estimator', 'controller', 'system',
|
||||||
'communication', 'command']
|
'communication', 'command', 'template']
|
||||||
|
|
||||||
max_line_length = 80 # wrap lines that are longer than this
|
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
|
* Print the command name
|
||||||
* @param executable_name: command name used in scripts & CLI
|
* @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);
|
__EXPORT void PRINT_MODULE_USAGE_NAME(const char *executable_name, const char *category);
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ $ module start -f -p 42
|
|||||||
|
|
||||||
)DESCR_STR");
|
)DESCR_STR");
|
||||||
|
|
||||||
PRINT_MODULE_USAGE_NAME("module", "system");
|
PRINT_MODULE_USAGE_NAME("module", "template");
|
||||||
PRINT_MODULE_USAGE_COMMAND("start");
|
PRINT_MODULE_USAGE_COMMAND("start");
|
||||||
PRINT_MODULE_USAGE_PARAM_FLAG('f', "Optional example flag", true);
|
PRINT_MODULE_USAGE_PARAM_FLAG('f', "Optional example flag", true);
|
||||||
PRINT_MODULE_USAGE_PARAM_INT('p', 0, 0, 1000, "Optional example parameter", true);
|
PRINT_MODULE_USAGE_PARAM_INT('p', 0, 0, 1000, "Optional example parameter", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user