mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +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
@@ -21,27 +21,28 @@ A `—` means the module still accepts the command, but no consumer applies it i
|
||||
| `mag` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` |
|
||||
| `baro` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` |
|
||||
| `distance_sensor` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` |
|
||||
| `gps` | — | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` |
|
||||
| `gps` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` |
|
||||
| `airspeed` | `off`, `stuck`, `wrong` | — | `off`, `wrong` | — |
|
||||
| `vio` | — | — | `off` | — |
|
||||
| `battery` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` |
|
||||
| `traffic` | `off` | `off` | `off` | `off` |
|
||||
| `motor` | `off` | `off` | `off` | `off` |
|
||||
| `esc` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` |
|
||||
| `can` | — | — | — | `off` |
|
||||
|
||||
[SIH]: ../sim_sih/index.md
|
||||
[Gazebo]: ../sim_gazebo_gz/index.md
|
||||
|
||||
::: info
|
||||
|
||||
- `gps off | stuck | wrong` on Gazebo (Gz): only available if [SIM_GZ_EN_GPS](../advanced_config/parameter_reference.md#SIM_GZ_EN_GPS) is set to `0` to use the injectable simulated-GPS module.
|
||||
By default Gazebo publishes GPS from the simulator's own GNSS sensor (`SIM_GZ_EN_GPS` = 1), which is not injectable.
|
||||
- `gps off | stuck | wrong` on Gazebo (Gz): applied to the GNSS data from the simulator's own sensor as well as to the simulated-GPS module ([SIM_GZ_EN_GPS](../advanced_config/parameter_reference.md#SIM_GZ_EN_GPS) `0`).
|
||||
- `airspeed off | stuck | wrong` on Gazebo (Gz): only injectable when airspeed is provided by the simulated-airspeed module ([SENS_EN_ARSPDSIM](../advanced_config/parameter_reference.md#SENS_EN_ARSPDSIM)); worlds that model an airspeed sensor directly are not injected.
|
||||
- `battery wrong` reports the remaining charge just below the [SYS_FAIL_BAT_LVL](../advanced_config/parameter_reference.md#SYS_FAIL_BAT_LVL) warning threshold to trigger the battery failsafe; `off` stops publishing the battery status entirely.
|
||||
- `traffic off` suppresses incoming reports and marks the ADS-B/FLARM link unhealthy.
|
||||
- `motor off` also requires [CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE).
|
||||
- `esc off` reports the addressed ESC as offline and blanks its telemetry; `esc wrong` keeps it online but reports implausible telemetry (voltage and current at 10% of the real value, RPM 10x). ESCs are addressed by motor instance (the ESC's actuator function), so `-i 1` targets the ESC driving motor 1.
|
||||
- On hardware, ESC injection is applied only by the UAVCAN (DroneCAN) ESC driver; the other ESC drivers (DShot, Cyphal, VOXL, TAP ESC) publish their telemetry unmodified.
|
||||
- `can off` takes the addressed CAN bus offline entirely, so every node on it stops responding; the instance selects the bus. Only applied on fmu-v6x-class hardware.
|
||||
|
||||
:::
|
||||
|
||||
@@ -91,6 +92,7 @@ where:
|
||||
- `traffic`: Traffic avoidance (ADS-B/transponder)
|
||||
- `rc_signal`: RC Signal
|
||||
- `mavlink_signal`: MAVLink data telemetry connection
|
||||
- `can`: CAN bus. The instance selects the bus. Supported on fmu-v6x-class hardware.
|
||||
- _failure_type_:
|
||||
- `ok`: Publish as normal (Disable failure injection)
|
||||
- `off`: Stop publishing
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
This topic shows how you can graph the "live" values of [uORB topics](../msg_docs/index.md) (in real time) using [PlotJuggler](../log/flight_log_analysis.md#plotjuggler) and the _uXRCE-DDS Agent_.
|
||||
|
||||
This technique uses PX4 [uXRCE-DDS](../middleware/uxrce_dds.md) middleware to export uORB topics as ROS2 topics, which can then be read and plotted by PlotJuggler as they change (PlotJuggler cannot directly read uORB topics, but the values of the corresponding ROS 2 topics are the same).
|
||||
This technique uses PX4 [uXRCE-DDS](../middleware/uxrce_dds.md) middleware to export uORB topics as ROS 2 topics, which can then be read and plotted by PlotJuggler as they change (PlotJuggler cannot directly read uORB topics, but the values of the corresponding ROS 2 topics are the same).
|
||||
|
||||
The video below demonstrates this for a simulated vehicle — the approach works equally well on real hardware.
|
||||
|
||||
@@ -14,7 +14,7 @@ Follow the [ROS 2 Installation & Setup](../ros2/user_guide.md#installation-setup
|
||||
|
||||
- ROS 2
|
||||
- [Micro XRCE-DDS Agent](../ros2/user_guide.md#setup-the-agent)
|
||||
- [PX4/px4_msgs](https://github.com/PX4/px4_msgs): PX4/ROS2 shared message definitions.
|
||||
- [PX4/px4_msgs](https://github.com/PX4/px4_msgs): PX4/ROS 2 shared message definitions.
|
||||
- PX4 source code and build the simulator.
|
||||
|
||||
::: tip
|
||||
@@ -24,7 +24,7 @@ Follow the [ROS 2 Installation & Setup](../ros2/user_guide.md#installation-setup
|
||||
|
||||
You will also need to install:
|
||||
|
||||
- [PlotJuggler for ROS2](https://github.com/PlotJuggler/PlotJuggler)
|
||||
- [PlotJuggler for ROS 2](https://github.com/PlotJuggler/PlotJuggler)
|
||||
|
||||
::: tip
|
||||
Use the Debian packages (the snap files are not supported).
|
||||
@@ -38,7 +38,7 @@ This allows ROS 2 and PlotJuggler to interpret the messages.
|
||||
If you're using unmodified PX4, the definitions from [PX4/px4_msgs](https://github.com/PX4/px4_msgs) can be used.
|
||||
|
||||
:::info
|
||||
This is the same process as covered in [Build ROS 2 Workspace](../ros2/user_guide.md#build-ros-2-workspace) in _ROS 2 Installation & Setup_.
|
||||
This is the same process as covered in [Running an example (optional)](../ros2/user_guide.md#running-an-example-optional) in _ROS 2 Installation & Setup_.
|
||||
:::
|
||||
|
||||
Assuming your ROS 2 workspace is named `~/ros2_ws/`, fetch and build the `px4_msgs` package in a terminal as shown:
|
||||
@@ -108,11 +108,11 @@ If working with real hardware you will need to build and [install](../config/fir
|
||||
|
||||
### Modified Messages
|
||||
|
||||
If you have modified any uORB messages you must update the ROS2 messages used by PlotJuggler.
|
||||
If you have modified any uORB messages you must update the ROS 2 messages used by PlotJuggler.
|
||||
|
||||
You will need to rebuild PX4 with your new messages, and replace the `px4_msgs` (from the repository) in your workspace with the new ones.
|
||||
|
||||
Assuming that you have already built PX4 in the directory `~/PX4-Autopilot/`, and that `~/ros2_ws` is your ROS2 workspace, enter the following commands to copy the messages across and rebuild your workspace:
|
||||
Assuming that you have already built PX4 in the directory `~/PX4-Autopilot/`, and that `~/ros2_ws` is your ROS 2 workspace, enter the following commands to copy the messages across and rebuild your workspace:
|
||||
|
||||
```sh
|
||||
rm -f ~/ros2_ws/src/px4_msgs/msg/*.msg
|
||||
|
||||
@@ -147,7 +147,7 @@ You should now test your debug probe to ensure you do not have any electrical sh
|
||||
|
||||
1. Plug the probe into your target via the Pixhawk Debug Port.
|
||||
2. Test the serial port with a program of your choice.
|
||||
3. Test the SWD and RST connection via [OpenOCD][https://openocd.org] or [STLink](https://www.st.com/en/development-tools/stsw-link004.html) software.
|
||||
3. Test the SWD and RST connection via [OpenOCD][https://openocd.org] or [STM32CubeProgrammer](https://www.st.com/en/development-tools/stm32cubeprog.html).
|
||||
4. Test the SWO connection via [Orbuculum][https://github.com/orbcode/orbuculum].
|
||||
|
||||
See the [Embedded Debug Tools][emdbg] for more information about software support for the PX4 FMUv5 and FMUv6 flight controllers.
|
||||
|
||||
Reference in new issue
Block a user