!REDIRECT “https://docs.px4.io/master/ja/middleware/modules_template.html

Modules Reference: Template

module

Source: templates/template_module

Description

Section that describes the provided module functionality.

This is a template for a module running as a task in the background with start/stop/status functionality.

Implementation

Section describing the high-level implementation of this module.

Examples

CLI usage example:

  1. module start -f -p 42

Usage

  1. module <command> [arguments...]
  2. Commands:
  3. start
  4. [-f] Optional example flag
  5. [-p <val>] Optional example parameter
  6. default: 0
  7. stop
  8. status print status info

work_item_example

Source: examples/work_item

Description

Example of a simple module running out of a work queue.

Usage

  1. work_item_example <command> [arguments...]
  2. Commands:
  3. start
  4. stop
  5. status print status info