mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 13:13:34 +08:00
New Crowdin translations - zh-CN (#24563)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
co-authored by
Crowdin Bot
parent
bd0a59eb1f
commit
d04e6695ac
@@ -105,7 +105,7 @@ It is rare that a system is setup with an entirely synchronised chain!
|
||||
A rough estimate of the delay can be obtained from logs by checking the offset between IMU rates and the EV rates.
|
||||
To enable logging of EV rates set bit 7 (Computer Vision and Avoidance) of [SDLOG_PROFILE](../advanced_config/parameter_reference.md#SDLOG_PROFILE).
|
||||
|
||||

|
||||

|
||||
|
||||
:::info
|
||||
A plot of external data vs. onboard estimate (as above) can be generated using [FlightPlot](../log/flight_log_analysis.md#flightplot) or similar flight analysis tools.
|
||||
|
||||
@@ -110,7 +110,7 @@ Follow _Source Installation_ instructions from [mavlink/mavros](https://github.c
|
||||
|
||||
- `PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0`
|
||||
- `workspace/src/mavlink/message_definitions/v1.0`
|
||||
are exactly the same.
|
||||
are exactly the same.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
@@ -150,21 +150,21 @@ Now you are ready to do the build:
|
||||
|
||||
- 发行版 / 稳定版
|
||||
|
||||
```sh
|
||||
rosinstall_generator --upstream mavros | tee -a /tmp/mavros.rosinstall
|
||||
```
|
||||
```sh
|
||||
rosinstall_generator --upstream mavros | tee -a /tmp/mavros.rosinstall
|
||||
```
|
||||
|
||||
- Latest source
|
||||
|
||||
```sh
|
||||
rosinstall_generator --upstream-development mavros | tee -a /tmp/mavros.rosinstall
|
||||
```
|
||||
```sh
|
||||
rosinstall_generator --upstream-development mavros | tee -a /tmp/mavros.rosinstall
|
||||
```
|
||||
|
||||
```sh
|
||||
# For fetching all the dependencies into your catkin_ws,
|
||||
# just add '--deps' to the above scripts, E.g.:
|
||||
# rosinstall_generator --upstream mavros --deps | tee -a /tmp/mavros.rosinstall
|
||||
```
|
||||
```sh
|
||||
# For fetching all the dependencies into your catkin_ws,
|
||||
# just add '--deps' to the above scripts, E.g.:
|
||||
# rosinstall_generator --upstream mavros --deps | tee -a /tmp/mavros.rosinstall
|
||||
```
|
||||
|
||||
3. Create workspace & deps
|
||||
|
||||
|
||||
@@ -25,38 +25,38 @@ Other examples in Python can be found here: [integrationtests/python_src/px4_it/
|
||||
|
||||
1. Open the terminal and go to `~/catkin_ws/src` directory
|
||||
|
||||
```sh
|
||||
roscd # Should cd into ~/catkin_ws/devel
|
||||
cd ..
|
||||
cd src
|
||||
```
|
||||
```sh
|
||||
roscd # Should cd into ~/catkin_ws/devel
|
||||
cd ..
|
||||
cd src
|
||||
```
|
||||
|
||||
2. In the `~/catkin_ws/src` directory create a new package named `offboard_py` (in this case) with the `rospy` dependency:
|
||||
|
||||
```sh
|
||||
catkin_create_pkg offboard_py rospy
|
||||
```
|
||||
```sh
|
||||
catkin_create_pkg offboard_py rospy
|
||||
```
|
||||
|
||||
3. Build the new package in the `~/catkin_ws/` directory:
|
||||
|
||||
```sh
|
||||
cd .. # Assuming previous directory to be ~/catkin_ws/src
|
||||
catkin build
|
||||
source devel/setup.bash
|
||||
```
|
||||
```sh
|
||||
cd .. # Assuming previous directory to be ~/catkin_ws/src
|
||||
catkin build
|
||||
source devel/setup.bash
|
||||
```
|
||||
|
||||
4. 您现在应该能够通过使用以下方法切换至包目录:
|
||||
|
||||
```sh
|
||||
roscd offboard_py
|
||||
```
|
||||
```sh
|
||||
roscd offboard_py
|
||||
```
|
||||
|
||||
5. To store your Python files, create a new folder called `/scripts` on the package:
|
||||
|
||||
```sh
|
||||
mkdir scripts
|
||||
cd scripts
|
||||
```
|
||||
```sh
|
||||
mkdir scripts
|
||||
cd scripts
|
||||
```
|
||||
|
||||
## 代码
|
||||
|
||||
|
||||
Reference in New Issue
Block a user