mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 06:10:45 +08:00
docs(i18n): PX4 guide translations (Crowdin) - zh-CN (#28461)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
1 parent
65f19bcfec
commit
8a87a93035
63 files changed
+1227
-473
No files matched your search
@@ -165,6 +165,7 @@ See messages
|
||||
- [FixedWingLateralGuidanceStatus](../msg_docs/FixedWingLateralGuidanceStatus.md)
|
||||
- [FixedWingLateralStatus](../msg_docs/FixedWingLateralStatus.md)
|
||||
- [FixedWingRunwayControl](../msg_docs/FixedWingRunwayControl.md)
|
||||
- [FixedWingTakeoffStatus](../msg_docs/FixedWingTakeoffStatus.md)
|
||||
- [FlightPhaseEstimation](../msg_docs/FlightPhaseEstimation.md)
|
||||
- [FollowTarget](../msg_docs/FollowTarget.md)
|
||||
- [FollowTargetEstimator](../msg_docs/FollowTargetEstimator.md)
|
||||
|
||||
@@ -337,13 +337,27 @@ sudo MicroXRCEAgent serial --dev /dev/AMA0 -b 921600
|
||||
For more information about setting up communications channels see [Pixhawk + Companion Setup > Serial Port setup](../companion_computer/pixhawk_companion.md#serial-port-setup), and sub-documents.
|
||||
:::
|
||||
|
||||
### PX4 Firmware
|
||||
|
||||
The uXRCE-DDS client module [uxrce_dds_client](../modules/modules_system.md#uxrce-dds-client) is included by default in most firmware and simulator targets.
|
||||
|
||||
You can check if the module is present on your board by searching for the key `CONFIG_MODULES_UXRCE_DDS_CLIENT=y` in your board's `default.px4board` [KConfig file](../hardware/porting_guide_config.md).
|
||||
For example, you can see that the module is present in `px4_fmu-v6x` build targets from [/boards/px4/fmu-v6x/default.px4board](https://github.com/PX4/PX4-Autopilot/blob/main/boards/px4/fmu-v6x/default.px4board#L81).
|
||||
|
||||
If `CONFIG_MODULES_UXRCE_DDS_CLIENT=y` is not preset you can add this key to your board configuration and rebuild.
|
||||
Note that due to flash constraints you may need to remove other components in order to include the module.
|
||||
|
||||
:::tip
|
||||
You can check if uXRCE-DDS is present at runtime by using QGroundControl to [find the parameter](../advanced_config/parameters.md#finding-a-parameter) [UXRCE_DDS_CFG](../advanced_config/parameter_reference.md#UXRCE_DDS_CFG).
|
||||
If present, the module is installed.
|
||||
:::
|
||||
|
||||
### Starting the Client
|
||||
|
||||
The uXRCE-DDS client module ([uxrce_dds_client](../modules/modules_system.md#uxrce-dds-client)) is included by default in all firmware and the simulator.
|
||||
This must be started with appropriate settings for the communication channel that you wish to use to communicate with the agent.
|
||||
`uxrce_dds_client` must be started with appropriate settings for the communication channel that you wish to use to communicate with the agent.
|
||||
|
||||
:::info
|
||||
The simulator automatically starts the client on localhost UDP port `8888` using the default uxrce-dds namespace.
|
||||
The simulator automatically starts the client on localhost UDP port `8888` using the default uxrce-dds namespace unless the `zenoh` target (`px4_sitl_zenoh`) is used.
|
||||
:::
|
||||
|
||||
The configuration can be done using the [UXRCE-DDS parameters](../advanced_config/parameter_reference.md#uxrce-dds-client):
|
||||
|
||||
@@ -135,8 +135,8 @@ The PX4 Zenoh-pico node stores its configuration on the **SD card** under the `z
|
||||
This folder contains three key files:
|
||||
|
||||
- **`net.txt`** – Defines the **Zenoh network configuration**.
|
||||
- **`pub.csv`** – Maps **uORB topics to ROS2 topics** (used for publishing).
|
||||
- **`sub.csv`** – Maps **ROS2 topics to uORB topics** (used for subscribing).
|
||||
- **`pub.csv`** – Maps **uORB topics to ROS 2 topics** (used for publishing).
|
||||
- **`sub.csv`** – Maps **ROS 2 topics to uORB topics** (used for subscribing).
|
||||
|
||||
#### Publisher Options
|
||||
|
||||
@@ -155,7 +155,7 @@ Individual publisher options can be overridden through the mapping configuration
|
||||
|
||||
### 4. Modifying Topic Mappings
|
||||
|
||||
Zenoh topic mappings define how data flows between PX4's internal uORB topics and external ROS2 topics via Zenoh.
|
||||
Zenoh topic mappings define how data flows between PX4's internal uORB topics and external ROS 2 topics via Zenoh.
|
||||
These mappings are stored in `pub.csv` and `sub.csv` on the SD card, and can be modified at runtime using the `zenoh config` CLI tool.
|
||||
|
||||
:::warning
|
||||
|
||||
Reference in new issue
Block a user