mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-01 21:52:12 +08:00
docs(i18n): PX4 guide translations (Crowdin) - zh-CN (#28867)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
1 parent
939b420488
commit
56d5e8661a
193 files changed
+1633
-1955
No files matched your search
@@ -5,9 +5,7 @@ This is where the generic `NAMED_VALUE_FLOAT`, `DEBUG` and `DEBUG_VECT` packets
|
||||
|
||||
## 在 MAVLink 调试消息和 uORB 主题之间进行映射
|
||||
|
||||
MAVLink调试消息转换为/自 uORB 主题。
|
||||
为了发送或接收 MAVLink 调试消息,您必须分别发布或订阅相应的主题。
|
||||
下面是一个表,其中总结了 MAVLink 调试消息和 uORB 主题之间的映射:
|
||||
MAVLink调试消息转换为/自 uORB 主题。为了发送或接收 MAVLink 调试消息,您必须分别发布或订阅相应的主题。下面是一个表,其中总结了 MAVLink 调试消息和 uORB 主题之间的映射:
|
||||
|
||||
| MAVLink 消息 | uORB topic |
|
||||
| ----------------------------------------------------------- | --------------------------------------------------------- |
|
||||
@@ -24,8 +22,7 @@ This tutorial shows how to send the MAVLink message `NAMED_VALUE_FLOAT` using th
|
||||
- [Debug Tutorial Code](https://github.com/PX4/PX4-Autopilot/blob/main/src/examples/px4_mavlink_debug/px4_mavlink_debug.cpp)
|
||||
- [Enable the tutorial app](https://github.com/PX4/PX4-Autopilot/blob/main/boards/px4/fmu-v5/default.px4board) by ensuring the MAVLink debug app (**CONFIG_EXAMPLES_PX4_MAVLINK_DEBUG**) is in the config of your board and set to 'y'.
|
||||
|
||||
设置调试发布所需的只是此代码段。
|
||||
首先添加头文件:
|
||||
设置调试发布所需的只是此代码段。首先添加头文件:
|
||||
|
||||
```C
|
||||
#include <uORB/uORB.h>
|
||||
@@ -33,8 +30,7 @@ This tutorial shows how to send the MAVLink message `NAMED_VALUE_FLOAT` using th
|
||||
#include <string.h>
|
||||
```
|
||||
|
||||
然后广播调试值主题(一个针对不同发布名称的广播就足够了)。
|
||||
把这个放在你的主循环前面:
|
||||
然后广播调试值主题(一个针对不同发布名称的广播就足够了)。把这个放在你的主循环前面:
|
||||
|
||||
```C
|
||||
/* advertise debug value */
|
||||
|
||||
Reference in new issue
Block a user