mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:38:52 +08:00
docs(i18n): PX4 guide translations (Crowdin) - uk (#26689)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
co-authored by
Crowdin Bot
parent
10e3c15c54
commit
02d9c32645
@@ -22,7 +22,8 @@ PX4-Autopilot contains a template for writing a new application (module) that ru
|
||||
Підсумовуючи:
|
||||
|
||||
1. Specify the dependency on the work queue library in the cmake definition file ([CMakeLists.txt](https://github.com/PX4/PX4-Autopilot/blob/main/src/examples/work_item/CMakeLists.txt)):
|
||||
```
|
||||
|
||||
```txt
|
||||
...
|
||||
DEPENDS
|
||||
px4_work_queue
|
||||
@@ -48,9 +49,11 @@ PX4-Autopilot contains a template for writing a new application (module) that ru
|
||||
|
||||
4. Implement the `ScheduledWorkItem::Run()` method to perform "work".
|
||||
|
||||
5. Implement the `task_spawn` method, specifying that the task is a work queue (using the `task_id_is_work_queue` id.
|
||||
5. Implement the `task_spawn` method, specifying that the task is a work queue (using the `task_id_is_work_queue` id).
|
||||
|
||||
6. Schedule the work queue task using one of the scheduling methods (in the example we use `ScheduleOnInterval` from within the `init` method).
|
||||
6. Schedule the work queue task using one of the scheduling methods.
|
||||
In the example, `init()` calls `registerCallback()` on a uORB subscription so that `Run()` is triggered whenever a new `sensor_accel` message is published.
|
||||
`ScheduleOnInterval` is an alternative for fixed-rate scheduling.
|
||||
|
||||
## Задачі
|
||||
|
||||
@@ -66,6 +69,6 @@ PX4/PX4-Autopilot contains a template for writing a new application (module) tha
|
||||
[startup script](../concept/system_startup.md).
|
||||
- Парсинг аргументів командного рядка.
|
||||
- Documentation: the `PRINT_MODULE_*` methods serve two purposes (the API is
|
||||
documented [in the source code](https://github.com/PX4/PX4-Autopilot/blob/v1.8.0/src/platforms/px4_module.h#L381)):
|
||||
documented [in the source code](https://github.com/PX4/PX4-Autopilot/blob/v1.17/platforms/common/include/px4_platform_common/module.h)):
|
||||
- They are used to print the command-line usage when entering `module help` on the console.
|
||||
- They are automatically extracted via script to generate the [Modules & Commands Reference](../modules/modules_main.md) page.
|
||||
|
||||
Reference in New Issue
Block a user