mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 06:23:34 +08:00
New Crowdin translations - zh-CN (#26553)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
co-authored by
Crowdin Bot
parent
102b64f604
commit
62d0620eff
@@ -1,6 +1,6 @@
|
||||
# Bootloader Update Pixhawk V6X-RT via USB
|
||||
|
||||
This topic explains explains to flash [Pixhawk FMUv6X-RT](../flight_controller/pixhawk6x-rt.md) bootloader via USB _without needing a debug probe_.
|
||||
This topic explains how to flash [Pixhawk FMUv6X-RT](../flight_controller/pixhawk6x-rt.md) bootloader via USB _without needing a debug probe_.
|
||||
|
||||
## 综述
|
||||
|
||||
@@ -33,7 +33,7 @@ arm-none-eabi-objcopy -O ihex build/px4_fmu-v6xrt_bootloader/px4_fmu-v6xrt_bootl
|
||||
|
||||
## Flashing the bootloader through USB
|
||||
|
||||
The Pixhawk V6X-RT comes with a build-in bootloader located on the ROM.
|
||||
The Pixhawk V6X-RT comes with a built-in bootloader located on the ROM.
|
||||
To flash a new bootloader through USB you've got to download the [NXP MCUXpresso Secure Provisioning tool](https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING).
|
||||
The tool is available for Windows, Linux and macOS.
|
||||
|
||||
@@ -80,7 +80,7 @@ The tool is available for Windows, Linux and macOS.
|
||||
|
||||

|
||||
|
||||
4. When the Target Memory configuration is succesful you can press the the **Erase All** button
|
||||
4. When the Target Memory configuration is successful you can press the **Erase All** button
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
# GNSS-Degraded & Denied Flight ("Dead-Reckoning" Mode)
|
||||
|
||||
<Badge type="tip" text="PX4 v1.17" /> <Badge type="warning" text="Experimental" />
|
||||
|
||||
:::warning
|
||||
Experimental
|
||||
This is a new feature with limited real-world testing.
|
||||
It is intended for GNSS dropout scenarios (not pure GNSS-denied from takeoff), and requires that alternative velocity/position sensors are available.
|
||||
|
||||
Please [share your related test logs](../getting_started/flight_reporting.md#sharing-the-log-files-for-review-by-px4-developers) to help us verify and harden it.
|
||||
:::
|
||||
|
||||
PX4 is default-configured for outdoor flight with a reliable GNSS signal, but it can also be set up in "dead-reckoning mode" to more gracefully handle environments where GNSS is intermittently degraded or denied during flight.
|
||||
|
||||
This section describes the differences between automatic and dead-reckoning modes, the circumstances in which each should be used, and how dead-reckoning is configured.
|
||||
|
||||
## 综述
|
||||
|
||||
PX4's EKF2 navigation has two modes for handling when GNSS data is determined to be unreliable:
|
||||
|
||||
- **Automatic mode** (the default): Used for flying outdoors in environments where a GNSS signal is expected to be largely reliable.
|
||||
- **Dead-reckoning mode**: Recommended when you want to fly missions or other position controlled modes when there is intermittent GNSS loss, such as when flying under a bridge, from outdoors into an indoor setting, or when there is GNSS jamming (it is not suitable for pure-indoor use, as a GNSS signal is required before arming).
|
||||
|
||||
:::info
|
||||
Dead-reckoning mode helps for both Fixed-Wing and Multicopter vehicles.
|
||||
MC vehicles benefit more because they can hover when transitioning between sensor regimes.
|
||||
FW needs continuous accurate velocity/position during the entire mission arc, making sensor transitions trickier.
|
||||
:::
|
||||
|
||||
## Mode Comparison
|
||||
|
||||
The following sections provide more detail about each of the modes and when they should be used.
|
||||
|
||||
### Automatic Mode
|
||||
|
||||
In Automatic mode the EKF2 resets if GNSS is lost and no other sources of position are available.
|
||||
This can result in a [position loss failsafe](../config/safety.md#position-loss-failsafe) and may trigger a shift into a mode that does not require global position, including stopping missions.
|
||||
|
||||
This is desirable if the GNSS signal is likely to be recovered quickly and there are no mechanisms to estimate position when GNSS is unavailable.
|
||||
|
||||
Use Automatic (default) when:
|
||||
|
||||
- Flying in open sky with reliable GNSS throughout the mission.
|
||||
- You want the EKF to reset to GNSS when it becomes available again.
|
||||
- Operating in environments where GNSS is either good or completely unavailable (binary state).
|
||||
|
||||
### Dead-Reckoning Mode
|
||||
|
||||
In dead-reckoning mode, EKF2 stops fusing GNSS data when it becomes unreliable and prevents EKF2 resets — provided there are other sources of position or velocity data that can be fused.
|
||||
This ensures that the vehicle can continue flying missions and other position controlled modes when GNSS is lost.
|
||||
|
||||
When GNSS is recovered it will be fused with other measurements when tests indicate it can be trusted.
|
||||
This may cause jerky movements in position controlled modes if the estimate has drifted.
|
||||
This mode relies on having additional position or velocity sensors and must also have a reliable GNSS signal at boot.
|
||||
|
||||
Use Dead-Reckoning when:
|
||||
|
||||
- **Transitioning between GNSS and non-GNSS environments** (flying into buildings, under bridges, through tree cover).
|
||||
- You have **redundant sensors** (optical flow, VIO, rangefinder, quality baro) that can maintain position estimation.
|
||||
- Flying **missions that cross GPS-denied areas** where you want continuous operation rather than failsafe.
|
||||
- **Urban environments** or other areas with intermittent GNSS quality.
|
||||
- You want to **avoid EKF resets and jumps** when GNSS recovers (smoother transitions).
|
||||
|
||||
## 配置
|
||||
|
||||
To use dead-reckoning mode, the vehicle must have an alternative source of position or velocity information, such as an [Optical Flow](../sensor/optical_flow.md) sensor or [VIO](../computer_vision/visual_inertial_odometry.md) setup.
|
||||
|
||||
To enable the mode:
|
||||
|
||||
1. Set [EKF2_GPS_MODE](../advanced_config/parameter_reference.md#EKF2_GPS_MODE) to `1`.
|
||||
2. Ensure that GNSS arming checks are enabled (a reliable GNSS signal is required before arming):
|
||||
- [COM_ARM_WO_GPS](../advanced_config/parameter_reference.md#COM_ARM_WO_GPS) - set to `0`
|
||||
- [EKF2_GPS_CHECK](../advanced_config/parameter_reference.md#EKF2_GPS_CHECK) - set to default.
|
||||
|
||||
## 另见
|
||||
|
||||
- [GNSS Fault Detection](../advanced_config/tuning_the_ecl_ekf.md#gnss-fault-detection) in _Using PX4's Navigation Filter (EKF2)_
|
||||
- [Fuse, Reset, or Reject? EKF2中处理多种数据源](https://www.youtube.com/watch?v=CMGQJNPiTJg) - _PX4开发者峰会2025_,Marco Hauswirth,Auterion AG
|
||||
@@ -10,6 +10,7 @@
|
||||
## 功能配置
|
||||
|
||||
- [使用 PX4 的导航滤波器 (EKF2)](../advanced_config/tuning_the_ecl_ekf.md)
|
||||
- [GNSS-Denied and Degraded Flight](../advanced_config/gnss_degraded_or_denied_flight.md)
|
||||
- [飞行终止配置](../advanced_config/flight_termination.md)
|
||||
- [着陆探测器配置](../advanced_config/land_detector.md)
|
||||
- [解锁前/解锁/加锁 配置](../advanced_config/prearm_arm_disarm.md)
|
||||
|
||||
@@ -40,7 +40,7 @@ Information about how the parameters affect landing can be found below in [Land
|
||||
如果由于缺少传感器而无法达到条件,则默认情况下认为该条件为真。
|
||||
For instance, in [Acro mode](../flight_modes_mc/acro.md) and no sensor is active except for the gyro sensor, then the detection solely relies on thrust output and time.
|
||||
|
||||
In order to proceed to the next state, each condition has to be true for a third of the configured total land detector trigger time [LNDMC_TRIG_TIME](../advanced_config/parameter_reference.md#LNDMC_TRIG_TIME).
|
||||
In order to proceed to the next state, each condition has to be true for 300ms.
|
||||
If the vehicle is equipped with a distance sensor, but the distance to ground is currently not measurable (usually because it is too large), the trigger time is increased by a factor of 3.
|
||||
|
||||
如果一个条件失败,则陆地探测器立即退出当前状态。
|
||||
|
||||
@@ -328,7 +328,7 @@ GSF 应用于各个 3 状态 EKF 输出的权重位于 `weight` 字段中。
|
||||
|
||||
最小值在 [EKF2_REQ_\*](../advanced_config/parameter_reference.md#EKF2_REQ_EPH) 参数中定义,并且可以使用 [EKF2_GPS_CHECK](../advanced_config/parameter_reference.md#EKF2_GPS_CHECK) 参数启用/禁用每个检查。
|
||||
|
||||
下表显示了直接报告或从 GNSS 数据计算出的不同指标,以及 ECL 使用数据所需的最小值。
|
||||
下表列出了直接从 GNSS 数据中报告或计算的不同指标,以及 ECL 使用这些数据所需满足的最低要求值。
|
||||
此外,_平均值 (Average Value)_ 列显示了可能从标准 GNSS 模块(例如 u-blox M8 系列)合理获得的典型值 - 即被认为良好/可接受的值。
|
||||
|
||||
| 指标 (Metric) | 最低要求 | 平均值 (Average Value) | 单位 (Units) | 备注 |
|
||||
@@ -339,7 +339,7 @@ GSF 应用于各个 3 状态 EKF 输出的权重位于 `weight` 字段中。
|
||||
| sacc | < 0.5 ([EKF2_REQ_EPH](../advanced_config/parameter_reference.md#EKF2_REQ_SACC)) | 0.2 | 米/秒 | 水平速度误差的标准偏差 |
|
||||
| 定位类型 (fix type) | ≥ 3 | 4 | - | 0-1: 无定位, 2: 2D 定位, 3: 3D 定位, 4: RTCM 码差分, 5: 实时动态 (RTK) 浮点解, 6: 实时动态 (RTK) 固定解, 8: 外推值 |
|
||||
| 位置精度衰減因子(PDOP) | < 2.5 ([EKF2_REQ_EPH](../advanced_config/parameter_reference.md#EKF2_REQ_PDOP)) | 1.0 | - | 位置精度衰减 |
|
||||
| hpos 漂移率 | < 0.1 ([EKF2_REQ_EPH](../advanced_config/parameter_reference.md#EKF2_REQ_HDRIFT)) | 0.01 | 米/秒 | 静止时基于 GNSS 位置计算的漂移率 |
|
||||
| hpos 漂移率 | < 0.1 ([EKF2_REQ_EPH](../advanced_config/parameter_reference.md#EKF2_REQ_HDRIFT)) | 0.01 | 米/秒 | 静止时基于 GNSS 位置计算的漂移率。 |
|
||||
| vpos 漂移率 | < 0.2 ([EKF2_REQ_EPH](../advanced_config/parameter_reference.md#EKF2_REQ_VDRIFT)) | 0.02 | 米/秒 | 静止时基于 GNSS 高度计算的漂移率。 |
|
||||
| hspd | < 0.1 ([EKF2_REQ_EPH](../advanced_config/parameter_reference.md#EKF2_REQ_HDRIFT)) | 0.01 | 米/秒 | 报告的 GNSS 水平速度的滤波幅值。 |
|
||||
| 报告的 GNSS 垂直速度的滤波幅值。 | < 0.2 ([EKF2_REQ_EPH](../advanced_config/parameter_reference.md#EKF2_REQ_VDRIFT)) | 0.02 | 米/秒 | 所报告的全球导航卫星系统垂直速度的滤波量级。 |
|
||||
@@ -362,6 +362,10 @@ PX4 的 GNSS 故障检测使用基于测量验证的选择性融合控制来防
|
||||
如果没有其他位置或速度源可用,EKF2 可能会重置。
|
||||
如果 GNSS 高度或水平位置数据漂移,系统将同时禁用这两个测量值的融合(即使其中一个仍能通过验证),并避免执行重置。
|
||||
|
||||
:::tip
|
||||
See also [Fault Detection](https://youtu.be/CMGQJNPiTJg?si=sFtdf4AQbcOH8-u8) in "Fuse, Reset, or Reject? 处理EKF2中的各种数据来源"_PX4 开发者峰会2025_, Marco Hauswirth, Auterion AG
|
||||
:::
|
||||
|
||||
##### 检测逻辑
|
||||
|
||||
水平位置:
|
||||
@@ -456,7 +460,7 @@ PX4 允许您持续融合测距仪作为高度源(在任何飞行模式/载具
|
||||
如果检查失败,测距仪数据将被拒绝,高度将根据加速度计和其他选定的高度源(GNSS、气压计、视觉,如果启用且可用)进行估计。
|
||||
如果距离传感器是活动的高度数据源,在数据不一致持续 5 秒后,估计器会重置高度状态以匹配当前的距离传感器数据。
|
||||
如果一个或多个其他高度源处于活动状态,则测距仪被声明为故障,估计器继续使用其他传感器估计其高度。
|
||||
测量值也可能再次变得一致,例如,如果载具下降,或者如果估计的高度漂移以匹配测量的测距仪高度。
|
||||
测量结果也可能再次保持一致,例如当载具下降时,或者当估计高度漂移至与测距仪测得的高度相匹配时。
|
||||
|
||||
:::
|
||||
|
||||
@@ -571,8 +575,8 @@ EKF2 默认启用(有关更多信息,请参阅 [切换状态估计器](../ad
|
||||
- ecl EKF 检测并报告传感器数据中统计上的显著不一致,协助诊断传感器错误。
|
||||
- 对于固定翼操作,ecl EKF 在有或没有空速传感器的情况下均可估计风速,并且能够在飞行中 GPS 丢失时结合空速测量和侧滑假设来使用估计的风速,以延长可用的航位推算时间。
|
||||
- ecl EKF 估计三轴加速度计零偏,这提高了尾座式飞机和其他在飞行阶段之间经历大姿态变化的载具的精度。
|
||||
- 联邦结构(组合姿态和位置/速度估计)意味着姿态估计受益于所有传感器测量。
|
||||
如果调参正确,这应该提供改善态度估计的潜力。
|
||||
- 联合架构(结合姿态与位置/速度估计)意味着姿态估计能够利用所有传感器的测量数据。
|
||||
若调参得当,这应能提升姿态估算的精度。
|
||||
|
||||
## 如何检查 EKF 性能?
|
||||
|
||||
@@ -594,7 +598,7 @@ EKF 输出、状态和状态数据发布到许多 uORB 主题,这些主题在
|
||||
- 姿态输出数据位于 [VehicleAttitude](https://github.com/PX4/PX4-Autopilot/blob/main/msg/versioned/VehicleAttitude.msg) 消息中。
|
||||
- 局部位置输出数据位于 [VehicleLocalPosition](https://github.com/PX4/PX4-Autopilot/blob/main/msg/versioned/VehicleLocalPosition.msg) 消息中。
|
||||
- 全局 (WGS-84) 输出数据位于 [VehicleGlobalPosition](https://github.com/PX4/PX4-Autopilot/blob/main/msg/versioned/VehicleGlobalPosition.msg) 消息中。
|
||||
- 风速输出数据位于 [Wind.msg](https://github.com/PX4/PX4-Autopilot/blob/main/msg/Wind.msg) 消息中。
|
||||
- 风速输出数据位于 [AirspeedWind.msg](https://github.com/PX4/PX4-Autopilot/blob/main/msg/AirspeedWind.msg)消息中。
|
||||
|
||||
### 状态
|
||||
|
||||
@@ -610,7 +614,7 @@ states\[24\] 的索引映射如下:
|
||||
- \[19 ... 21\] 机体磁场 XYZ \(gauss\)
|
||||
- \[22 ... 23\] 风速 NE \(m/s\)
|
||||
|
||||
### 状态方差
|
||||
### 状态变量
|
||||
|
||||
参考 [EstimatorStates](https://github.com/PX4/PX4-Autopilot/blob/main/msg/EstimatorStates.msg) 中的 covariances\[24\]。
|
||||
covariances\[24\] 的索引映射如下:
|
||||
@@ -630,7 +634,7 @@ covariances\[24\] 的索引映射如下:
|
||||
这些消息字段名称/类型相同(但单位不同)。
|
||||
|
||||
:::info
|
||||
这些消息具有相同字段,是因为它们来自同一字段定义。
|
||||
这些消息具有相同的字段,因为它们是从相同的字段定义生成的。
|
||||
`# TOPICS` 行(见 [文件末尾](https://github.com/PX4/PX4-Autopilot/blob/main/msg/EstimatorInnovations.msg))列出了要生成的消息名:
|
||||
|
||||
```
|
||||
@@ -730,12 +734,12 @@ EKF 在开始 GPS 辅助前会执行一系列 GPS 质量检查。
|
||||
这些检查由 [EKF2_GPS_CHECK](../advanced_config/parameter_reference.md#EKF2_GPS_CHECK) 和 `EKF2_REQ_*` 参数控制。
|
||||
这些检查的通过/失败状态记录在 [EstimatorStatus](https://github.com/PX4/PX4-Autopilot/blob/main/msg/EstimatorStatus.msg) 的 `gps_check_fail_flags` 字段中。
|
||||
当所有所需的 GPS 检查通过后,此整数将为零。
|
||||
如果 EKF 未开始 GPS 对齐,请将该整数与 [EstimatorStatus](https://github.com/PX4/PX4-Autopilot/blob/main/msg/EstimatorStatus.msg) 中 `gps_check_fail_flags` 的位掩码定义进行对比。
|
||||
如果 EKF 未启动 GPS 对齐,请将该整数与 [EstimatorStatus](https://github.com/PX4/PX4-Autopilot/blob/main/msg/EstimatorStatus.msg) 中 `gps_check_fail_flags` 的位掩码定义进行对比。
|
||||
|
||||
### EKF 数值误差
|
||||
|
||||
EKF 对其所有计算使用单精度浮点运算,并使用一阶近似来推导协方差预测和更新方程,以降低处理要求。
|
||||
这意味着,当重新调整 EKF 时,可能遇到协方差矩阵运算条件恶劣,足以导致状态估计中的发散或显著错误的情况。
|
||||
这意味着,当重新调整 EKF 时,可能遇到协方差矩阵运算条件恶化到足以导致发散或状态估计出现重大误差的情况。
|
||||
|
||||
为防止这种情况,每个协方差和状态更新步骤都包含以下错误检测和更正步骤:
|
||||
|
||||
@@ -763,7 +767,7 @@ EKF 对其所有计算使用单精度浮点运算,并使用一阶近似来推
|
||||
|
||||
如果谐振频率与电动机或螺旋桨叶片通过频率一致,则隔离安装件会使振动更严重。
|
||||
|
||||
可通过以下参数调整提高 EKF 对振动引起的高度发散的鲁棒性:
|
||||
通过调整以下参数,可增强 EKF 对振动诱发高度发散的抗扰性:
|
||||
|
||||
- 将主高度传感器的创新门限加倍。
|
||||
若使用气压高度,可调 [EKF2_BARO_GATE](../advanced_config/parameter_reference.md#EKF2_BARO_GATE)。
|
||||
@@ -896,3 +900,4 @@ GPS 数据丢失会表现为速度与位置创新测试比值“贴平(flat-lini
|
||||
## 更多信息
|
||||
|
||||
- [PX4 State Estimation Overview](https://youtu.be/HkYRJJoyBwQ),_PX4 Developer Summit 2019_,Dr. Paul Riseborough:估计器概览、2018/19 的主要变化,以及 2019/20 期间的预期改进。
|
||||
- [Fuse, Reset, or Reject? EKF2中处理多种数据源](https://www.youtube.com/watch?v=CMGQJNPiTJg) - _PX4开发者峰会2025_,Marco Hauswirth,Auterion AG
|
||||
|
||||
Reference in New Issue
Block a user