From 5d0a06e48fbef94949a19bb929bff41c27f284b5 Mon Sep 17 00:00:00 2001 From: PX4 Build Bot Date: Wed, 21 Oct 2026 15:58:42 +1100 Subject: [PATCH] docs(i18n): PX4 guide translations (Crowdin) - zh-CN (#29312) Co-authored-by: Crowdin Bot --- docs/zh/SUMMARY.md | 3 +- .../actuators/internal_combustion_engine.md | 2 - docs/zh/advanced_config/tuning_the_ecl_ekf.md | 27 +- .../vision_target_estimator_advanced.md | 4 +- docs/zh/airframes/airframe_reference.md | 4 + docs/zh/complete_vehicles_mc/crazyflie21.md | 5 +- docs/zh/config/airspeed.md | 7 +- docs/zh/config/safety.md | 14 +- docs/zh/config_fw/airspeed_scale_handling.md | 6 +- .../position_tuning_guide_fixedwing.md | 3 + docs/zh/config_fw/trimming_guide_fixedwing.md | 31 ++- docs/zh/config_rover/position_tuning.md | 16 +- docs/zh/config_rover/velocity_tuning.md | 4 +- docs/zh/dev_setup/dev_env_mac.md | 2 +- docs/zh/dronecan/ark_rtk_gps.md | 1 - docs/zh/dronecan/ark_rtk_gps_l1_l2.md | 1 - docs/zh/dronecan/ark_x20_rtk_gps.md | 1 - docs/zh/flight_modes/return.md | 16 +- docs/zh/flight_modes_fw/mission.md | 6 + docs/zh/flight_modes_mc/mission.md | 2 + docs/zh/flight_modes_rover/index.md | 11 + docs/zh/flight_stack/controller_diagrams.md | 47 +++- docs/zh/gps_compass/index.md | 4 +- docs/zh/mavlink/standard_modes.md | 3 - docs/zh/middleware/uorb.md | 3 + docs/zh/msg_docs/AirspeedValidated.md | 4 +- docs/zh/msg_docs/AuxGlobalPosition.md | 6 +- docs/zh/msg_docs/DetectAndAvoid.md | 2 +- docs/zh/msg_docs/DetectAndAvoidMostUrgent.md | 2 +- docs/zh/msg_docs/FailsafeFlags.md | 3 +- docs/zh/msg_docs/FiducialMarkerPosReport.md | 2 +- .../FixedWingLateralGuidanceStatus.md | 6 +- .../msg_docs/FixedWingLongitudinalSetpoint.md | 20 +- docs/zh/msg_docs/FollowTargetStatus.md | 2 +- docs/zh/msg_docs/LandingTargetPose.md | 12 +- .../LongitudinalControlConfiguration.md | 30 +-- docs/zh/msg_docs/OrbitStatus.md | 2 +- .../PositionControllerLandingStatus.md | 2 +- docs/zh/msg_docs/PositionSetpoint.md | 4 +- docs/zh/msg_docs/PurePursuitStatus.md | 6 +- docs/zh/msg_docs/RangingBeacon.md | 10 +- docs/zh/msg_docs/RcChannels.md | 71 ------ docs/zh/msg_docs/RcParameterMap.md | 4 +- docs/zh/msg_docs/SensorGnss.md | 8 +- docs/zh/msg_docs/SensorUwb.md | 2 +- docs/zh/msg_docs/TargetGnss.md | 6 +- docs/zh/msg_docs/TecsStatus.md | 60 ++--- docs/zh/msg_docs/TransponderReport.md | 2 +- docs/zh/msg_docs/VehicleCommand.md | 38 +-- docs/zh/msg_docs/VteBiasInitStatus.md | 2 +- docs/zh/releases/main.md | 6 +- docs/zh/releases/release_process.md | 4 +- docs/zh/sensor/airspeed.md | 44 +++- docs/zh/sensor/inertiallabs.md | 4 +- docs/zh/sensor/lidar_lite.md | 237 +++++++++++++----- docs/zh/sensor/rangefinders.md | 86 ++++--- docs/zh/sensor/teraranger.md | 151 +++++++++-- 57 files changed, 685 insertions(+), 376 deletions(-) diff --git a/docs/zh/SUMMARY.md b/docs/zh/SUMMARY.md index 725f7458758..b56ca92cd41 100644 --- a/docs/zh/SUMMARY.md +++ b/docs/zh/SUMMARY.md @@ -666,7 +666,6 @@ - [EstimatorBias3d](msg_docs/EstimatorBias3d.md) - [EstimatorEventFlags](msg_docs/EstimatorEventFlags.md) - [EstimatorFusionControl](msg_docs/EstimatorFusionControl.md) - - [EstimatorGpsStatus](msg_docs/EstimatorGpsStatus.md) - [EstimatorInnovations](msg_docs/EstimatorInnovations.md) - [EstimatorSelectorStatus](msg_docs/EstimatorSelectorStatus.md) - [EstimatorSensorBias](msg_docs/EstimatorSensorBias.md) @@ -812,6 +811,7 @@ - [SensorTemp](msg_docs/SensorTemp.md) - [SensorUwb](msg_docs/SensorUwb.md) - [SensorsStatus](msg_docs/SensorsStatus.md) + - [SensorsStatusGnss](msg_docs/SensorsStatusGnss.md) - [SensorsStatusImu](msg_docs/SensorsStatusImu.md) - [SystemPower](msg_docs/SystemPower.md) - [TakeoffStatus](msg_docs/TakeoffStatus.md) @@ -834,6 +834,7 @@ - [VehicleConstraints](msg_docs/VehicleConstraints.md) - [VehicleControlMode](msg_docs/VehicleControlMode.md) - [VehicleGnss](msg_docs/VehicleGnss.md) + - [VehicleGnssHeading](msg_docs/VehicleGnssHeading.md) - [VehicleImu](msg_docs/VehicleImu.md) - [VehicleImuStatus](msg_docs/VehicleImuStatus.md) - [VehicleLocalPositionSetpoint](msg_docs/VehicleLocalPositionSetpoint.md) diff --git a/docs/zh/actuators/internal_combustion_engine.md b/docs/zh/actuators/internal_combustion_engine.md index 6e63e2003da..4acac68aeb7 100644 --- a/docs/zh/actuators/internal_combustion_engine.md +++ b/docs/zh/actuators/internal_combustion_engine.md @@ -75,8 +75,6 @@ In other words, a setpoint of `0` produces the configured **Minimum** output and :::info When the engine is commanded off, the throttle setpoint is `NAN`, which by definition drives the output to its configured **Disarmed** value rather than to **Minimum**. This lets you park the throttle servo at an idle-stop position that is different from the closed-throttle position used to switch off the engine. - -The throttle output also goes to _Disarmed_ while the engine is running if the [idle governor](#idle-rpm-governor) is disabled and the throttle demand drops to near zero (the fixed-wing controller stops the motor below 2% thrust). ::: Points to note when setting the values: diff --git a/docs/zh/advanced_config/tuning_the_ecl_ekf.md b/docs/zh/advanced_config/tuning_the_ecl_ekf.md index bcd12d8c2e8..fc648ae2785 100644 --- a/docs/zh/advanced_config/tuning_the_ecl_ekf.md +++ b/docs/zh/advanced_config/tuning_the_ecl_ekf.md @@ -246,25 +246,24 @@ GSF 应用于各个 3 状态 EKF 输出的权重位于 `weight` 字段中。 #### 双 GPS 接收器 -可以使用一种算法混合来自 GPS 接收机的数据,该算法根据报告的精度对数据进行加权(如果两个接收机以相同的速率输出数据并使用相同的精度,效果最佳)。如果来自接收机的数据丢失,该机制还提供自动故障转移(例如,它允许使用标准 GPS 作为更精确的 RTK 接收机的备份)。 -This is controlled by the [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) parameter. +When two GPS receivers are connected, PX4 uses the data from one of them at a time, and automatically fails over to the other if the selected receiver is lost or its fix degrades (this allows, for example, a standard GPS to be used as a backup to a more accurate RTK receiver). -The [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) parameter is set by default to disable blending and always use the first receiver, so it will have to be set to select which receiver accuracy metrics are used to decide how much each receiver output contributes to the blended solution. -Where different receiver models are used, it is important that the [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) parameter is set to a value that uses accuracy metrics that are supported by both receivers. -For example do not set bit position 0 to `true` unless the drivers for both receivers publish values in the `speed_accuracy` field of the `sensor_gnss` message that are comparable. -由于不同制造商定义精度的方式不同(例如 CEP 与 1-sigma 等),这对于来自不同制造商的接收机可能很困难。 +The receiver is selected as follows: + +- The preferred receiver, set by [SENS_GNSS_PRIME](../advanced_config/parameter_reference.md#SENS_GNSS_PRIME), is used while it is publishing data and has at least a 3D fix. + By default this is the main serial GPS. +- Otherwise the receiver with the best fix type is used, and if both have the same fix type, the one using the most satellites. +- Set [SENS_GNSS_PRIME](../advanced_config/parameter_reference.md#SENS_GNSS_PRIME) to `-1` to give both receivers equal priority, so that the best one is always used. +- A receiver that has not published data for 2 seconds is not used. + +The EKF resets its horizontal position to the new receiver when the selected receiver changes. 设置期间应检查以下项目: - 验证第二个接收机的数据是否存在。 This will be logged as `sensor_gnss_1` and can also be checked when connected via the _nsh console_ using the command `listener sensor_gnss -i 1`. [GPS_2_CONFIG](../advanced_config/parameter_reference.md#GPS_2_CONFIG) 参数需要正确设置。 -- Check the `speed_accuracy`, `eph` and `epv` data from each receiver and decide which accuracy metrics can be used. - If both receivers output sensible `speed_accuracy` and `eph` data, and GPS vertical position is not being used directly for navigation, then setting [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) to 3 is recommended. - Where only `eph` data is available and both receivers do not output `speed_accuracy` data, set [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) to 2. - 只有当 GPS 已通过 [EKF2_HGT_REF](../advanced_config/parameter_reference.md#EKF2_HGT_REF) 参数被选为参考高度源,且两个接收机都输出合理的 `epv` 数据时,第 2 位才会被置位。 -- The output from the blended receiver data is logged as `vehicle_gnss`, and can be checked whilst connect via the nsh terminal using the command `listener vehicle_gnss`. -- 若各接收机输出速率不同,融合后的输出速率将与速率较慢的接收机保持一致。在可能的情况下,接收机应配置为以相同的速率输出。 +- The data from the selected receiver is logged as `vehicle_gnss`, and can be checked whilst connected via the nsh terminal using the command `listener vehicle_gnss`. #### GNSS 性能要求 @@ -276,8 +275,8 @@ Minima are defined in the [GNSS_REQ_\*](../advanced_config/parameter_r | 指标 (Metric) | 最低要求 | 平均值 (Average Value) | 单位 (Units) | 备注 | | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| eph | < 3 ([GNSS_REQ_EPH](../advanced_config/parameter_reference.md#GNSS_REQ_EPH)) | 0.8 | 米 | 水平位置误差的标准偏差 | -| epv | < 5 ([GNSS_REQ_EPV](../advanced_config/parameter_reference.md#GNSS_REQ_EPV)) | 1.5 | 米 | 垂直位置误差的标准偏差 | +| eph | < 3 ([GNSS_REQ_EPH](../advanced_config/parameter_reference.md#GNSS_REQ_EPH)) | 0.8 | m | 水平位置误差的标准偏差 | +| epv | < 5 ([GNSS_REQ_EPV](../advanced_config/parameter_reference.md#GNSS_REQ_EPV)) | 1.5 | m | 垂直位置误差的标准偏差 | | 卫星数量 | ≥6 ([GNSS_REQ_NSATS](../advanced_config/parameter_reference.md#GNSS_REQ_NSATS)) | 14 | - | | | sacc | < 0.5 ([GNSS_REQ_SACC](../advanced_config/parameter_reference.md#GNSS_REQ_SACC)) | 0.2 | 米/秒 | 水平速度误差的标准偏差 | | 定位类型 (fix type) | ≥ 3 | 4 | - | 0-1: 无定位, 2: 2D 定位, 3: 3D 定位, 4: RTCM 码差分, 5: 实时动态 (RTK) 浮点解, 6: 实时动态 (RTK) 固定解, 8: 外推值 | diff --git a/docs/zh/advanced_features/vision_target_estimator_advanced.md b/docs/zh/advanced_features/vision_target_estimator_advanced.md index 678d235371c..469e1eaf0b1 100644 --- a/docs/zh/advanced_features/vision_target_estimator_advanced.md +++ b/docs/zh/advanced_features/vision_target_estimator_advanced.md @@ -171,9 +171,9 @@ $$ | Parameter | 单位 (Units) | 默认值 | Applies to | | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | -------------------- | ----------------------------------------------------- | -| [VTE_EVP_NOISE](../advanced_config/parameter_reference.md#VTE_EVP_NOISE) | 米 | 0.10 | Vision relative position | +| [VTE_EVP_NOISE](../advanced_config/parameter_reference.md#VTE_EVP_NOISE) | m | 0.10 | Vision relative position | | [VTE_EVA_NOISE](../advanced_config/parameter_reference.md#VTE_EVA_NOISE) | rad | 0.07 | Vision yaw | -| [VTE_GPS_P_NOISE](../advanced_config/parameter_reference.md#VTE_GPS_P_NOISE) | 米 | 0.50 | GNSS position (target and mission) | +| [VTE_GPS_P_NOISE](../advanced_config/parameter_reference.md#VTE_GPS_P_NOISE) | m | 0.50 | GNSS position (target and mission) | | [VTE_GPS_V_NOISE](../advanced_config/parameter_reference.md#VTE_GPS_V_NOISE) | 米/秒 | 0.30 | UAV and target GNSS velocity | These are **standard deviations**, not variances. diff --git a/docs/zh/airframes/airframe_reference.md b/docs/zh/airframes/airframe_reference.md index 60765857a21..7c6df99e6ed 100644 --- a/docs/zh/airframes/airframe_reference.md +++ b/docs/zh/airframes/airframe_reference.md @@ -674,6 +674,10 @@ div.frame_variant td, div.frame_variant th { KTH-ATMOS Maintainer: DISCOWER

SYS_AUTOSTART = 70000

+ + KTH-ATMOS-DUAL + Maintainer: DISCOWER

SYS_AUTOSTART = 70001


Specific Outputs: + diff --git a/docs/zh/complete_vehicles_mc/crazyflie21.md b/docs/zh/complete_vehicles_mc/crazyflie21.md index cdc6cf6997a..f2956932631 100644 --- a/docs/zh/complete_vehicles_mc/crazyflie21.md +++ b/docs/zh/complete_vehicles_mc/crazyflie21.md @@ -40,10 +40,11 @@ The vehicle can be purchased here: [Crazyflie 2.1](https://store.bitcraze.io/pro Useful peripheral hardware includes: -- [Crazyradio PA 2.4 GHz USB dongle](https://store.bitcraze.io/products/crazyradio-pa): Wireless communication between _QGroundControl_ and Crazyflie 2.0 +- [Crazyradio 2.0](https://www.bitcraze.io/products/crazyradio-2-0/) 2.4 GHz USB dongle: Wireless communication between _QGroundControl_ and Crazyflie 2.0. + This behaves like the [old hardware](https://www.bitcraze.io/products/old-products/crazyradio-pa/) (anecdotally) when running its default "Crazyradio PA emulation" firmware. - [Breakout deck](https://store.bitcraze.io/collections/decks/products/breakout-deck): Breakout expansion board for connecting new peripherals. - [Flow deck v2](https://store.bitcraze.io/products/flow-deck-v2): Optical flow sensor and a distance sensor for altitude and position control. -- [Z-ranger deck v2](https://store.bitcraze.io/collections/decks/products/z-ranger-deck-v2): Distance sensor for altitude control (same sensor as the Flow deck). +- [Z-ranger deck v2](https://www.bitcraze.io/products/old-products/z-ranger-deck-v2/) (Discontinued): Distance sensor for altitude control (same sensor as the Flow deck). - [Multi-ranger deck](https://store.bitcraze.io/collections/decks/products/multi-ranger-deck) Multi-direction object detection - [Buzzer deck](https://store.bitcraze.io/collections/decks/products/buzzer-deck) Audio feedback on system events, like low battery or charging completed. - [Breakout deck](https://store.bitcraze.io/collections/decks/products/breakout-deck): Expansion board that gives you the ability to test new hardware easily without soldering. diff --git a/docs/zh/config/airspeed.md b/docs/zh/config/airspeed.md index bde7aa8f9ca..ef2e0c9235a 100644 --- a/docs/zh/config/airspeed.md +++ b/docs/zh/config/airspeed.md @@ -17,7 +17,10 @@ Before calibration they must be [enabled via the corresponding parameter](../adv ## 执行校准 -To calibrate the airspeed sensor: +All connected airspeed sensors are calibrated in one run. +The zero reading is taken from every sensor at the same time, but you are prompted to blow into each pitot in turn. + +To calibrate the airspeed sensor(s): 1. Start _QGroundControl_ and connect the vehicle. @@ -34,7 +37,7 @@ To calibrate the airspeed sensor: 6. Click **OK** to start the calibration. -7. Once asked for, blow into the tip of the pitot tube to signal the end of calibration. +7. Once asked for, blow into the tip of each pitot tube to signal the end of its calibration. :::tip Blowing into the tube is also a basic check that the dynamic and static ports are installed correctly. diff --git a/docs/zh/config/safety.md b/docs/zh/config/safety.md index 6fa5de4671e..4970b428a33 100644 --- a/docs/zh/config/safety.md +++ b/docs/zh/config/safety.md @@ -152,6 +152,7 @@ This is intended for operations where a switch to Hold on manual control loss is If Hold cannot be entered (for example without a valid position estimate), the normal failsafe takes over and escalates from there (Return, Land, Descend, or Terminate as applicable). Manual control loss in any non-manual (auto/offboard) mode is ignored with this setting. +If another failsafe would fall back to a manual mode while manual control is lost, for example an Offboard loss with [COM_OBL_RC_ACT](../advanced_config/parameter_reference.md#COM_OBL_RC_ACT) set to Position mode, the vehicle switches to Hold instead. ## 数据链路丢失故障保护 @@ -276,14 +277,19 @@ Triggers on either of: - **Count drop**: receivers with a 3D fix drop below [SYS_HAS_NUM_GNSS](#SYS_HAS_NUM_GNSS). No failsafe action when `SYS_HAS_NUM_GNSS=0` (default). - **Position divergence**: two receivers disagree beyond their expected separation (configured via [SENS_GNSS0_OFFX/Y](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFX), [SENS_GNSS1_OFFX/Y](../advanced_config/parameter_reference.md#SENS_GNSS1_OFFX)) plus reported accuracy. Only triggers a failsafe action if `SYS_HAS_NUM_GNSS=2`. + Receivers might report an optimistic accuracy, so the reported accuracy of each receiver is floored with [EKF2_GPS_P_NOISE](../advanced_config/parameter_reference.md#EKF2_GPS_P_NOISE). At least a warning is emitted, additional failsafe actions can be configured using [COM_GNSSLOSS_ACT](#COM_GNSSLOSS_ACT). Loss of a single GPS when none are required is handled by other GPS health checks. -| Parameter | 描述 | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| [SYS_HAS_NUM_GNSS](../advanced_config/parameter_reference.md#SYS_HAS_NUM_GNSS) | Number of usable GNSS receivers required for arming. If two are required then they also need to be consistent. | -| [COM_GNSSLOSS_ACT](../advanced_config/parameter_reference.md#COM_GNSSLOSS_ACT) | Failsafe action when a GNSS failure is detected in flight. | +When `COM_GNSSLOSS_ACT` is set to `Warning`, both triggers produce a warning only and never block arming. +When set to `Warning, block arming`, both triggers block arming and only produce a warning in flight. +When set to `Return`, `Land`, or `Terminate`, both triggers block arming and fire the configured in-flight failsafe action (subject to the `SYS_HAS_NUM_GNSS` condition above). + +| Parameter | 描述 | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [SYS_HAS_NUM_GNSS](../advanced_config/parameter_reference.md#SYS_HAS_NUM_GNSS) | Number of usable GNSS receivers required. If two are required then they also need to be consistent. | +| [COM_GNSSLOSS_ACT](../advanced_config/parameter_reference.md#COM_GNSSLOSS_ACT) | Failsafe action when a GNSS failure is detected. `0`: Warning only (default), `1`: Return, `2`: Land, `3`: Terminate, `4`: Warning, block arming. Values above Warning also block arming. | ## Offboard 中断故障保护 diff --git a/docs/zh/config_fw/airspeed_scale_handling.md b/docs/zh/config_fw/airspeed_scale_handling.md index 02f745fc72b..f2296b0a602 100644 --- a/docs/zh/config_fw/airspeed_scale_handling.md +++ b/docs/zh/config_fw/airspeed_scale_handling.md @@ -5,7 +5,11 @@ This section complements the existing [Airspeed Validation](../advanced_config/a ::: The airspeed scale is used by PX4 to convert the measured airspeed (indicated airspeed) to the calibrated airspeed. -This scale can be set by [ASPD_SCALE_n](../advanced_config/parameter_reference.md#ASPD_SCALE_1) (where `n` is the sensor number), and logged in [AirspeedWind.msg](../msg_docs/AirspeedWind.md). +This scale can be set by [ASPD_SCALE_n](../advanced_config/parameter_reference.md#ASPD_SCALE_1), and logged in [AirspeedWind.msg](../msg_docs/AirspeedWind.md). + +`n` identifies the sensor by its calibration entry: `ASPD_SCALE_1` belongs to the sensor recorded in `CAL_DPRES0_ID`, `ASPD_SCALE_2` to `CAL_DPRES1_ID`, and so on. +With a single airspeed sensor this is always `ASPD_SCALE_1`. +See [Multiple Airspeed Sensors](../sensor/airspeed.md#multiple-airspeed-sensors) if you have more than one. Note that the airspeed scale is different from the airspeed sensor offset calibration done on the ground at 0 m/s. The airspeed scale accounts for errors in the airspeed measurement during flight, such as those caused by sensor placement or installation effects. diff --git a/docs/zh/config_fw/position_tuning_guide_fixedwing.md b/docs/zh/config_fw/position_tuning_guide_fixedwing.md index 13c1e62f830..f65674efdf5 100644 --- a/docs/zh/config_fw/position_tuning_guide_fixedwing.md +++ b/docs/zh/config_fw/position_tuning_guide_fixedwing.md @@ -50,6 +50,9 @@ the maximum allowed airspeed. - [FW_THR_MIN](../advanced_config/parameter_reference.md#FW_THR_MIN) - set to the minimum throttle the plane should fly at. - [FW_AIRSPD_MAX](../advanced_config/parameter_reference.md#FW_AIRSPD_MAX) - set to the maximum airspeed you achieved during level flight at `FW_THR_MAX`. +TECS accelerates above trim airspeed with throttle only, rather than by descending (see [Speed and Altitude Weighting](../flight_stack/controller_diagrams.md#speed-and-altitude-weighting)). +If `FW_AIRSPD_MAX` is set higher than the vehicle can reach in level flight at `FW_THR_MAX`, it will hold altitude and fly slower than commanded. + #### 3rd: Pitch & Climb Rate Limits :::warning diff --git a/docs/zh/config_fw/trimming_guide_fixedwing.md b/docs/zh/config_fw/trimming_guide_fixedwing.md index d5fb857463f..798606c80c9 100644 --- a/docs/zh/config_fw/trimming_guide_fixedwing.md +++ b/docs/zh/config_fw/trimming_guide_fixedwing.md @@ -15,8 +15,8 @@ The [Advanced Trimming](#advanced-trimming) section introduces parameters that c These parameters are set automatically during [RC calibration](../config/radio.md). - [CA_SV_CSx_TRIM](../advanced_config/parameter_reference.md#CA_SV_CS0_TRIM) applies trim to a control surfaces channel. 该参数用于在飞行前精确地将舵面与默认角度对齐。 -- [FW_PSP_OFF](../advanced_config/parameter_reference.md#FW_PSP_OFF) applies an offset to the pitch setpoint. - 该参数用来设定飞机在巡航速度飞行时所需要的攻角。 +- [FW_PSP_OFF](../advanced_config/parameter_reference.md#FW_PSP_OFF) is the pitch angle at which your aircraft flies level at trim airspeed. + See [Level-Flight Pitch](#level-flight-pitch) for how PX4 defines and uses it. - [FW_AIRSPD_TRIM](../advanced_config/parameter_reference.md#FW_AIRSPD_TRIM) is used by the rate controllers to scale their output depending on the measured airspeed. See [Airspeed Scaling](../flight_stack/controller_diagrams.md#airspeed-scaling) for more details. - [TRIM_ROLL](../advanced_config/parameter_reference.md#TRIM_ROLL), [TRIM_PITCH](../advanced_config/parameter_reference.md#TRIM_PITCH) and [TRIM_YAW](../advanced_config/parameter_reference.md#TRIM_YAW) apply trim to the control signals _before_ mixing. @@ -26,8 +26,7 @@ The [Advanced Trimming](#advanced-trimming) section introduces parameters that c 设置上述参数的正确顺序是: 1. Trim the servos by physically adjusting the linkages lengths if possible and fine tune by trimming the PWM channels (use `PWM_MAIN/AUX_TRIMx`) on the bench to properly set the control surfaces to their theoretical position. -2. Fly in stabilized mode at cruise speed and set the pitch setpoint offset (`FW_PSP_OFF`) to desired angle of attack. - 巡航速度飞行下的需用攻角为飞机在平飞状态下保持固定高度时的实际飞行迎角。 +2. Fly in stabilized mode at cruise speed and set `FW_PSP_OFF` to the pitch angle that the airplane needs to fly at in order to keep constant altitude during wing-leveled flight. If you are using an airspeed sensor, also set the correct cruise airspeed (`FW_AIRSPD_TRIM`). 3. Look at the actuator controls in the log file (upload it to [Flight Review](https://logs.px4.io) and check the _Actuator Controls_ plot for example) and set the pitch trim (`TRIM_PITCH`). 将该值设置为平飞时俯仰角度的平均值。 @@ -35,6 +34,30 @@ The [Advanced Trimming](#advanced-trimming) section introduces parameters that c 步骤3可以在步骤2之前执行,如果你不想查看日志, 或者如果您在手动模式下感觉舒适。 You can then trim your remote (with the trim switches) and report the values to `TRIM_PITCH` (and remove the trims from your transmitter) or update `TRIM_PITCH` directly during flight via telemetry and QGC. +## Level-Flight Pitch + +PX4 measures the fixed-wing pitch angle θ between the body x-axis and the horizon. +The body frame is fixed to the vehicle: x points forward through the nose, y along the right wing and z down. +Its orientation follows the mounting of the flight controller (see [Flight Controller Orientation](../config/flight_controller_orientation.md)), not the wing chord. +For tailsitters, the fixed-wing body frame is the multicopter body frame rotated by 90° in pitch. + +![Side view of a fixed-wing aircraft pitched up: the body x-axis points forward, z down and y along the right wing out of the page; the pitch angle θ is the angle between the body x-axis and the horizon, and in level flight at trim airspeed it equals FW_PSP_OFF](../../assets/config/fw/fw_pitch_angle_definition.svg) + +[FW_PSP_OFF](../advanced_config/parameter_reference.md#FW_PSP_OFF) is θ in level flight at trim airspeed ([FW_AIRSPD_TRIM](../advanced_config/parameter_reference.md#FW_AIRSPD_TRIM)). +In level flight the velocity is horizontal, so this is also the angle of attack measured from the body x-axis. +It differs from the angle of attack of the wing by the angle between the wing chord and the body x-axis. + +Pitch setpoints and pitch limits in PX4 are absolute pitch angles θ, and `FW_PSP_OFF` is not added to them. +This applies for example to [FW_P_LIM_MIN](../advanced_config/parameter_reference.md#FW_P_LIM_MIN), [FW_P_LIM_MAX](../advanced_config/parameter_reference.md#FW_P_LIM_MAX), [FW_TKO_PITCH_MIN](../advanced_config/parameter_reference.md#FW_TKO_PITCH_MIN), [FW_LND_FL_PMIN](../advanced_config/parameter_reference.md#FW_LND_FL_PMIN), [FW_LND_FL_PMAX](../advanced_config/parameter_reference.md#FW_LND_FL_PMAX) and [RWTO_PSP](../advanced_config/parameter_reference.md#RWTO_PSP). + +`FW_PSP_OFF` itself is used in these places: + +- The altitude and airspeed controller (TECS) uses `FW_PSP_OFF` as the pitch at zero climb angle: its pitch setpoint is `FW_PSP_OFF` plus the commanded climb angle plus an integrator correction. + The logged TECS pitch setpoint (`tecs_status.pitch_sp_rad`) is absolute, while the logged pitch integrator (`tecs_status.pitch_integ`) is a correction added to it rather than a pitch angle. +- In [Stabilized mode](../flight_modes_fw/stabilized.md), the centred pitch stick commands `FW_PSP_OFF`. +- During the front transition, standard VTOLs ramp their pitch setpoint to `FW_PSP_OFF`, and tailsitters end their pitch-down rotation at it. +- The first principle check of the [airspeed validation](../advanced_config/airspeed_validation.md) considers the vehicle to be pitching down when θ is below `FW_PSP_OFF`. + ## 高级配平 在空速增加过程中,会因非对称翼型和使用襟翼而引入俯仰通道低头力矩,因此飞机需要根据测量空速和襟翼位置重新计算配平。为此,可以使用以下参数定义一个关于空速的双线性曲线函数和关于襟翼状态的俯仰修正增量函数(参见下图): diff --git a/docs/zh/config_rover/position_tuning.md b/docs/zh/config_rover/position_tuning.md index 65c987b86ab..c267b6b725b 100644 --- a/docs/zh/config_rover/position_tuning.md +++ b/docs/zh/config_rover/position_tuning.md @@ -133,11 +133,11 @@ $$ | Symbol | 描述 | Unit | | ----------------------------------- | ---------------------------------- | ---- | -| $\vec{a}$ | Vector from current to previous WP | 米 | -| $\vec{b}$ | Vector from current to next WP | 米 | -| $r_{min}$ | Minimum turn radius | 米 | -| $\delta_{max}$ | Maximum steer angle | 米 | -| $r_{acc}$ | Acceptance radius | 米 | +| $\vec{a}$ | Vector from current to previous WP | m | +| $\vec{b}$ | Vector from current to next WP | m | +| $r_{min}$ | Minimum turn radius | m | +| $\delta_{max}$ | Maximum steer angle | m | +| $r_{acc}$ | Acceptance radius | m | ## Differential Rover Only @@ -187,14 +187,14 @@ The position controller uses the following structure: | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ---- | | [RO_SPEED_RED](../advanced_config/parameter_reference.md#RO_SPEED_RED) | (Optional) Tuning parameter for the speed reduction based on the course error | - | | [PP_LOOKAHD_GAIN](../advanced_config/parameter_reference.md#PP_LOOKAHD_GAIN) | Pure pursuit: Main tuning parameter | - | -| [PP_LOOKAHD_MAX](../advanced_config/parameter_reference.md#PP_LOOKAHD_MAX) | Pure pursuit: Maximum value for the look ahead radius | 米 | -| [PP_LOOKAHD_MIN](../advanced_config/parameter_reference.md#PP_LOOKAHD_MIN) | Pure pursuit: Minimum value for the look ahead radius | 米 | +| [PP_LOOKAHD_MAX](../advanced_config/parameter_reference.md#PP_LOOKAHD_MAX) | Pure pursuit: Maximum value for the look ahead radius | m | +| [PP_LOOKAHD_MIN](../advanced_config/parameter_reference.md#PP_LOOKAHD_MIN) | Pure pursuit: Minimum value for the look ahead radius | m | ## Ackermann Specific | Parameter | 描述 | Unit | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---- | -| [RA_ACC_RAD_MAX](../advanced_config/parameter_reference.md#RA_ACC_RAD_MAX) | (Optional) Maximum radius the acceptance radius can be scaled to | 米 | +| [RA_ACC_RAD_MAX](../advanced_config/parameter_reference.md#RA_ACC_RAD_MAX) | (Optional) Maximum radius the acceptance radius can be scaled to | m | | [RA_ACC_RAD_GAIN](../advanced_config/parameter_reference.md#RA_ACC_RAD_GAIN) | (Optional) Tuning parameter for the acceptance radius scaling | - | ## Differential Specific diff --git a/docs/zh/config_rover/velocity_tuning.md b/docs/zh/config_rover/velocity_tuning.md index caeb43bb034..c93afa745ee 100644 --- a/docs/zh/config_rover/velocity_tuning.md +++ b/docs/zh/config_rover/velocity_tuning.md @@ -129,5 +129,5 @@ Both these setpoint are then sent to their own closed loop speed controllers. | Parameter | 描述 | Unit | | -------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---- | | [PP_LOOKAHD_GAIN](../advanced_config/parameter_reference.md#PP_LOOKAHD_GAIN) | Pure pursuit: Main tuning parameter | - | -| [PP_LOOKAHD_MAX](../advanced_config/parameter_reference.md#PP_LOOKAHD_MAX) | Pure pursuit: Maximum value for the look ahead radius | 米 | -| [PP_LOOKAHD_MIN](../advanced_config/parameter_reference.md#PP_LOOKAHD_MIN) | Pure pursuit: Minimum value for the look ahead radius | 米 | +| [PP_LOOKAHD_MAX](../advanced_config/parameter_reference.md#PP_LOOKAHD_MAX) | Pure pursuit: Maximum value for the look ahead radius | m | +| [PP_LOOKAHD_MIN](../advanced_config/parameter_reference.md#PP_LOOKAHD_MIN) | Pure pursuit: Minimum value for the look ahead radius | m | diff --git a/docs/zh/dev_setup/dev_env_mac.md b/docs/zh/dev_setup/dev_env_mac.md index 00e6b321b3a..e627199c23f 100644 --- a/docs/zh/dev_setup/dev_env_mac.md +++ b/docs/zh/dev_setup/dev_env_mac.md @@ -89,7 +89,7 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will The `--sim-tools` flag installs Gazebo and the libraries PX4's simulation modules build against. Gazebo does not come from Homebrew. -The script installs it from a locked [conda-forge](https://conda-forge.org/) environment, using [pixi](https://pixi.sh), into `Tools/setup/macos/.pixi`. +The script installs it from a locked [conda-forge](https://conda-forge.org/) environment, using [pixi](https://pixi.prefix.dev/latest/), into `Tools/setup/macos/.pixi`. The lock file pins every package, so the install does not change when Homebrew updates its own Gazebo dependencies. The build and the `make px4_sitl gz_*` targets find it on their own, like the `.venv`. Activating `.venv` also puts it on your `PATH`, which you only need to run `gz` commands directly. diff --git a/docs/zh/dronecan/ark_rtk_gps.md b/docs/zh/dronecan/ark_rtk_gps.md index d16924cdd14..7f60ee02e0f 100644 --- a/docs/zh/dronecan/ark_rtk_gps.md +++ b/docs/zh/dronecan/ark_rtk_gps.md @@ -83,7 +83,6 @@ GPS data should arrive at 10Hz. You need to set necessary [DroneCAN](index.md) parameters and define offsets if the sensor is not centred within the vehicle: - Enable GPS yaw fusion by setting bit 3 of [EKF2_GPS_CTRL](../advanced_config/parameter_reference.md#EKF2_GPS_CTRL) to true. -- Enable GPS blending to ensure the heading is always published by setting [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) to 7 (all three bits checked). - If using [Moving Baseline & GPS Heading](#setting-up-moving-baseline-gps-heading), set [SENS_GNSS_PRIME](../advanced_config/parameter_reference.md#SENS_GNSS_PRIME) to the CAN node ID of the _Moving Base_ module. The moving base is preferred because the rover receiver in a moving baseline configuration can experience degraded navigation rate and increased data latency when corrections are intermittent. - Enable [UAVCAN_SUB_GPS](../advanced_config/parameter_reference.md#UAVCAN_SUB_GPS), [UAVCAN_SUB_MAG](../advanced_config/parameter_reference.md#UAVCAN_SUB_MAG), and [UAVCAN_SUB_BARO](../advanced_config/parameter_reference.md#UAVCAN_SUB_BARO). - The parameters [SENS_GNSS0_OFFX](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFX), [SENS_GNSS0_OFFY](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFY) and [SENS_GNSS0_OFFZ](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFZ) can be set to account for the offset of the ARK RTK GPS from the vehicles centre of gravity. diff --git a/docs/zh/dronecan/ark_rtk_gps_l1_l2.md b/docs/zh/dronecan/ark_rtk_gps_l1_l2.md index 23adc0238ea..bc29385af74 100644 --- a/docs/zh/dronecan/ark_rtk_gps_l1_l2.md +++ b/docs/zh/dronecan/ark_rtk_gps_l1_l2.md @@ -83,7 +83,6 @@ GPS data should arrive at 10Hz. You need to set necessary [DroneCAN](index.md) parameters and define offsets if the sensor is not centred within the vehicle: - Enable GPS yaw fusion by setting bit 3 of [EKF2_GPS_CTRL](../advanced_config/parameter_reference.md#EKF2_GPS_CTRL) to true. -- Enable GPS blending to ensure the heading is always published by setting [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) to 7 (all three bits checked). - Enable [UAVCAN_SUB_GPS](../advanced_config/parameter_reference.md#UAVCAN_SUB_GPS), [UAVCAN_SUB_MAG](../advanced_config/parameter_reference.md#UAVCAN_SUB_MAG), and [UAVCAN_SUB_BARO](../advanced_config/parameter_reference.md#UAVCAN_SUB_BARO). - The parameters [SENS_GNSS0_OFFX](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFX), [SENS_GNSS0_OFFY](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFY) and [SENS_GNSS0_OFFZ](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFZ) can be set to account for the offset of the ARK RTK GPS L1 L5 from the vehicles centre of gravity. diff --git a/docs/zh/dronecan/ark_x20_rtk_gps.md b/docs/zh/dronecan/ark_x20_rtk_gps.md index 7ba2cf7814f..6e77f792928 100644 --- a/docs/zh/dronecan/ark_x20_rtk_gps.md +++ b/docs/zh/dronecan/ark_x20_rtk_gps.md @@ -86,7 +86,6 @@ GPS data should arrive at 10Hz. You need to set necessary [DroneCAN](index.md) parameters and define offsets if the sensor is not centred within the vehicle: - Enable GPS yaw fusion by setting bit 3 of [EKF2_GPS_CTRL](../advanced_config/parameter_reference.md#EKF2_GPS_CTRL) to true. -- Enable GPS blending to ensure the heading is always published by setting [SENS_GNSS_MASK](../advanced_config/parameter_reference.md#SENS_GNSS_MASK) to 7 (all three bits checked). - Enable [UAVCAN_SUB_GPS](../advanced_config/parameter_reference.md#UAVCAN_SUB_GPS), [UAVCAN_SUB_MAG](../advanced_config/parameter_reference.md#UAVCAN_SUB_MAG), and [UAVCAN_SUB_BARO](../advanced_config/parameter_reference.md#UAVCAN_SUB_BARO). - The parameters [SENS_GNSS0_OFFX](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFX), [SENS_GNSS0_OFFY](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFY) and [SENS_GNSS0_OFFZ](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFZ) can be set to account for the offset of the ARK X20 RTK GPS from the vehicles centre of gravity. diff --git a/docs/zh/flight_modes/return.md b/docs/zh/flight_modes/return.md index 76b992cc254..f97a80d12f9 100644 --- a/docs/zh/flight_modes/return.md +++ b/docs/zh/flight_modes/return.md @@ -115,7 +115,7 @@ The behaviour is fairly complex because it depends on the flight mode, and wheth ::: :::warning -This return type does have [geofence awareness](#geofence_awareness) (at any stage). +This return type does not have [geofence awareness](#geofence_awareness) (at any stage). ::: Mission _with_ landing pattern: @@ -255,8 +255,10 @@ The figures below show an exclusion zone and an inclusion zone. ### Geofence Limitations -- Geofence awareness currently supports a maximum of 99 polygon vertices in total (circles count as 8 vertices each). - If this limit is exceeded, the autopilot falls back to a direct path as described above. +- The size of geofence that can be handled is limited by [GF_AVOID_NODES](../advanced_config/parameter_reference.md#GF_AVOID_NODES) (default 100, maximum 200, reboot required). + Each circle counts as 8 nodes, and each polygon counts as its number of vertices plus extra nodes for sharp corners. + If the geofence needs more nodes than configured, the autopilot falls back to a direct path as described above. + Setting the parameter to 0 disables geofence awareness in Return entirely. - The autopilot does not check at upload time whether every part of the allowed area is still reachable once the [safety margin](#shortest-path-calculation) has been applied. A region can be "cut off" by the margin — for example where several exclusion zones overlap — without any error being reported when the geofence is uploaded. The error is only reported when a return is triggered and no feasible path can be found, at which point the vehicle falls back to flying directly to the destination. @@ -267,6 +269,14 @@ The figures below show an exclusion zone and an inclusion zone. It is derived from [NAV_LOITER_RAD](../advanced_config/parameter_reference.md#NAV_LOITER_RAD) for fixed-wing and VTOL vehicles, and from twice [NAV_ACC_RAD](../advanced_config/parameter_reference.md#NAV_ACC_RAD) for multicopters. It is not directly configurable. +### Geofence Awareness Messages + +The following messages are reported to the ground station and stored in the flight log, and can help you understand how a return was flown: + +- `Return: avoiding geofence` (info): The return started on a geofence-aware path. +- `Return: no geofence avoidance path; flying directly` (critical): The return started, but no feasible geofence-aware path was found, so the vehicle flies directly to the destination. +- `Geofence too large for Return avoidance (needs N of M nodes), Return will fly directly` (warning): Reported when the geofence is uploaded or the safety margin changes, if the geofence needs more nodes than [GF_AVOID_NODES](../advanced_config/parameter_reference.md#GF_AVOID_NODES) allows. + ## 悬停/降落在目的地 For most [return types](#return_types) a vehicle will ascend to a _minimum safe altitude_ before returning (unless already above that altitude), in order to avoid any obstacles between it and the destination. diff --git a/docs/zh/flight_modes_fw/mission.md b/docs/zh/flight_modes_fw/mission.md index 9e8b520cdb7..86116a9c720 100644 --- a/docs/zh/flight_modes_fw/mission.md +++ b/docs/zh/flight_modes_fw/mission.md @@ -156,6 +156,8 @@ Mission Items: - [MAV_CMD_DO_JUMP](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_JUMP) - _Param1_ (sequence number) must refer to an earlier mission item. A mission is rejected if a jump targets itself or a later item, even if its repeat count is 0. + - _Param2_ (repeat count) must be from 0 to 65535. + A mission with a negative or larger repeat count is rejected. - [MAV_CMD_NAV_ROI](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_ROI) - [MAV_CMD_DO_SET_ROI](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI) - [MAV_CMD_DO_SET_ROI_LOCATION](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI_LOCATION) @@ -328,6 +330,10 @@ Flaring consists of a switch from altitude tracking to a shallow sink rate setpo The flaring altitude is calculated during the final approach via "time-to-impact" ([FW_LND_FL_TIME](#FW_LND_FL_TIME)) and the approach descent rate. An additional safety parameter [FW_LND_FLALT](#FW_LND_FLALT) sets the minimum altitude at which the vehicle will flare (if the time based altitude is too low to allow a safe flare maneuver). +The flare can be disabled by setting either [FW_LND_FL_TIME](#FW_LND_FL_TIME) or [FW_LND_FLALT](#FW_LND_FLALT) to -1. +The vehicle then keeps tracking the landing slope at the landing airspeed ([FW_LND_AIRSPD](../advanced_config/parameter_reference.md#FW_LND_AIRSPD), or [FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN) if not set) until touchdown. +In this case also set [FW_LND_USETER](#FW_LND_USETER) to `0`, otherwise the landing may abort just before touchdown when the distance sensor stops giving valid readings close to the ground. + If belly landing, the vehicle will continue in the flaring state until touchdown, land detection, and subsequent disarm. For runway landings, [FW_LND_TD_TIME](#FW_LND_TD_TIME) enables setting the time post flare start to pitch down the nose (e.g. consider tricycle gear) onto the runway ([RWTO_PSP](#RWTO_PSP)) and avoid bouncing. This time roughly corresponds to the touchdown post flare, and should be tuned for a given airframe during test flights only after the flare has been tuned. The parameters that affect flaring are listed below. diff --git a/docs/zh/flight_modes_mc/mission.md b/docs/zh/flight_modes_mc/mission.md index b9a9d69ddde..81058d0ffa0 100644 --- a/docs/zh/flight_modes_mc/mission.md +++ b/docs/zh/flight_modes_mc/mission.md @@ -158,6 +158,8 @@ Mission Items: - [MAV_CMD_DO_JUMP](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_JUMP) - _Param1_ (sequence number) must refer to an earlier mission item. A mission is rejected if a jump targets itself or a later item, even if its repeat count is 0. + - _Param2_ (repeat count) must be from 0 to 65535. + A mission with a negative or larger repeat count is rejected. - [MAV_CMD_NAV_ROI](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_ROI) - [MAV_CMD_DO_SET_ROI](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI) - [MAV_CMD_DO_SET_ROI_LOCATION](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI_LOCATION) diff --git a/docs/zh/flight_modes_rover/index.md b/docs/zh/flight_modes_rover/index.md index c2fdedb2bbd..a679f706bc6 100644 --- a/docs/zh/flight_modes_rover/index.md +++ b/docs/zh/flight_modes_rover/index.md @@ -26,3 +26,14 @@ Selecting any other mode than those listed below will either stop the rover or c | ------------------------------- | --------------------------------------------------------------------------------------- | | [Mission](auto.md#mission-mode) | Automatic mode that causes the vehicle to execute a predefined mission. | | [Return](auto.md#return-mode) | Automatic mode that returns the vehicle to the launch position. | + +## Failsafe Fallback Sequence + +If a rover loses navigation while in an autonomous or semi-autonomous mode that relies on it, such as losing GNSS while in **Position** mode, PX4 will fall back to the mode that maintains the most control given the (remaining) available sensor information. + +The failure cascade sequence with a manual controller available is: **Position -> Stabilized -> Acro -> Manual** + +If manual control input is not available, the fallback cascade continues to: **Hold -> RTL -> Disarm** + +Note that rovers will not use unsupported multicopter modes, such as Altitude or Descend. +If the failsafe system attempts to force the rover into an unsupported `Descend` state, the rover will safely bypass termination and automatically fall back to the action defined by the `COM_POS_FS_ACT` parameter. diff --git a/docs/zh/flight_stack/controller_diagrams.md b/docs/zh/flight_stack/controller_diagrams.md index 8b8b7e39d85..74c8567dce5 100644 --- a/docs/zh/flight_stack/controller_diagrams.md +++ b/docs/zh/flight_stack/controller_diagrams.md @@ -131,11 +131,16 @@ $$E_T = \frac{1}{2} m V_T^2 + m g h$$ $$\dot{E_T} = m V_T \dot{V_T} + m g \dot{h}$$ -通过上式,我们可以定义能量变化率: +Dividing by the mass gives the specific (per unit mass) total energy rate, in m²/s³: -$$\dot{E} = \frac{\dot{E_T}}{mgV_T} = \frac{\dot{V_T}}{g} + \frac{\dot{h}}{V_T} = \frac{\dot{V_T}}{g} + sin(\gamma)$$ +$$\dot{E_s} = \frac{\dot{E_T}}{m} = V_T \dot{V_T} + g \dot{h}$$ -其中$\gamma{}$是飞行器纵平面的速度角。当$\gamma{}$很小时,我们可以近似认为sin($\gamma{}$)=$\gamma{}$,所以可以得到下式: +Dividing it further by $g V_T{}$ gives the normalised energy rate, which is dimensionless: + +$$\dot{E} = \frac{\dot{E_s}}{g V_T} = \frac{\dot{V_T}}{g} + \frac{\dot{h}}{V_T} = \frac{\dot{V_T}}{g} + sin(\gamma)$$ + +where $\gamma{}$ is the flight path angle. +当$\gamma{}$很小时,我们可以近似认为sin($\gamma{}$)=$\gamma{}$,所以可以得到下式: $$\dot{E} \approx \frac{\dot{V_T}}{g} + \gamma$$ @@ -149,9 +154,41 @@ $$\Delta T = mg(\frac{\dot{V_T}}{g} + \gamma)$$ 正如可以看到的,$\Delta T{}$ 成正比 $\dot{E}{}$,因此推力设置值应该用于控制总能量。 -另一方面,对升降舵的控制是能量守恒的,因此用来交换动力能源,反之亦然。控制升降舵可以将势能转换为动能,反之亦然。为此,特定的能量平衡变化率定义为: +Elevator control on the other hand is energy conservative, and is thus used for exchanging potential energy for kinetic energy and vice versa. +To this end, the specific energy balance rate is defined as: -$$\dot{B} = \gamma - \frac{\dot{V_T}}{g}$$ +$$\dot{B_s} = g \dot{h} - V_T \dot{V_T}$$ + +and its normalised form as: + +$$\dot{B} = \frac{\dot{B_s}}{g V_T} \approx \gamma - \frac{\dot{V_T}}{g}$$ + +TECS computes the energy rates in their specific form (m²/s³). +It only converts the energy balance rate to its normalised form, an equivalent flight path angle, when forming the pitch setpoint. + +#### Speed and Altitude Weighting + +[FW_T_SPDWEIGHT](../advanced_config/parameter_reference.md#FW_T_SPDWEIGHT) sets how the pitch loop weights speed errors against height errors in the energy balance. +A value of 0 controls height only, which is also used when flying without an airspeed sensor. +A value of 2 controls speed only, which is intended for gliders. +The default of 1 weights both equally. + +Pitch only trades altitude for speed up to the trim airspeed ([FW_AIRSPD_TRIM](../advanced_config/parameter_reference.md#FW_AIRSPD_TRIM)): accelerating beyond trim is the throttle's job. +With an airspeed setpoint above trim, what the pitch loop does therefore depends on the measured airspeed: + +![Pitch and throttle roles along the measured airspeed: below trim, pitch trades height for speed aiming for trim; between trim and the airspeed setpoint, pitch holds height only and the throttle accelerates; above the setpoint, pitch trades speed for height and the throttle is reduced](../../assets/diagrams/tecs_speed_regions.svg) + +- Below trim, pitch trades height for speed, but only aims for trim airspeed. +- Between trim and the setpoint, pitch ignores airspeed and holds height only. + It neither descends to gain speed nor pitches up to turn the throttle's acceleration into height. + If the throttle saturates at [FW_THR_MAX](../advanced_config/parameter_reference.md#FW_THR_MAX), the vehicle holds its altitude and settles at a lower airspeed than commanded. +- Above the setpoint, pitch trades speed for height to correct the overspeed. + +With an airspeed setpoint at or below trim there is no middle region, and pitch and throttle share speed control as weighted by `FW_T_SPDWEIGHT`. + +These regions apply up to a speed weight of 1 and are faded out as the speed weight goes from 1 to 2, so with a weight of 2 pitch alone tracks the full airspeed setpoint. +Gliders, which have no throttle to accelerate with, should therefore use `FW_T_SPDWEIGHT` = 2. +The speed weight is also raised towards 2 automatically during underspeed recovery and fast descend, which therefore still use pitch to reach their airspeed setpoint. ## 固定翼姿态控制器 diff --git a/docs/zh/gps_compass/index.md b/docs/zh/gps_compass/index.md index 97e1d469d11..ea9c584feb5 100644 --- a/docs/zh/gps_compass/index.md +++ b/docs/zh/gps_compass/index.md @@ -159,8 +159,8 @@ The following steps show how to configure a secondary GPS on the `GPS 2` port in After setting up the second GPS port: -1. Configure the ECL/EKF2 estimator to blend data from both GPS systems. - For detailed instructions see: [Using the ECL EKF > Dual Receivers](../advanced_config/tuning_the_ecl_ekf.md#dual-receivers). +1. Optionally set which receiver is preferred using [SENS_GNSS_PRIME](../advanced_config/parameter_reference.md#SENS_GNSS_PRIME). + For more information see: [Using the ECL EKF > Dual Receivers](../advanced_config/tuning_the_ecl_ekf.md#dual-receivers). ### DroneCAN GNSS Configuration diff --git a/docs/zh/mavlink/standard_modes.md b/docs/zh/mavlink/standard_modes.md index e493dcbbd5d..5b47d3091c8 100644 --- a/docs/zh/mavlink/standard_modes.md +++ b/docs/zh/mavlink/standard_modes.md @@ -118,12 +118,9 @@ PX4 supports these commands for changing modes on some vehicle types: - [MAV_CMD_NAV_TAKEOFF](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_TAKEOFF) — Takeoff mode - [MAV_CMD_NAV_RETURN_TO_LAUNCH](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_RETURN_TO_LAUNCH) — Return mode - [MAV_CMD_NAV_LAND](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_LAND) — Land mode -- [MAV_CMD_DO_FOLLOW](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_FOLLOW) — MC Follow mode -- [MAV_CMD_DO_FOLLOW_REPOSITION](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_FOLLOW_REPOSITION) — Follow mode (from new position) - [MAV_CMD_DO_ORBIT](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_ORBIT) — MC Orbit mode - [MAV_CMD_NAV_VTOL_TAKEOFF](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_VTOL_TAKEOFF) — VTOL specific takeoff mode - [MAV_CMD_DO_REPOSITION](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_REPOSITION) -- [MAV_CMD_DO_PAUSE_CONTINUE](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_PAUSE_CONTINUE) — Pauses a mission by putting the vehicle into Hold/Loiter - [MAV_CMD_MISSION_START](https://mavlink.io/en/messages/common.html#MAV_CMD_MISSION_START) — Starts a mission. Note that these commands predate "standard modes" and are mapped to vehicle-specific custom modes. diff --git a/docs/zh/middleware/uorb.md b/docs/zh/middleware/uorb.md index bf2fe1bf4ed..2ed75d7ca19 100644 --- a/docs/zh/middleware/uorb.md +++ b/docs/zh/middleware/uorb.md @@ -187,6 +187,9 @@ A subscriber will then have to choose to which instance to subscribe to using `o Make sure not to mix `orb_advertise_multi` and `orb_advertise` for the same topic! +Destroying a `uORB::PublicationMulti` frees its instance for the next publisher. +Destroying a `uORB::Publication` leaves the topic advertised with its last sample, because other publishers may share it. + The full API is documented in [platforms/common/uORB/uORBManager.hpp](https://github.com/PX4/PX4-Autopilot/blob/main/platforms/common/uORB/uORBManager.hpp). ## 主题列表和监听(Listener) diff --git a/docs/zh/msg_docs/AirspeedValidated.md b/docs/zh/msg_docs/AirspeedValidated.md index ba7c9fb8df6..45980a5fc3a 100644 --- a/docs/zh/msg_docs/AirspeedValidated.md +++ b/docs/zh/msg_docs/AirspeedValidated.md @@ -24,7 +24,7 @@ Used by controllers, estimators and for airspeed reporting to operator. | calibraded_airspeed_synth_m_s | `float32` | 米/秒 | | Synthetic airspeed (Invalid: NaN) | | airspeed_derivative_filtered | `float32` | m/s^2 | | Filtered indicated airspeed derivative | | throttle_filtered | `float32` | | | Filtered fixed-wing throttle | -| pitch_filtered | `float32` | rad | | Filtered pitch | +| pitch_filtered | `float32` | rad | | Filtered absolute pitch angle of the fixed-wing body x-axis above the horizon | ## Enums @@ -80,7 +80,7 @@ float32 calibrated_ground_minus_wind_m_s # [m/s] [@invalid NaN] CAS calculated f float32 calibraded_airspeed_synth_m_s # [m/s] [@invalid NaN] Synthetic airspeed float32 airspeed_derivative_filtered # [m/s^2] Filtered indicated airspeed derivative float32 throttle_filtered # [-] Filtered fixed-wing throttle -float32 pitch_filtered # [rad] Filtered pitch +float32 pitch_filtered # [rad] Filtered absolute pitch angle of the fixed-wing body x-axis above the horizon ``` ::: diff --git a/docs/zh/msg_docs/AuxGlobalPosition.md b/docs/zh/msg_docs/AuxGlobalPosition.md index c4a14c2ea1e..ed0a43df8a3 100644 --- a/docs/zh/msg_docs/AuxGlobalPosition.md +++ b/docs/zh/msg_docs/AuxGlobalPosition.md @@ -21,9 +21,9 @@ pseudolites, visual navigation, or other positioning system. | source | `uint8` | | [SOURCE](#SOURCE) | Source type of the position data (based on mavlink::GLOBAL_POSITION_SRC) | | lat | `float64` | deg | | Latitude in WGS84 | | lon | `float64` | deg | | Longitude in WGS84 | -| alt | `float32` | 米 | | Altitude above mean sea level (AMSL) (Invalid: NaN) | -| eph | `float32` | 米 | | Std dev of horizontal position, lower bounded by NOISE param (Invalid: NaN) | -| epv | `float32` | 米 | | Std dev of vertical position, lower bounded by NOISE param (Invalid: NaN) | +| alt | `float32` | m | | Altitude above mean sea level (AMSL) (Invalid: NaN) | +| eph | `float32` | m | | Std dev of horizontal position, lower bounded by NOISE param (Invalid: NaN) | +| epv | `float32` | m | | Std dev of vertical position, lower bounded by NOISE param (Invalid: NaN) | | lat_lon_reset_counter | `uint8` | | | Counter for reset events on horizontal position coordinates | ## Enums diff --git a/docs/zh/msg_docs/DetectAndAvoid.md b/docs/zh/msg_docs/DetectAndAvoid.md index 0b09f2f9e6b..2d2ea3e210c 100644 --- a/docs/zh/msg_docs/DetectAndAvoid.md +++ b/docs/zh/msg_docs/DetectAndAvoid.md @@ -27,7 +27,7 @@ Used by: logging and tests | unique_id | `uint64` | | | Encoded traffic identifier selected in priority order: ICAO address, ADS-B callsign, then reduced UAS ID tail bytes | | unique_id_encoding | `uint8` | | | Namespace used to decode `unique_id` | | conflict_level | `uint8` | | | Conflict level calculated for this traffic aircraft | -| aircraft_dist | `float32` | 米 | | Current 3D point-to-point range between ownship and the traffic aircraft | +| aircraft_dist | `float32` | m | | Current 3D point-to-point range between ownship and the traffic aircraft | | aircraft_dist_hor | `float32` | m [NED] | | Horizontal separation metric. In Crosstrack mode this is the signed crosstrack distance when available, otherwise direct horizontal range | | aircraft_dist_vert | `float32` | m [NED] | | Vertical separation between ownship (the current vehicle) and the traffic aircraft | | expected_min_dist_time | `float32` | s | | Conservative collision-time estimate from current 3D separation and the sum of ownship and traffic speed magnitudes | diff --git a/docs/zh/msg_docs/DetectAndAvoidMostUrgent.md b/docs/zh/msg_docs/DetectAndAvoidMostUrgent.md index 0ad3c8523f9..64fac6f5f2b 100644 --- a/docs/zh/msg_docs/DetectAndAvoidMostUrgent.md +++ b/docs/zh/msg_docs/DetectAndAvoidMostUrgent.md @@ -29,7 +29,7 @@ Used by: `commander` DAA arming checks, logging, and tests | unique_id_encoding | `uint8` | | | Namespace used to decode `unique_id` | | has_action | `bool` | | | True if the configured DAA response for this most urgent conflict is stronger than Warn only | | conflict_level | `uint8` | | | Conflict level of the current most urgent active conflict | -| aircraft_dist | `float32` | 米 | | Approximate 3D range to the most urgent traffic aircraft (9999 when empty) | +| aircraft_dist | `float32` | m | | Approximate 3D range to the most urgent traffic aircraft (9999 when empty) | ## Constants diff --git a/docs/zh/msg_docs/FailsafeFlags.md b/docs/zh/msg_docs/FailsafeFlags.md index 2d3969e9e9e..4a30a859489 100644 --- a/docs/zh/msg_docs/FailsafeFlags.md +++ b/docs/zh/msg_docs/FailsafeFlags.md @@ -30,6 +30,7 @@ The flag comments are used as label for the failsafe state machine simulation | mode_req_prevent_arming | `uint32` | | | if set, cannot arm while in this mode | | mode_req_manual_control | `uint32` | | | | | mode_req_other | `uint32` | | | other requirements, not covered above (for external modes) | +| mode_not_supported | `uint32` | | | if set, mode is not supported by the current vehicle architecture | | angular_velocity_invalid | `bool` | | | Angular velocity invalid | | attitude_invalid | `bool` | | | Attitude invalid | | local_altitude_invalid | `bool` | | | Local altitude invalid | @@ -93,7 +94,7 @@ uint32 mode_req_wind_and_flight_time_compliance # if set, mode cannot be entered uint32 mode_req_prevent_arming # if set, cannot arm while in this mode uint32 mode_req_manual_control uint32 mode_req_other # other requirements, not covered above (for external modes) - +uint32 mode_not_supported # if set, mode is not supported by the current vehicle architecture # Mode requirements bool angular_velocity_invalid # Angular velocity invalid diff --git a/docs/zh/msg_docs/FiducialMarkerPosReport.md b/docs/zh/msg_docs/FiducialMarkerPosReport.md index fe87a16840e..c877fa2e4d4 100644 --- a/docs/zh/msg_docs/FiducialMarkerPosReport.md +++ b/docs/zh/msg_docs/FiducialMarkerPosReport.md @@ -19,7 +19,7 @@ The measurement is expressed in an arbitrary sensor frame; the quaternion q rota | --------------------------------------------------------------------------------- | ------------ | ---------------------------------------------------------------- | ---------- | -------------------------------------------------------------------------------------- | | timestamp | `uint64` | us | | Time since system start | | timestamp_sample | `uint64` | us | | Timestamp of the raw observation | -| rel_pos | `float32[3]` | 米 | | Target position relative to vehicle, expressed in the frame defined by q | +| rel_pos | `float32[3]` | m | | Target position relative to vehicle, expressed in the frame defined by q | | cov_rel_pos | `float32[3]` | m^2 | | Target position variance, expressed in the frame defined by q | | q | `float32[4]` | | | Quaternion rotation from the rel_pos frame to the NED earth frame | diff --git a/docs/zh/msg_docs/FixedWingLateralGuidanceStatus.md b/docs/zh/msg_docs/FixedWingLateralGuidanceStatus.md index 0a8e4e35e9f..edb2ce37e5c 100644 --- a/docs/zh/msg_docs/FixedWingLateralGuidanceStatus.md +++ b/docs/zh/msg_docs/FixedWingLateralGuidanceStatus.md @@ -17,9 +17,9 @@ Fixed Wing Lateral Guidance Status message. Published by fw_mode_manager module | lateral_acceleration_ff | `float32` | FRD | | lateral acceleration demand only for maintaining curvature | | bearing_feas | `float32` | | [0 : 1] | bearing feasibility | | bearing_feas_on_track | `float32` | | [0 : 1] | on-track bearing feasibility | -| signed_track_error | `float32` | 米 | | signed track error | -| track_error_bound | `float32` | 米 | | track error bound | -| switch_distance | `float32` | 米 | [0 : INF] | distance from the current waypoint at which the navigator should advance to the next one (turn anticipation). If below NAV_ACC_RAD, the parameter value is used instead. (Invalid: NaN) | +| signed_track_error | `float32` | m | | signed track error | +| track_error_bound | `float32` | m | | track error bound | +| switch_distance | `float32` | m | [0 : INF] | distance from the current waypoint at which the navigator should advance to the next one (turn anticipation). If below NAV_ACC_RAD, the parameter value is used instead. (Invalid: NaN) | | adapted_period | `float32` | s | | adapted period (if auto-tuning enabled) | | wind_est_valid | `uint8` | boolean | | true = wind estimate is valid and/or being used by controller (also indicates if wind estimate usage is disabled despite being valid) | diff --git a/docs/zh/msg_docs/FixedWingLongitudinalSetpoint.md b/docs/zh/msg_docs/FixedWingLongitudinalSetpoint.md index 08505056412..5cc1f377f10 100644 --- a/docs/zh/msg_docs/FixedWingLongitudinalSetpoint.md +++ b/docs/zh/msg_docs/FixedWingLongitudinalSetpoint.md @@ -9,19 +9,20 @@ Fixed Wing Longitudinal Setpoint message. Used by the fw_lateral_longitudinal_control module If pitch_direct and throttle_direct are not both finite, then the controller relies on altitude/height_rate and equivalent_airspeed to control vertical motion. If both altitude and height_rate are NAN, the controller maintains the current altitude. +Pitch angles are absolute: the angle of the fixed-wing body x-axis above the horizon, without FW_PSP_OFF applied. **TOPICS:** fixed_wing_longitudinal_setpoint ## Fields -| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | -| ---------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | us | | Time since system start | -| altitude | `float32` | 米 | | Altitude setpoint AMSL, not controlled directly if NAN or if height_rate is finite | -| height_rate | `float32` | m/s [ENU] | | Scalar height rate setpoint. NAN if not controlled directly | -| equivalent_airspeed | `float32` | 米/秒 | [0 : inf] | Scalar equivalent airspeed setpoint. NAN if system default should be used | -| pitch_direct | `float32` | rad [FRD] | [-pi : pi] | NAN if not controlled, overrides total energy controller | -| throttle_direct | `float32` | norm | [0 : 1] | NAN if not controlled, overrides total energy controller | +| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | +| ---------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| altitude | `float32` | m | | Altitude setpoint AMSL, not controlled directly if NAN or if height_rate is finite | +| height_rate | `float32` | m/s [ENU] | | Scalar height rate setpoint. NAN if not controlled directly | +| equivalent_airspeed | `float32` | 米/秒 | [0 : inf] | Scalar equivalent airspeed setpoint. NAN if system default should be used | +| pitch_direct | `float32` | rad | [-pi/2 : pi/2] | Absolute pitch angle setpoint. NAN if not controlled, overrides total energy controller | +| throttle_direct | `float32` | norm | [0 : 1] | NAN if not controlled, overrides total energy controller | ## Constants @@ -42,6 +43,7 @@ Click here to see original file # Used by the fw_lateral_longitudinal_control module # If pitch_direct and throttle_direct are not both finite, then the controller relies on altitude/height_rate and equivalent_airspeed to control vertical motion. # If both altitude and height_rate are NAN, the controller maintains the current altitude. +# Pitch angles are absolute: the angle of the fixed-wing body x-axis above the horizon, without FW_PSP_OFF applied. uint32 MESSAGE_VERSION = 0 @@ -50,7 +52,7 @@ uint64 timestamp # [us] Time since system start float32 altitude # [m] Altitude setpoint AMSL, not controlled directly if NAN or if height_rate is finite float32 height_rate # [m/s] [@frame ENU] Scalar height rate setpoint. NAN if not controlled directly float32 equivalent_airspeed # [m/s] [@range 0, inf] Scalar equivalent airspeed setpoint. NAN if system default should be used -float32 pitch_direct # [rad] [@range -pi, pi] [@frame FRD] NAN if not controlled, overrides total energy controller +float32 pitch_direct # [rad] [@range -pi/2, pi/2] Absolute pitch angle setpoint. NAN if not controlled, overrides total energy controller float32 throttle_direct # [norm] [@range 0,1] NAN if not controlled, overrides total energy controller ``` diff --git a/docs/zh/msg_docs/FollowTargetStatus.md b/docs/zh/msg_docs/FollowTargetStatus.md index fa63aad0c6a..5ab6ddadc2f 100644 --- a/docs/zh/msg_docs/FollowTargetStatus.md +++ b/docs/zh/msg_docs/FollowTargetStatus.md @@ -15,7 +15,7 @@ pageClass: is-wide-page | follow_angle | `float32` | rad | | Current follow angle setting | | orbit_angle_setpoint | `float32` | rad | | Current orbit angle setpoint from the smooth trajectory generator | | angular_rate_setpoint | `float32` | rad/s | | Angular rate commanded from Jerk-limited Orbit Angle trajectory for Orbit Angle | -| desired_position_raw | `float32[3]` | 米 | | Raw 'idealistic' desired drone position if a drone could teleport from place to places | +| desired_position_raw | `float32[3]` | m | | Raw 'idealistic' desired drone position if a drone could teleport from place to places | | in_emergency_ascent | `bool` | bool | | True when doing emergency ascent (when distance to ground is below safety altitude) | | gimbal_pitch | `float32` | rad | | Gimbal pitch commanded to track target in the center of the frame | diff --git a/docs/zh/msg_docs/LandingTargetPose.md b/docs/zh/msg_docs/LandingTargetPose.md index cfe23683e45..f5b9119ce61 100644 --- a/docs/zh/msg_docs/LandingTargetPose.md +++ b/docs/zh/msg_docs/LandingTargetPose.md @@ -17,9 +17,9 @@ Relative position of precision land target in navigation (body fixed, north alig | rel_pos_valid | `bool` | | | Flag showing whether relative position is valid | | rel_vel_valid | `bool` | | | Flag showing whether relative velocity is valid | | rel_vel_ekf2_valid | `bool` | | | Flag showing whether relative velocity is valid for EKF2 auxiliary velocity aiding | -| x_rel | `float32` | 米 | | X/north position of target, relative to vehicle (navigation frame) | -| y_rel | `float32` | 米 | | Y/east position of target, relative to vehicle (navigation frame) | -| z_rel | `float32` | 米 | | Z/down position of target, relative to vehicle (navigation frame) | +| x_rel | `float32` | m | | X/north position of target, relative to vehicle (navigation frame) | +| y_rel | `float32` | m | | Y/east position of target, relative to vehicle (navigation frame) | +| z_rel | `float32` | m | | Z/down position of target, relative to vehicle (navigation frame) | | vx_rel | `float32` | 米/秒 | | X/north velocity of target, relative to vehicle (navigation frame) | | vy_rel | `float32` | 米/秒 | | Y/east velocity of target, relative to vehicle (navigation frame) | | vz_rel | `float32` | 米/秒 | | Z/down velocity of target, relative to vehicle (navigation frame) | @@ -30,9 +30,9 @@ Relative position of precision land target in navigation (body fixed, north alig | cov_vy_rel | `float32` | (m/s)^2 | | Y/east velocity variance | | cov_vz_rel | `float32` | (m/s)^2 | | Z/down velocity variance | | abs_pos_valid | `bool` | | | Flag showing whether absolute position is valid | -| x_abs | `float32` | 米 | | X/north position of target, relative to origin (navigation frame) | -| y_abs | `float32` | 米 | | Y/east position of target, relative to origin (navigation frame) | -| z_abs | `float32` | 米 | | Z/down position of target, relative to origin (navigation frame) | +| x_abs | `float32` | m | | X/north position of target, relative to origin (navigation frame) | +| y_abs | `float32` | m | | Y/east position of target, relative to origin (navigation frame) | +| z_abs | `float32` | m | | Z/down position of target, relative to origin (navigation frame) | ## Source Message diff --git a/docs/zh/msg_docs/LongitudinalControlConfiguration.md b/docs/zh/msg_docs/LongitudinalControlConfiguration.md index 78feae8beeb..6d636c15f4f 100644 --- a/docs/zh/msg_docs/LongitudinalControlConfiguration.md +++ b/docs/zh/msg_docs/LongitudinalControlConfiguration.md @@ -8,23 +8,24 @@ Fixed Wing Longitudinal Control Configuration message. Used by the fw_lateral_longitudinal_control module and TECS to constrain FixedWingLongitudinalSetpoint messages and configure the resultant setpoints. +Pitch angles are absolute: the angle of the fixed-wing body x-axis above the horizon, without FW_PSP_OFF applied. **TOPICS:** longitudinal_control_configuration ## Fields -| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | -| ---------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | us | | Time since system start | -| pitch_min | `float32` | rad | [-pi : pi] | Defaults to FW_P_LIM_MIN if NAN. | -| pitch_max | `float32` | rad | [-pi : pi] | Defaults to FW_P_LIM_MAX if NAN. | -| throttle_min | `float32` | norm | [0 : 1] | Defaults to FW_THR_MIN if NAN. | -| throttle_max | `float32` | norm | [0 : 1] | Defaults to FW_THR_MAX if NAN. | -| climb_rate_target | `float32` | 米/秒 | | Target climbrate to change altitude. Defaults to FW_T_CLMB_R_SP if NAN. Not used if height_rate is directly set in FixedWingLongitudinalSetpoint. | -| sink_rate_target | `float32` | 米/秒 | | Target sinkrate to change altitude. Defaults to FW_T_SINK_R_SP if NAN. Not used if height_rate is directly set in FixedWingLongitudinalSetpoint. | -| speed_weight | `float32` | | [0 : 2] | 0=pitch controls altitude only, 2=pitch controls airspeed only | -| enforce_low_height_condition | `bool` | | | If true, the altitude controller is configured with an alternative timeconstant for tighter altitude tracking | -| disable_underspeed_protection | `bool` | | | If true, underspeed handling is disabled in the altitude controller | +| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | +| ---------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| pitch_min | `float32` | rad | [-pi/2 : pi/2] | Minimum absolute pitch angle setpoint. Defaults to FW_P_LIM_MIN if NAN. | +| pitch_max | `float32` | rad | [-pi/2 : pi/2] | Maximum absolute pitch angle setpoint. Defaults to FW_P_LIM_MAX if NAN. | +| throttle_min | `float32` | norm | [0 : 1] | Defaults to FW_THR_MIN if NAN. | +| throttle_max | `float32` | norm | [0 : 1] | Defaults to FW_THR_MAX if NAN. | +| climb_rate_target | `float32` | 米/秒 | | Target climbrate to change altitude. Defaults to FW_T_CLMB_R_SP if NAN. Not used if height_rate is directly set in FixedWingLongitudinalSetpoint. | +| sink_rate_target | `float32` | 米/秒 | | Target sinkrate to change altitude. Defaults to FW_T_SINK_R_SP if NAN. Not used if height_rate is directly set in FixedWingLongitudinalSetpoint. | +| speed_weight | `float32` | | [0 : 2] | 0=pitch controls altitude only, 2=pitch controls airspeed only | +| enforce_low_height_condition | `bool` | | | If true, the altitude controller is configured with an alternative timeconstant for tighter altitude tracking | +| disable_underspeed_protection | `bool` | | | If true, underspeed handling is disabled in the altitude controller | ## Constants @@ -44,13 +45,14 @@ Click here to see original file # # Used by the fw_lateral_longitudinal_control module and TECS to constrain FixedWingLongitudinalSetpoint messages # and configure the resultant setpoints. +# Pitch angles are absolute: the angle of the fixed-wing body x-axis above the horizon, without FW_PSP_OFF applied. uint32 MESSAGE_VERSION = 0 uint64 timestamp # [us] Time since system start -float32 pitch_min # [rad] [@range -pi, pi] Defaults to FW_P_LIM_MIN if NAN. -float32 pitch_max # [rad] [@range -pi, pi] Defaults to FW_P_LIM_MAX if NAN. +float32 pitch_min # [rad] [@range -pi/2, pi/2] Minimum absolute pitch angle setpoint. Defaults to FW_P_LIM_MIN if NAN. +float32 pitch_max # [rad] [@range -pi/2, pi/2] Maximum absolute pitch angle setpoint. Defaults to FW_P_LIM_MAX if NAN. float32 throttle_min # [norm] [@range 0,1] Defaults to FW_THR_MIN if NAN. float32 throttle_max # [norm] [@range 0,1] Defaults to FW_THR_MAX if NAN. float32 climb_rate_target # [m/s] Target climbrate to change altitude. Defaults to FW_T_CLMB_R_SP if NAN. Not used if height_rate is directly set in FixedWingLongitudinalSetpoint. diff --git a/docs/zh/msg_docs/OrbitStatus.md b/docs/zh/msg_docs/OrbitStatus.md index 33742885aa4..725f49b649e 100644 --- a/docs/zh/msg_docs/OrbitStatus.md +++ b/docs/zh/msg_docs/OrbitStatus.md @@ -19,7 +19,7 @@ Subscribed by the MAVLink module and streamed to the GCS as ORBIT_EXECUTION_STAT | 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | | ---------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | timestamp | `uint64` | us | | Time since system start | -| radius | `float32` | 米 | | Radius of the orbit circle. Positive values orbit clockwise, negative values orbit counter-clockwise. | +| radius | `float32` | m | | Radius of the orbit circle. Positive values orbit clockwise, negative values orbit counter-clockwise. | | frame | `uint8` | | [FRAME](#FRAME) | The coordinate system of the fields: x, y, z | | x | `float64` | | | X coordinate of center point. Coordinate system depends on frame field: `local = x position in meters * 1e4`, `global = latitude in degrees * 1e7`. | | y | `float64` | | | Y coordinate of center point. Coordinate system depends on frame field: `local = y position in meters * 1e4`, `global = longitude in degrees * 1e7`. | diff --git a/docs/zh/msg_docs/PositionControllerLandingStatus.md b/docs/zh/msg_docs/PositionControllerLandingStatus.md index a3d8e210aa1..3e9171b08eb 100644 --- a/docs/zh/msg_docs/PositionControllerLandingStatus.md +++ b/docs/zh/msg_docs/PositionControllerLandingStatus.md @@ -11,7 +11,7 @@ pageClass: is-wide-page | 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | | ----------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------- | | timestamp | `uint64` | us | | time since system start | -| lateral_touchdown_offset | `float32` | 米 | | lateral touchdown position offset manually commanded during landing | +| lateral_touchdown_offset | `float32` | m | | lateral touchdown position offset manually commanded during landing | | flaring | `bool` | | | true if the aircraft is flaring | | abort_status | `uint8` | | | | diff --git a/docs/zh/msg_docs/PositionSetpoint.md b/docs/zh/msg_docs/PositionSetpoint.md index 3aca264b5da..afba61f1a7a 100644 --- a/docs/zh/msg_docs/PositionSetpoint.md +++ b/docs/zh/msg_docs/PositionSetpoint.md @@ -22,8 +22,8 @@ this file is only used in the position_setpoint triple as a dependency. | lon | `float64` | | | longitude, in deg | | alt | `float32` | | | altitude AMSL, in m | | yaw | `float32` | | | yaw (only in hover), in rad [-PI..PI), NaN = leave to flight task | -| loiter_radius | `float32` | 米 | [0 : INF] | loiter major axis radius | -| loiter_minor_radius | `float32` | 米 | [0 : INF] | loiter minor axis radius (used for non-circular loiter shapes) | +| loiter_radius | `float32` | m | [0 : INF] | loiter major axis radius | +| loiter_minor_radius | `float32` | m | [0 : INF] | loiter minor axis radius (used for non-circular loiter shapes) | | loiter_direction_counter_clockwise | `bool` | | | loiter direction is clockwise by default and can be changed using this field | | loiter_orientation | `float32` | rad | [-pi : pi] | orientation of the major axis with respect to true north | | loiter_pattern | `uint8` | | | loitern pattern to follow | diff --git a/docs/zh/msg_docs/PurePursuitStatus.md b/docs/zh/msg_docs/PurePursuitStatus.md index e93dd0d00bf..f1c67e42bd6 100644 --- a/docs/zh/msg_docs/PurePursuitStatus.md +++ b/docs/zh/msg_docs/PurePursuitStatus.md @@ -13,10 +13,10 @@ Pure pursuit status. | 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | | --------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | | timestamp | `uint64` | us | | Time since system start | -| lookahead_distance | `float32` | 米 | [0 : inf] | Lookahead distance of pure the pursuit controller | +| lookahead_distance | `float32` | m | [0 : inf] | Lookahead distance of pure the pursuit controller | | target_bearing | `float32` | rad [NED] | [-pi : pi] | Target bearing calculated by the pure pursuit controller | -| crosstrack_error | `float32` | 米 | [-inf (Left of the path) : inf (Right of the path)] | Shortest distance from the vehicle to the path | -| distance_to_waypoint | `float32` | 米 | [-inf : inf] | Distance from the vehicle to the current waypoint | +| crosstrack_error | `float32` | m | [-inf (Left of the path) : inf (Right of the path)] | Shortest distance from the vehicle to the path | +| distance_to_waypoint | `float32` | m | [-inf : inf] | Distance from the vehicle to the current waypoint | | bearing_to_waypoint | `float32` | rad [NED] | [-pi : pi] | Bearing towards current waypoint | ## Source Message diff --git a/docs/zh/msg_docs/RangingBeacon.md b/docs/zh/msg_docs/RangingBeacon.md index 407c40abc66..9b7aede200c 100644 --- a/docs/zh/msg_docs/RangingBeacon.md +++ b/docs/zh/msg_docs/RangingBeacon.md @@ -15,17 +15,17 @@ Ranging beacon measurement data (e.g. LoRa, UWB). | timestamp | `uint64` | us | | time since system start | | timestamp_sample | `uint64` | us | | the timestamp of the raw data | | beacon_id | `uint8` | | | | -| range | `float32` | 米 | | Range measurement | +| range | `float32` | m | | Range measurement | | lat | `float64` | deg | | Latitude | | lon | `float64` | deg | | Longitude | -| alt | `float32` | 米 | | Beacon altitude (frame defined in alt_type) | +| alt | `float32` | m | | Beacon altitude (frame defined in alt_type) | | alt_type | `uint8` | | [ALT_TYPE](#ALT_TYPE) | Altitude frame for alt field | -| hacc | `float32` | 米 | | Groundbeacon horizontal accuracy | -| vacc | `float32` | 米 | | Groundbeacon vertical accuracy | +| hacc | `float32` | m | | Groundbeacon horizontal accuracy | +| vacc | `float32` | m | | Groundbeacon vertical accuracy | | sequence_nr | `uint8` | | | | | status | `uint8` | | | | | carrier_freq | `uint16` | MHz | | Carrier frequency | -| range_accuracy | `float32` | 米 | | Range accuracy estimate | +| range_accuracy | `float32` | m | | Range accuracy estimate | ## Enums diff --git a/docs/zh/msg_docs/RcChannels.md b/docs/zh/msg_docs/RcChannels.md index 774796d39bc..e8e883492d4 100644 --- a/docs/zh/msg_docs/RcChannels.md +++ b/docs/zh/msg_docs/RcChannels.md @@ -14,47 +14,10 @@ pageClass: is-wide-page | timestamp_last_valid | `uint64` | | | Timestamp of last valid RC signal | | channels | `float32[18]` | | | Scaled to -1..1 (throttle: 0..1) | | channel_count | `uint8` | | | Number of valid channels | -| function | `int8[30]` | | | Functions mapping | | rssi | `uint8` | | | Receive signal strength index | | signal_lost | `bool` | | | Control signal lost, should be checked together with topic timeout | | frame_drop_count | `uint32` | | | Number of dropped frames | -## Constants - -| 参数名 | 类型 | 值 | 描述 | -| ---------------------------------------------------------------------------------------------------------------------------------- | ------- | -- | -- | -| FUNCTION_THROTTLE | `uint8` | 0 | | -| FUNCTION_ROLL | `uint8` | 1 | | -| FUNCTION_PITCH | `uint8` | 2 | | -| FUNCTION_YAW | `uint8` | 3 | | -| FUNCTION_RETURN | `uint8` | 4 | | -| FUNCTION_LOITER | `uint8` | 5 | | -| FUNCTION_OFFBOARD | `uint8` | 6 | | -| FUNCTION_FLAPS | `uint8` | 7 | | -| FUNCTION_AUX_1 | `uint8` | 8 | | -| FUNCTION_AUX_2 | `uint8` | 9 | | -| FUNCTION_AUX_3 | `uint8` | 10 | | -| FUNCTION_AUX_4 | `uint8` | 11 | | -| FUNCTION_AUX_5 | `uint8` | 12 | | -| FUNCTION_AUX_6 | `uint8` | 13 | | -| FUNCTION_PARAM_1 | `uint8` | 14 | | -| FUNCTION_PARAM_2 | `uint8` | 15 | | -| FUNCTION_PARAM_3_5 | `uint8` | 16 | | -| FUNCTION_KILLSWITCH | `uint8` | 17 | | -| FUNCTION_TRANSITION | `uint8` | 18 | | -| FUNCTION_GEAR | `uint8` | 19 | | -| FUNCTION_ARMSWITCH | `uint8` | 20 | | -| FUNCTION_FLTBTN_SLOT_1 | `uint8` | 21 | | -| FUNCTION_FLTBTN_SLOT_2 | `uint8` | 22 | | -| FUNCTION_FLTBTN_SLOT_3 | `uint8` | 23 | | -| FUNCTION_FLTBTN_SLOT_4 | `uint8` | 24 | | -| FUNCTION_FLTBTN_SLOT_5 | `uint8` | 25 | | -| FUNCTION_FLTBTN_SLOT_6 | `uint8` | 26 | | -| FUNCTION_ENGAGE_MAIN_MOTOR | `uint8` | 27 | | -| FUNCTION_PAYLOAD_POWER | `uint8` | 28 | | -| FUNCTION_TERMINATION | `uint8` | 29 | | -| FUNCTION_FLTBTN_SLOT_COUNT | `uint8` | 6 | | - ## Source Message [Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/RcChannels.msg) @@ -65,43 +28,9 @@ Click here to see original file ```c uint64 timestamp # time since system start (microseconds) -uint8 FUNCTION_THROTTLE = 0 -uint8 FUNCTION_ROLL = 1 -uint8 FUNCTION_PITCH = 2 -uint8 FUNCTION_YAW = 3 -uint8 FUNCTION_RETURN = 4 -uint8 FUNCTION_LOITER = 5 -uint8 FUNCTION_OFFBOARD = 6 -uint8 FUNCTION_FLAPS = 7 -uint8 FUNCTION_AUX_1 = 8 -uint8 FUNCTION_AUX_2 = 9 -uint8 FUNCTION_AUX_3 = 10 -uint8 FUNCTION_AUX_4 = 11 -uint8 FUNCTION_AUX_5 = 12 -uint8 FUNCTION_AUX_6 = 13 -uint8 FUNCTION_PARAM_1 = 14 -uint8 FUNCTION_PARAM_2 = 15 -uint8 FUNCTION_PARAM_3_5 = 16 -uint8 FUNCTION_KILLSWITCH = 17 -uint8 FUNCTION_TRANSITION = 18 -uint8 FUNCTION_GEAR = 19 -uint8 FUNCTION_ARMSWITCH = 20 -uint8 FUNCTION_FLTBTN_SLOT_1 = 21 -uint8 FUNCTION_FLTBTN_SLOT_2 = 22 -uint8 FUNCTION_FLTBTN_SLOT_3 = 23 -uint8 FUNCTION_FLTBTN_SLOT_4 = 24 -uint8 FUNCTION_FLTBTN_SLOT_5 = 25 -uint8 FUNCTION_FLTBTN_SLOT_6 = 26 -uint8 FUNCTION_ENGAGE_MAIN_MOTOR = 27 -uint8 FUNCTION_PAYLOAD_POWER = 28 -uint8 FUNCTION_TERMINATION = 29 - -uint8 FUNCTION_FLTBTN_SLOT_COUNT = 6 - uint64 timestamp_last_valid # Timestamp of last valid RC signal float32[18] channels # Scaled to -1..1 (throttle: 0..1) uint8 channel_count # Number of valid channels -int8[30] function # Functions mapping uint8 rssi # Receive signal strength index bool signal_lost # Control signal lost, should be checked together with topic timeout uint32 frame_drop_count # Number of dropped frames diff --git a/docs/zh/msg_docs/RcParameterMap.md b/docs/zh/msg_docs/RcParameterMap.md index d34466e9fa6..c60af55d047 100644 --- a/docs/zh/msg_docs/RcParameterMap.md +++ b/docs/zh/msg_docs/RcParameterMap.md @@ -23,7 +23,7 @@ pageClass: is-wide-page | 参数名 | 类型 | 值 | 描述 | | ------------------------------------------------------------------------------------------------------------------ | ------- | -- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| RC_PARAM_MAP_NCHAN | `uint8` | 3 | This limit is also hardcoded in the enum RC_CHANNELS_FUNCTION in rc_channels.h | +| RC_PARAM_MAP_NCHAN | `uint8` | 3 | This limit is also hardcoded in the enum RCUpdate::Function in rc_update.h | | PARAM_ID_LEN | `uint8` | 16 | corresponds to MAVLINK_MSG_PARAM_VALUE_FIELD_PARAM_ID_LEN | ## Source Message @@ -35,7 +35,7 @@ Click here to see original file ```c uint64 timestamp # time since system start (microseconds) -uint8 RC_PARAM_MAP_NCHAN = 3 # This limit is also hardcoded in the enum RC_CHANNELS_FUNCTION in rc_channels.h +uint8 RC_PARAM_MAP_NCHAN = 3 # This limit is also hardcoded in the enum RCUpdate::Function in rc_update.h uint8 PARAM_ID_LEN = 16 # corresponds to MAVLINK_MSG_PARAM_VALUE_FIELD_PARAM_ID_LEN bool[3] valid #true for RC-Param channels which are mapped to a param diff --git a/docs/zh/msg_docs/SensorGnss.md b/docs/zh/msg_docs/SensorGnss.md index 7e7bcde1d39..038dcf7cbf4 100644 --- a/docs/zh/msg_docs/SensorGnss.md +++ b/docs/zh/msg_docs/SensorGnss.md @@ -20,13 +20,13 @@ The sensors module publishes the selected receiver on vehicle_gnss. | device_id | `uint32` | | | Unique device ID for the sensor that does not change between power cycles | | latitude | `float64` | deg | | Latitude, allows centimeter level RTK precision | | longitude | `float64` | deg | | Longitude, allows centimeter level RTK precision | -| altitude_msl | `float64` | 米 | | Altitude above MSL, from the receiver's own geoid model | -| altitude_ellipsoid | `float64` | 米 | | Altitude above the WGS84 ellipsoid | +| altitude_msl | `float64` | m | | Altitude above MSL, from the receiver's own geoid model | +| altitude_ellipsoid | `float64` | m | | Altitude above the WGS84 ellipsoid | | speed_accuracy | `float32` | 米/秒 | | Speed accuracy estimate | | course_accuracy | `float32` | rad | | Course accuracy estimate | | fix_type | `uint8` | | [FIX_TYPE](#FIX_TYPE) | Value 0 is also valid to represent no fix | -| eph | `float32` | 米 | | Horizontal position accuracy | -| epv | `float32` | 米 | | Vertical position accuracy | +| eph | `float32` | m | | Horizontal position accuracy | +| epv | `float32` | m | | Vertical position accuracy | | hdop | `float32` | | | Horizontal dilution of precision | | vdop | `float32` | | | Vertical dilution of precision | | noise | `int32` | | | Noise level per millisecond | diff --git a/docs/zh/msg_docs/SensorUwb.md b/docs/zh/msg_docs/SensorUwb.md index 4366867bd06..7d32651e626 100644 --- a/docs/zh/msg_docs/SensorUwb.md +++ b/docs/zh/msg_docs/SensorUwb.md @@ -26,7 +26,7 @@ currently subscribes to it. | mac_dest | `uint16` | | | MAC address of Responder (Controlee) | | status | `uint16` | | | Ranging status code passed through from the UWB module's measurement result | | nlos | `uint8` | | | Non-line-of-sight condition (y/n) | -| distance | `float32` | 米 | | Distance to the UWB receiver | +| distance | `float32` | m | | Distance to the UWB receiver | | aoa_azimuth_dev | `float32` | deg | | Angle of arrival of first incoming RX msg | | aoa_elevation_dev | `float32` | deg | | Angle of arrival of first incoming RX msg | | aoa_azimuth_resp | `float32` | deg | | Angle of arrival of first incoming RX msg at the responder | diff --git a/docs/zh/msg_docs/TargetGnss.md b/docs/zh/msg_docs/TargetGnss.md index f8497d593b1..3ef1cf41f35 100644 --- a/docs/zh/msg_docs/TargetGnss.md +++ b/docs/zh/msg_docs/TargetGnss.md @@ -21,9 +21,9 @@ abs_pos_updated / vel_ned_updated tell the estimator which fields in this sample | timestamp_sample | `uint64` | us | | Timestamp of the raw observation | | latitude_deg | `float64` | deg | | Latitude, allows centimeter level RTK precision | | longitude_deg | `float64` | deg | | Longitude, allows centimeter level RTK precision | -| altitude_msl_m | `float32` | 米 | | Altitude above MSL | -| eph | `float32` | 米 | | GNSS horizontal position accuracy | -| epv | `float32` | 米 | | GNSS vertical position accuracy | +| altitude_msl_m | `float32` | m | | Altitude above MSL | +| eph | `float32` | m | | GNSS horizontal position accuracy | +| epv | `float32` | m | | GNSS vertical position accuracy | | abs_pos_updated | `bool` | | | True if WGS84 position is updated | | vel_n_m_s | `float32` | 米/秒 | | GNSS North velocity | | vel_e_m_s | `float32` | 米/秒 | | GNSS East velocity | diff --git a/docs/zh/msg_docs/TecsStatus.md b/docs/zh/msg_docs/TecsStatus.md index 73e32b66bd7..4e487902631 100644 --- a/docs/zh/msg_docs/TecsStatus.md +++ b/docs/zh/msg_docs/TecsStatus.md @@ -8,34 +8,34 @@ pageClass: is-wide-page ## Fields -| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| timestamp | `uint64` | | | time since system start (microseconds) | -| altitude_sp | `float32` | | | Altitude setpoint AMSL [m] | -| altitude_reference | `float32` | | | Altitude setpoint reference AMSL [m] | -| altitude_time_constant | `float32` | | | Time constant of the altitude tracker [s] | -| height_rate_reference | `float32` | | | Height rate setpoint reference [m/s] | -| height_rate_direct | `float32` | | | Direct height rate setpoint from velocity reference generator [m/s] | -| height_rate_setpoint | `float32` | | | Height rate setpoint [m/s] | -| height_rate | `float32` | | | Height rate [m/s] | -| equivalent_airspeed_sp | `float32` | | | Equivalent airspeed setpoint [m/s] | -| true_airspeed_sp | `float32` | | | True airspeed setpoint [m/s] | -| true_airspeed_filtered | `float32` | | | True airspeed filtered [m/s] | -| true_airspeed_derivative_sp | `float32` | | | True airspeed derivative setpoint [m/s^2] | -| true_airspeed_derivative | `float32` | | | True airspeed derivative [m/s^2] | -| true_airspeed_derivative_raw | `float32` | | | True airspeed derivative raw [m/s^2] | -| total_energy_rate_sp | `float32` | | | Total energy rate setpoint [m^2/s^3] | -| total_energy_rate | `float32` | | | Total energy rate estimate [m^2/s^3] | -| total_energy_balance_rate_sp | `float32` | | | Energy balance rate setpoint [m^2/s^3] | -| total_energy_balance_rate | `float32` | | | Energy balance rate estimate [m^2/s^3] | -| throttle_integ | `float32` | | | Throttle integrator value [-] | -| pitch_integ | `float32` | | | Pitch integrator value [rad] | -| throttle_sp | `float32` | | | Current throttle setpoint [-] | -| pitch_sp_rad | `float32` | | | Current pitch setpoint [rad] | -| throttle_trim | `float32` | | | estimated throttle value [0,1] required to fly level at equivalent_airspeed_sp in the current atmospheric conditions | -| underspeed_ratio | `float32` | | | 0: no underspeed, 1: maximal underspeed. Controller takes measures to avoid stall proportional to ratio if >0. | -| fast_descend_ratio | `float32` | | | value indicating if fast descend mode is enabled with ramp up and ramp down [0-1] | -| weight_ratio | `float32` | | | Ratio of estimated vehicle weight to WEIGHT_BASE. Accounts for burned fuel if fuel-based weight compensation is enabled. | +| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | | | time since system start (microseconds) | +| altitude_sp | `float32` | | | Altitude setpoint AMSL [m] | +| altitude_reference | `float32` | | | Altitude setpoint reference AMSL [m] | +| altitude_time_constant | `float32` | | | Time constant of the altitude tracker [s] | +| height_rate_reference | `float32` | | | Height rate setpoint reference [m/s] | +| height_rate_direct | `float32` | | | Direct height rate setpoint from velocity reference generator [m/s] | +| height_rate_setpoint | `float32` | | | Height rate setpoint [m/s] | +| height_rate | `float32` | | | Height rate [m/s] | +| equivalent_airspeed_sp | `float32` | | | Equivalent airspeed setpoint [m/s] | +| true_airspeed_sp | `float32` | | | True airspeed setpoint [m/s] | +| true_airspeed_filtered | `float32` | | | True airspeed filtered [m/s] | +| true_airspeed_derivative_sp | `float32` | | | True airspeed derivative setpoint [m/s^2] | +| true_airspeed_derivative | `float32` | | | True airspeed derivative [m/s^2] | +| true_airspeed_derivative_raw | `float32` | | | True airspeed derivative raw [m/s^2] | +| total_energy_rate_sp | `float32` | | | Total energy rate setpoint [m^2/s^3] | +| total_energy_rate | `float32` | | | Total energy rate estimate [m^2/s^3] | +| total_energy_balance_rate_sp | `float32` | | | Energy balance rate setpoint [m^2/s^3] | +| total_energy_balance_rate | `float32` | | | Energy balance rate estimate [m^2/s^3] | +| throttle_integ | `float32` | | | Throttle integrator value [-] | +| pitch_integ | `float32` | | | Pitch integrator value [rad], a correction added to the pitch setpoint rather than a pitch angle | +| throttle_sp | `float32` | | | Current throttle setpoint [-] | +| pitch_sp_rad | `float32` | | | Current pitch setpoint [rad], absolute: angle of the fixed-wing body x-axis above the horizon, FW_PSP_OFF included | +| throttle_trim | `float32` | | | estimated throttle value [0,1] required to fly level at equivalent_airspeed_sp in the current atmospheric conditions | +| underspeed_ratio | `float32` | | | 0: no underspeed, 1: maximal underspeed. Controller takes measures to avoid stall proportional to ratio if >0. | +| fast_descend_ratio | `float32` | | | value indicating if fast descend mode is enabled with ramp up and ramp down [0-1] | +| weight_ratio | `float32` | | | Ratio of estimated vehicle weight to WEIGHT_BASE. Accounts for burned fuel if fuel-based weight compensation is enabled. | ## Source Message @@ -68,10 +68,10 @@ float32 total_energy_balance_rate_sp # Energy balance rate setpoint [m^2/s^3] float32 total_energy_balance_rate # Energy balance rate estimate [m^2/s^3] float32 throttle_integ # Throttle integrator value [-] -float32 pitch_integ # Pitch integrator value [rad] +float32 pitch_integ # Pitch integrator value [rad], a correction added to the pitch setpoint rather than a pitch angle float32 throttle_sp # Current throttle setpoint [-] -float32 pitch_sp_rad # Current pitch setpoint [rad] +float32 pitch_sp_rad # Current pitch setpoint [rad], absolute: angle of the fixed-wing body x-axis above the horizon, FW_PSP_OFF included float32 throttle_trim # estimated throttle value [0,1] required to fly level at equivalent_airspeed_sp in the current atmospheric conditions float32 underspeed_ratio # 0: no underspeed, 1: maximal underspeed. Controller takes measures to avoid stall proportional to ratio if >0. diff --git a/docs/zh/msg_docs/TransponderReport.md b/docs/zh/msg_docs/TransponderReport.md index 78e06dbde5f..5ea14e0b5f0 100644 --- a/docs/zh/msg_docs/TransponderReport.md +++ b/docs/zh/msg_docs/TransponderReport.md @@ -20,7 +20,7 @@ Populated by ADSB receivers, processed for user messaging and navigator, logging | lat | `float64` | deg | | Latitude, validity flag: PX4_ADSB_FLAGS_VALID_COORDS | | lon | `float64` | deg | | Longitude, validity flag: PX4_ADSB_FLAGS_VALID_COORDS | | altitude_type | `uint8` | | | Type from ADSB_ALTITUDE_TYPE enum | -| altitude | `float32` | 米 | | Altitude (ASL), validity flag: PX4_ADSB_FLAGS_VALID_ALTITUDE | +| altitude | `float32` | m | | Altitude (ASL), validity flag: PX4_ADSB_FLAGS_VALID_ALTITUDE | | heading | `float32` | rad | | Course over ground, 0 to 2pi, 0 is north, validity flag: PX4_ADSB_FLAGS_VALID_HEADING | | hor_velocity | `float32` | 米/秒 | | Horizontal velocity, validity flag: PX4_ADSB_FLAGS_VALID_VELOCITY | | ver_velocity | `float32` | 米/秒 | | Vertical velocity, positive is up, validity flag: PX4_ADSB_FLAGS_VALID_VELOCITY | diff --git a/docs/zh/msg_docs/VehicleCommand.md b/docs/zh/msg_docs/VehicleCommand.md index f61e538e72a..e34be05b64d 100644 --- a/docs/zh/msg_docs/VehicleCommand.md +++ b/docs/zh/msg_docs/VehicleCommand.md @@ -79,7 +79,7 @@ Navigate to MISSION. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 1 | s | | (decimal) Hold time. (ignored by fixed wing, time to stay at MISSION for rotary wing) | -| 2 | 米 | | Acceptance radius (if the sphere with this radius is hit, the MISSION counts as reached) | +| 2 | m | | Acceptance radius (if the sphere with this radius is hit, the MISSION counts as reached) | | 3 | | | 0 to pass through the WP, if > 0 radius [m] to pass by WP. Positive value for clockwise orbit, negative value for counter-clockwise orbit. Allows trajectory control. | | 4 | | | Desired yaw angle at MISSION (rotary wing) | | 5 | | | Latitude | @@ -94,7 +94,7 @@ Loiter around this MISSION an unlimited amount of time. | ----- | ----------------------------- | ---------- | ------------------------------------------------------------------------------------------- | | 1 | | | Unused | | 2 | | | Unused | -| 3 | 米 | | Radius around MISSION. If positive loiter clockwise, else counter-clockwise | +| 3 | m | | Radius around MISSION. If positive loiter clockwise, else counter-clockwise | | 4 | | | Desired yaw angle. | | 5 | | | Latitude | | 6 | | | Longitude | @@ -168,7 +168,7 @@ Takeoff from ground / hand. | 4 | deg | [0 : 360] | Yaw angle in NED if yaw source available, ignored otherwise | | 5 | | | Latitude (WGS-84) | | 6 | | | Longitude (WGS-84) | -| 7 | 米 | | Altitude AMSL | +| 7 | m | | Altitude AMSL | ### VEHICLE_CMD_NAV_PRECLAND (23) @@ -190,7 +190,7 @@ Start orbiting on the circumference of a circle defined by the parameters. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ------------------------------------------------------------------------------------- | ------------- | -| 1 | 米 | | Radius | +| 1 | m | | Radius | | 2 | 米/秒 | | Velocity | | 3 | | [ORBIT_YAW_BEHAVIOUR](#ORBIT_YAW_BEHAVIOUR) | Yaw behaviour | | 4 | | | Unused | @@ -204,8 +204,8 @@ Start flying on the outline of a figure eight defined by the parameters. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | ------------ | -| 1 | 米 | | Major radius | -| 2 | 米 | | Minor radius | +| 1 | m | | Major radius | +| 2 | m | | Minor radius | | 3 | 米/秒 | | Velocity | | 4 | | | 安装方向 | | 5 | | | Latitude/X | @@ -275,9 +275,9 @@ Set limits for external control. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 1 | s | | Timeout - maximum time that external controller will be allowed to control vehicle. 0 means no timeout | -| 2 | 米 | | Absolute altitude min AMSL - if vehicle moves below this alt, the command will be aborted and the mission will continue. 0 means no lower altitude limit | -| 3 | 米 | | Absolute altitude max - if vehicle moves above this alt, the command will be aborted and the mission will continue. 0 means no upper altitude limit | -| 4 | 米 | | Horizontal move limit (AMSL) - if vehicle moves more than this distance from it's location at the moment the command was executed, the command will be aborted and the mission will continue. 0 means no horizontal altitude limit | +| 2 | m | | Absolute altitude min AMSL - if vehicle moves below this alt, the command will be aborted and the mission will continue. 0 means no lower altitude limit | +| 3 | m | | Absolute altitude max - if vehicle moves above this alt, the command will be aborted and the mission will continue. 0 means no upper altitude limit | +| 4 | m | | Horizontal move limit (AMSL) - if vehicle moves more than this distance from it's location at the moment the command was executed, the command will be aborted and the mission will continue. 0 means no horizontal altitude limit | | 5 | | | Unused | | 6 | | | Unused | | 7 | | | Unused | @@ -582,7 +582,7 @@ Mission command to safely abort an autonomous landing. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | -------- | -| 1 | 米 | | Altitude | +| 1 | m | | Altitude | | 2 | | | Unused | | 3 | | | Unused | | 4 | | | Unused | @@ -598,7 +598,7 @@ Reposition to specific WGS84 GPS position. | ----- | ----------------------------- | ---------- | ------------------------ | | 1 | 米/秒 | | Ground speed | | 2 | | | Bitmask | -| 3 | 米 | | Loiter radius for planes | +| 3 | m | | Loiter radius for planes | | 4 | deg | | Yaw | | 5 | | | Latitude | | 6 | | | Longitude | @@ -736,7 +736,7 @@ Mission command to set TRIG_DIST for this flight. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | ------------------------ | -| 1 | 米 | | Camera trigger distance | +| 1 | m | | Camera trigger distance | | 2 | ms | | Shutter integration time | | 3 | | | Unused | | 4 | | | Unused | @@ -834,7 +834,7 @@ Mission command to set TRIG_INTERVAL for this flight. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | ------------------------------------------------ | -| 1 | 米 | | Camera trigger distance | +| 1 | m | | Camera trigger distance | | 2 | | | Shutter integration time (ms) | | 3 | | | Unused | | 4 | | | Unused | @@ -877,9 +877,9 @@ Set limits for external control. | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 1 | s | | Timeout - maximum time that external controller will be allowed to control vehicle. 0 means no timeout | -| 2 | 米 | | Absolute altitude min(AMSL) - if vehicle moves below this alt, the command will be aborted and the mission will continue. 0 means no lower altitude limit | -| 3 | 米 | | Absolute altitude max - if vehicle moves above this alt, the command will be aborted and the mission will continue. 0 means no upper altitude limit | -| 4 | 米 | | Horizontal move limit (AMSL) - if vehicle moves more than this distance from it's location at the moment the command was executed, the command will be aborted and the mission will continue. 0 means no horizontal altitude limit | +| 2 | m | | Absolute altitude min(AMSL) - if vehicle moves below this alt, the command will be aborted and the mission will continue. 0 means no lower altitude limit | +| 3 | m | | Absolute altitude max - if vehicle moves above this alt, the command will be aborted and the mission will continue. 0 means no upper altitude limit | +| 4 | m | | Horizontal move limit (AMSL) - if vehicle moves more than this distance from it's location at the moment the command was executed, the command will be aborted and the mission will continue. 0 means no horizontal altitude limit | | 5 | | | Unused | | 6 | | | Unused | | 7 | | | Unused | @@ -988,7 +988,7 @@ Mission command to set a Camera Auto Mount Pivoting Oblique Survey for this flig | Param | 单位 (Units) | Range/Enum | 描述 | | ----- | ----------------------------- | ---------- | ------------------------------- | -| 1 | 米 | | Camera trigger distance | +| 1 | m | | Camera trigger distance | | 2 | ms | | Shutter integration time | | 3 | | | Camera minimum trigger interval | | 4 | | | Number of positions | @@ -1526,7 +1526,7 @@ Sets the GPS coordinates of the vehicle local origin (0,0,0) position. | 4 | | | Unused | | 5 | | | Latitude (WGS-84) | | 6 | | | Longitude (WGS-84) | -| 7 | 米 | | Altitude (AMSL from GNSS, positive above ground) | +| 7 | m | | Altitude (AMSL from GNSS, positive above ground) | ### VEHICLE_CMD_SET_NAV_STATE (100001) @@ -1554,7 +1554,7 @@ Sets GNSS coordinates of the vehicle local origin (0,0,0) position. Send as COMM | 4 | | | Unused | | 5 | | | Latitude (WGS-84) | | 6 | | | Longitude (WGS-84) | -| 7 | 米 | | Altitude (AMSL) | +| 7 | m | | Altitude (AMSL) | ### VEHICLE_CMD_GUIDED_CHANGE_HEADING (43002) diff --git a/docs/zh/msg_docs/VteBiasInitStatus.md b/docs/zh/msg_docs/VteBiasInitStatus.md index 9b4a9db5de7..ca47bbb3d1e 100644 --- a/docs/zh/msg_docs/VteBiasInitStatus.md +++ b/docs/zh/msg_docs/VteBiasInitStatus.md @@ -18,7 +18,7 @@ Subscribed by: logger only, to verify that the bias settles before the estimator | timestamp | `uint64` | us | | Time since system start | | raw_bias | `float32[3]` | m [NED] | | Current GNSS-vision bias sample | | filtered_bias | `float32[3]` | m [NED] | | Low-pass filtered bias sample | -| delta_norm | `float32` | 米 | | norm(raw_bias_k - raw_bias_k-1) | +| delta_norm | `float32` | m | | norm(raw_bias_k - raw_bias_k-1) | ## Source Message diff --git a/docs/zh/releases/main.md b/docs/zh/releases/main.md index fd1b08dd281..4a8bcd3df89 100644 --- a/docs/zh/releases/main.md +++ b/docs/zh/releases/main.md @@ -47,8 +47,8 @@ Please continue reading for [upgrade instructions](#upgrade-guide). Saved parameters are migrated automatically, but loading a QGC parameter file with the old names does not restore them. The log analysis scripts in the tree read both the old and the new names. The uORB-over-Cyphal registers are renamed from `uorb.sensor_gps` to `uorb.sensor_gnss` (`uavcan.sub.uorb.sensor_gnss.0.id`, `uavcan.pub.uorb.sensor_gnss.0.id`); `UCAN1_UORB_GPS` and `UCAN1_UORB_GPS_P` are unchanged. ([PX4-Autopilot#24399](https://github.com/PX4/PX4-Autopilot/pull/24399)) -- **`DO_JUMP` can only loop back.** - A mission is now rejected if a `DO_JUMP` targets itself or a later mission item, even if its repeat count is 0. +- **`DO_JUMP` can only loop back and its repeat count must fit.** + A mission is now rejected if a `DO_JUMP` targets itself or a later mission item, even if its repeat count is 0, and if its repeat count is negative, above 65535 or not a number (it is no longer narrowed to a different count). Missions stored on the vehicle with such jumps must be edited and uploaded again. ## Other changes @@ -133,7 +133,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### Fixed-wing -- TBD +- TECS underspeed protection now starts at the minimum airspeed ([FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN)) and is fully active at 90% of it, or halfway to [FW_AIRSPD_STALL](../advanced_config/parameter_reference.md#FW_AIRSPD_STALL) if that is higher. Previously it only started 15% of trim airspeed below the minimum airspeed. The roll angle is limited towards 20° (or [FW_R_LIM](../advanced_config/parameter_reference.md#FW_R_LIM) if lower) while undersped, and the altitude reference is reset to avoid a pitch-up on recovery. ([PX4-Autopilot#26859](https://github.com/PX4/PX4-Autopilot/pull/26859)) ### Rover diff --git a/docs/zh/releases/release_process.md b/docs/zh/releases/release_process.md index d4e56477669..f88b1025584 100644 --- a/docs/zh/releases/release_process.md +++ b/docs/zh/releases/release_process.md @@ -209,7 +209,7 @@ If a critical issue is discovered during RC testing that must be fixed before re 3. Maintainers vote on whether to merge the fix 4. If approved, merge the fix and create a new RC tag (e.g., `v1.18.0-rc2`) -### 7) Release Vote +### 7. Release Vote The release vote takes place during the [Weekly Community Q&A Call](../contribute/dev_call.md): @@ -254,7 +254,7 @@ When a version tag is pushed, the [build_all_targets.yml](https://github.com/PX4 2. Uploads firmware artifacts to AWS S3 (`Firmware/vX.Y.Z/` and updates `Firmware/stable/`) 3. Creates a **draft release** on GitHub with all `.px4` firmware files attached -### 11) Publish GitHub Release +### 11. Publish GitHub Release Edit the draft release on GitHub: diff --git a/docs/zh/sensor/airspeed.md b/docs/zh/sensor/airspeed.md index e3f9058a7b6..3639c7d622d 100644 --- a/docs/zh/sensor/airspeed.md +++ b/docs/zh/sensor/airspeed.md @@ -48,22 +48,51 @@ You should also check [ASPD_PRIMARY](../advanced_config/parameter_reference.md#A ### Multiple Airspeed Sensors + + :::warning Experimental Using multiple airspeed sensors is experimental. ::: -If you have multiple airspeed sensors then you can select which sensor is _preferred_ as the primary source using [ASPD_PRIMARY](../advanced_config/parameter_reference.md#ASPD_PRIMARY), where `1`, `2` and `3` reflect the order in which the airspeed sensors were started: +PX4 supports up to three airspeed sensors. +Each sensor is converted to airspeed independently, keeps its own zero-offset calibration, and is validated separately, so the selector can fall back to a healthy sensor if one fails in flight. -- `0`: Synthetic airspeed estimation (groundspeed minus windspeed) -- `1`: First airspeed sensor started (default) -- `2`: Second airspeed sensor started -- `3`: Third airspeed sensor started +#### Selecting the Primary Sensor -The airspeed selector validates the indicated sensor _first_ and only falls back to other sensors if the indicated sensor fails airspeed checks ([ASPD_DO_CHECKS](../advanced_config/parameter_reference.md#ASPD_DO_CHECKS) is used to configure the checks). +[ASPD_PRIMARY](../advanced_config/parameter_reference.md#ASPD_PRIMARY) selects the source that is _preferred_: + +- `0`: Groundspeed minus windspeed +- `1`: Airspeed sensor 1 (default) +- `2`: Airspeed sensor 2 +- `3`: Airspeed sensor 3 +- `4`: Thrust-based (synthetic) airspeed + +The sensor numbers `1`, `2` and `3` refer to the **calibration entry** the sensor owns (recorded in `CAL_DPRES{n-1}_ID`). + +:::tip +Calibrate every sensor before relying on `ASPD_PRIMARY`. +::: + +#### Failover + +The preferred sensor is used while it passes the airspeed checks ([ASPD_DO_CHECKS](../advanced_config/parameter_reference.md#ASPD_DO_CHECKS) configures which checks run). +If it fails, the selector switches to another valid sensor, preferring the configured primary. + +[ASPD_FALLBACK](../advanced_config/parameter_reference.md#ASPD_FALLBACK) controls what happens when _no_ sensor is usable: stay without airspeed, fall back to groundspeed minus windspeed, or fall back to thrust-based airspeed. + +:::warning +By default a sensor that fails its checks stays failed until the next reboot ([ASPD_FS_T_START](../advanced_config/parameter_reference.md#ASPD_FS_T_START) is `-1`). +Set it to a positive number of seconds to allow a recovered sensor to be used again in the same flight. +::: The selected sensor is then used to [supply data to the estimator (EKF2)](../advanced_config/tuning_the_ecl_ekf.md#airspeed) and the controllers. +#### Per-Sensor Calibration + +Each sensor stores its own zero offset in `CAL_DPRES{n}_OFF`, linked to the sensor's device ID in `CAL_DPRES{n}_ID`. +A single [airspeed calibration](../config/airspeed.md) calibrates every connected sensor. + ### Sensor-specific Configuration Other than enabling the sensor, sensor-specific configuration is often not required. @@ -77,10 +106,13 @@ The specific configuration for sensors that do not have a separate page is liste Airspeed sensors should be calibrated by following the instructions: [Basic Configuration > Airspeed](../config/airspeed.md). +## Validation + For more advanced validation, configuration and debugging see [Airspeed Validation](../advanced_config/airspeed_validation.md). ## 另见 +- [Airspeed Scale Handling](../config_fw/airspeed_scale_handling) - [Using PX4's Navigation Filter (EKF2) > Airspeed](../advanced_config/tuning_the_ecl_ekf.md#airspeed) - [Airspeed drivers](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/differential_pressure) (source code) - [VTOL Without an Airspeed Sensor](../config_vtol/vtol_without_airspeed_sensor.md) diff --git a/docs/zh/sensor/inertiallabs.md b/docs/zh/sensor/inertiallabs.md index a49a84fb45a..1d6bb5e4115 100644 --- a/docs/zh/sensor/inertiallabs.md +++ b/docs/zh/sensor/inertiallabs.md @@ -21,8 +21,8 @@ The mode is configurable using a parameter. [Get technical support or send requests to sales team](https://inertiallabs.com/inertial-labs-inc/contact-inertial-labs-team/). Recommended sensors: -- [INS-U GNSS/INS](https://inertiallabs.com/wp-content/uploads/2026/01/INS-U_INS-U-OEM_Datasheet_REV2.18_JAN2026.pdf): Recommended for fixed-wing systems without hovering, where static heading is not necessary. -- [INS-DU DUAL GNSS/INS](https://inertiallabs.com/wp-content/uploads/2025/12/INS-DU_INS-DU-OEM_Datasheet_REV1.00_DEC2025.pdf): Recommended for multicopter systems where hovering and low dynamics requires the use of static heading. +- [INS-U GNSS/INS](https://inertiallabs.com/library/ins_u_datasheet.pdf): Recommended for fixed-wing systems without hovering, where static heading is not necessary. +- [INS-DU DUAL GNSS/INS](https://inertiallabs.com/library/ins_du_datasheet.pdf): Recommended for multicopter systems where hovering and low dynamics requires the use of static heading. ## 硬件安装 diff --git a/docs/zh/sensor/lidar_lite.md b/docs/zh/sensor/lidar_lite.md index 09b6cb0e1f3..f4a980bef24 100644 --- a/docs/zh/sensor/lidar_lite.md +++ b/docs/zh/sensor/lidar_lite.md @@ -1,86 +1,201 @@ -# Lidar-Lite +# Garmin LIDAR-Lite -LIDAR-Lite is a compact, high-performance optical distant measurement sensor solution for drone, robot or unmanned vehicle applications. It can be connected to either I2C or PWM. + -![LidarLite v3](../../assets/hardware/sensors/lidar_lite/lidar_lite_v3.jpg) +The [Garmin LIDAR-Lite v3](https://www.garmin.com/en-US/p/557294/) is a compact laser time-of-flight [rangefinder](../sensor/rangefinders.md) with a range of up to 40 m (PX4 caps this to 35 m or less). +It connects to the flight controller using either I2C or PWM. -## 购买渠道 - -- [LIDAR-Lite v3](https://www.garmin.com/en-AU/p/557294/) (5cm - 40m) - -## 针脚定义 - -The Lidar-Lite (v2, v3) pinout is shown below. - -| 针脚 | 参数名 | 描述 | -| -- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| 1 | POWER_IN | Power supply. 4.75-5.5V DC Nominal, Maximum 6V DC. | -| 2 | POWER_EN | Active high, enables operation of the 3.3V micro-controller regulator. Low puts board to sleep, draws <40 μA. (Internal 100K pull-up) | -| 3 | Mode Select Control | Provides trigger (high-low edge) PWM out (high) | -| 4 | SCL | I2C Clock | -| 5 | SDA | I2C Data | -| 6 | GND | Signal/power ground. | - -## 布线 - -The _Lidar-Lite v3_ can be used with either PWM or I2C. -PWM is recommended if using an older model. -The rangefinder must be separately powered via some ESC/BEC (whether connected via PWM or I2C). +![LIDAR-Lite v3](../../assets/hardware/sensors/lidar_lite/lidar_lite_v3.jpg) :::info -The I2C interface of non-blue-label Lidar-Lite (v1) devices has stability limitations and all silver-label generations of Lidar-Lite sensors are therefore excluded from the I2C interface. -The use of the PWM interface (as detailed below) is advised for these sensors. -The blue label (v2) devices can exhibit a constant offset if powered on with less than 5V under some conditions. -This is currently (Q4/2015) under investigation by the manufacturer and potentially can be resolved by adhering to specific operational conditions. -The recommended robust setup is a v1 device interfaced via PWM. +The driver for the PWM connection is not included in PX4 firmware by default. +See [Firmware Support](#firmware_support) for how to check your board and add it. ::: -The standard wiring instructions for Lidar-Lite 3 (from the [Operation Manual](https://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf)) are shown below. -Lidar-Lite v2 and v3 are the same, except that the order of pins in the connector is reversed (i.e. it is as though the connector was turned over). +## Supported Models {#supported_models} -![LidarLite v3 - Standard Wiring from Garmin Specification](../../assets/hardware/sensors/lidar_lite/lidar_lite2_standard_wiring_spec.jpg) +| Model | 范围 | 接口定义 | 备注 | +| ------------------------------------------------------- | ---------- | -------- | ------------------------------------------- | +| [LIDAR-Lite v3](https://www.garmin.com/en-US/p/557294/) | Up to 40 m | I2C, PWM | | +| LIDAR-Lite v3HP | | I2C | | +| LIDAR-Lite v4 LED | | I2C | PX4 caps the range to 10 m. | +| LIDAR-Lite v2 | | I2C, PWM | | +| LIDAR-Lite v1 | | I2C, PWM | | -### PWM Interface Wiring +The rest of this page describes the LIDAR-Lite v3, unless otherwise stated. -The pin connections for wiring LidarLite to the _Pixhawk 1_ AUX ports (PWM interface) are shown below. +## Specifications {#specifications} -| 针脚 | Lidar-Lite (v2, v3) | Pixhawk AUX Servo | Comment | -| -- | -------------------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| 1 | VCC | AUX 6 (center) | Power supply. 4.75-5.5V DC Nominal, Maximum 6V DC. | -| 2 | RESET | AUX 6 (bottom) | Reset line of the sensor | -| 3 | PWM | AUX 5 (bottom) | PWM output of the Lidar Lite. **Needs a 470 Ohm pull-down (to GND), Do not use a 1 K0hm resistor.** | -| 4 | SCL | - | Not connected | -| 5 | SDA | - | Not connected | -| 6 | GND | AUX 6 (top) | Ground | +The following specifications are for the LIDAR-Lite v3. + +- **Technology:** Laser time-of-flight (905 nm) +- **Range:** Up to 40 m (70% reflective target) +- **Update rate:** 270 Hz typical, 650 Hz in fast mode (PX4 samples at up to 100 Hz on I2C, and at 20 Hz on PWM) +- **Beam divergence:** 8 mrad +- **Accuracy:** ±2.5 cm typical below 5 m, ±10 cm typical at 5 m and above +- **Resolution:** ±1 cm +- **Interface:** I2C (address `0x62`), PWM +- **Input voltage:** 5 V DC nominal (4.5–5.5 V) +- **Current draw:** 105 mA idle, 135 mA in continuous operation +- **Dimensions:** 20 x 48 x 40 mm +- **Weight:** 22 g +- **Operating temperature:** -20 to 60 °C +- **Laser class:** Class 1 + +## Where to Buy {#store} + +- [LIDAR-Lite v3](https://www.garmin.com/en-US/p/557294/) (Garmin) + +## Hardware Setup {#hardware_setup} + +### Mounting {#mounting} + +PX4 assumes that the rangefinder is facing down (the orientation cannot be configured). + +### Pinouts {#pinouts} + +The LIDAR-Lite v3 has a 6-pin connector that mates with a JST GH housing (`GHR-06V-S`, 1.25 mm pitch). + +| 针脚 | Wire colour | 信号 | 描述 | +| -- | ----------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| 1 | Red | 5 V DC (+) | Power supply. 5 V DC nominal (4.5–5.5 V). | +| 2 | Orange | Power enable | Internal pull-up. Can be driven low to shut off power to the sensor. | +| 3 | Yellow | Mode control | PWM interface: pull low to trigger a measurement; returns a pulse (10 μs/cm). | +| 4 | 绿色 | I2C SCL | I2C clock | +| 5 | 蓝色 | I2C SDA | I2C data | +| 6 | Black | Ground (-) | Signal and power ground | + +### Wiring {#wiring} + +The LIDAR-Lite v3 can be connected using either I2C or PWM. +Older LIDAR-Lite generations (v1 and v2) were reported to have I2C problems, and PWM was recommended for them. + +The sensor requires a 5 V DC supply, and draws up to 135 mA in continuous operation. +Check that the flight controller port can supply this, or power the sensor from a separate supply that shares a ground with the flight controller. + +#### I2C {#wiring_i2c} + +Connect the sensor to an external `I2C` port on the flight controller. + +![LIDAR-Lite v3 I2C wiring](../../assets/hardware/sensors/lidar_lite/lidar_lite_v3_i2c_wiring.svg) + +| LIDAR-Lite v3 pin | Wire colour | Connect to | +| ------------------------------ | ----------- | ------------------------- | +| 1 (5 V DC) | Red | 5 V DC supply | +| 4 (I2C SCL) | 绿色 | Flight controller I2C SCL | +| 5 (I2C SDA) | 蓝色 | Flight controller I2C SDA | +| 6 (Ground) | Black | Flight controller GND | + +Pins 2 (power enable) and 3 (mode control) are not connected. + +Garmin's standard I2C wiring also requires a 680 μF electrolytic capacitor between the 5 V DC and ground wires (observe the polarity). + +The sensor uses the I2C address `0x62`. + +#### PWM {#wiring_pwm} :::info -On a flight controller that has no AUX port the equivalent MAIN pins are used (e.g. the PWM output on the lidar instead maps to MAIN 5). -The pin numbers are hard-coded. +The PWM connection is not as well tested as I2C. ::: -The wiring for LidarLite v2 is shown below. -Lidar-Lite v3 is wired similarly, except that the pin-numbering on the connector is reversed. +PX4 reads the sensor's PWM output on the flight controller's PWM input pin. +On Pixhawk flight controllers this is FMU output 5 (`AUX 5`, or `MAIN 5` on flight controllers that have no AUX port). +The pin is fixed. -![Lidar Lite 2 Interface wiring](../../assets/hardware/sensors/lidar_lite/lidar_lite_2_interface_wiring.jpg) +![LIDAR-Lite v3 PWM wiring](../../assets/hardware/sensors/lidar_lite/lidar_lite_v3_pwm_wiring.svg) -![Lidar Lite 2 Interface wiring](../../assets/hardware/sensors/lidar_lite/lidarlite_wiring_scheme_pixhawk.jpg) +| LIDAR-Lite v3 pin | Wire colour | Connect to | +| ----------------------------------- | ----------- | ------------------------------------------------------------------------------- | +| 1 (5 V DC) | Red | 5 V DC supply | +| 3 (Mode control) | Yellow | `AUX 5` signal pin, and to ground through a resistor (below) | +| 6 (Ground) | Black | Flight controller GND | -![Lidar Lite 2 pins/cabling](../../assets/hardware/sensors/lidar_lite/lidarlite_wiring_pins_cables.jpg) +Pins 2 (power enable), 4 (I2C SCL) and 5 (I2C SDA) are not connected. -### I2C Interface Wiring +The mode control pin must be connected to ground through a resistor, which makes the sensor measure continuously. +The Garmin specification is for a 1 kΩ resistor, but a 470 Ω resistor was found to be needed when tested with PX4 on a Pixhawk. -The I2C wiring is the same for any other distance sensor. -Simply connect the SLA, SLC, GND and VCC to the corresponding (same) pins on the flight controller and the sensor. +The driver also uses FMU output 6 (`AUX 6`), so this output cannot be used for anything else. -## 软件配置 +## Firmware Support {#firmware_support} -The rangefinder/port is enabled using [SENS_EN_LL40LS](../advanced_config/parameter_reference.md#SENS_EN_LL40LS) - set to `1` for PWM, or `2` for I2C. +The rangefinder is supported by a different driver for each connection, as described below. -:::info -The driver for this rangefinder is usually present in firmware. -If missing, you would also need to add the driver (`drivers/ll40ls`) to the board configuration. -::: +To check your board, look for the keys in its [board configuration](../hardware/porting_guide_config.md) file, `boards///default.px4board`. -## 更多信息 +If a driver is missing, add its key to the board's `default.px4board` file, or enable it in [boardconfig](../hardware/porting_guide_config.md#px4-menuconfig-setup) under **Drivers > Distance sensors**, and then [build and upload the firmware](../dev_setup/building_px4.md). -- [LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf](https://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf) (Garmin) +The drivers do not start until they are enabled using the parameter in [PX4 Configuration](#px4_configuration). + +### I2C {#firmware_support_i2c} + +The driver is [ll40ls](../modules/modules_driver_distance_sensor.md#ll40ls), which is built into firmware by either of the following keys: + +- `CONFIG_COMMON_DISTANCE_SENSOR=y`: the common set of rangefinder drivers, which includes this one. +- `CONFIG_DRIVERS_DISTANCE_SENSOR_LL40LS=y`: this driver on its own. + +Most boards set `CONFIG_COMMON_DISTANCE_SENSOR`, so the I2C driver is present in most firmware. + +### PWM {#firmware_support_pwm} + +The driver is [ll40ls_pwm](../modules/modules_driver_distance_sensor.md#ll40ls-pwm), which is built into firmware by the key `CONFIG_DRIVERS_DISTANCE_SENSOR_LL40LS_PWM=y`. +It is not part of the common set of rangefinder drivers, so it is only present in the firmware for boards that set that key. + +The PWM driver also requires the `pwm_input` driver (`CONFIG_DRIVERS_PWM_INPUT=y`). + +## PX4 Configuration {#px4_configuration} + +The rangefinder is enabled using the parameter [SENS_EN_LL40LS](../advanced_config/parameter_reference.md#SENS_EN_LL40LS). +The value to set depends on the connection, as described below. +Reboot the flight controller after changing the parameter. + +If the parameter is not available in _QGroundControl_ then the I2C driver is not in the firmware: see [Firmware Support](#firmware_support). + +The configuration that is common to all rangefinders, such as the sensor position offsets used by the estimator, is covered in [Rangefinders > Configuration/Setup](../sensor/rangefinders.md#configuration). + +### I2C {#px4_configuration_i2c} + +Set [SENS_EN_LL40LS](../advanced_config/parameter_reference.md#SENS_EN_LL40LS) to `2`. + +The driver detects the hardware version of the connected sensor, and uses this to set the maximum range that PX4 will use: + +- LIDAR-Lite v4 LED: 10 m +- Other versions: 25 m or 35 m, depending on the detected hardware version + +The minimum range is 5 cm. + +### PWM {#px4_configuration_pwm} + +Set [SENS_EN_LL40LS](../advanced_config/parameter_reference.md#SENS_EN_LL40LS) to `1`. + +PX4 uses a range of 5 cm to 25 m for all versions of the sensor. + +## Testing {#testing} + +You can check that the driver is running using the _QGroundControl MAVLink Console_. +For I2C: + +```sh +ll40ls status +``` + +For PWM: + +```sh +ll40ls_pwm status +``` + +You can observe the published measurements with: + +```sh +listener distance_sensor +``` + +The measurements can also be viewed in the `DISTANCE_SENSOR` message in the _QGroundControl MAVLink Inspector_. +For more information see [Rangefinders > Testing](../sensor/rangefinders.md#testing). + +## Further Information {#further_information} + +- [Modules Reference: Distance Sensor (Driver): ll40ls](../modules/modules_driver_distance_sensor.md#ll40ls) +- [Modules Reference: Distance Sensor (Driver): ll40ls_pwm](../modules/modules_driver_distance_sensor.md#ll40ls-pwm) +- [LIDAR-Lite v3 Operation Manual and Technical Specifications](https://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf) (Garmin) diff --git a/docs/zh/sensor/rangefinders.md b/docs/zh/sensor/rangefinders.md index 2a441d5b40b..fdeb061e19e 100644 --- a/docs/zh/sensor/rangefinders.md +++ b/docs/zh/sensor/rangefinders.md @@ -5,7 +5,7 @@ Distance sensors provide distance measurement that can be used for [terrain foll This section lists the distance sensors supported by PX4 (linked to more detailed documentation), and provides information about the [generic configuration](#configuration) required for all rangefinders, [testing](#testing), and simulation with [Gazebo](#gazebo-simulation) or [Gazebo-Classic](#gazebo-classic-simulation). 更详细的设置和配置信息在下方(和侧边栏)的主题链接中提供 -Lidar Lite V3LightWare SF11/C LidarARK Flow +LIDAR-Lite v3LightWare SF11/C LidarARK Flow ## 支持的测距仪 @@ -15,39 +15,40 @@ This is a subset of the rangefinders that can be used with PX4. There may also be other DroneCAN rangefinders than those listed here. ::: -| Rangefinder | Technology | Range (min – max) | Connections | NDAA | 备注 | -| ------------------------------------------------------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------- | ----------------- | ------------------------------------------------------ | -| [Ainstein US-D1 Standard Radar Altimeter] | Microwave radar | ~50 m | UART | ✔️ | | -| [ARK DIST SR] | ToF (850 nm IR) | 8 cm to ~30 m | DroneCAN, UART | ✔️ | | -| [ARK DIST MR] | ToF (IR) | 8 cm to ~50 m | DroneCAN, UART | ✔️ | | -| [Benewake TFmini] | ToF (IR laser) | ~12 m | UART | ~ | | -| [Holybro ST VL53L1X Lidar] | ToF (IR) | up to ~4 m | I2C | ~ | | -| [LeddarOne] | ToF (IR) | 1 cm – 40 m | UART | ~ | | -| [Lidar-Lite] | ToF (IR laser) | 5 cm – 40 m | I2C, PWM | ~ | | -| [LightWare SF11/C] | ToF (IR laser) | up to ~120 m | UART, I2C | ~ | | -| [LightWare LW20/C] | ToF (IR laser) | up to ~100 m | I2C | ~ | Waterproof (IP67) + servo | -| [LightWare SF45/B] | ToF (IR laser) | ~50 m | UART | ~ | Rotary lidar (collision prevention) | -| [MaxBotix I2CXL-MaxSonar-EZ] | Ultrasonic | | I2C | ~ | | -| [RaccoonLab Cyphal & DroneCAN µRANGEFINDER] | ToF (IR) | ~0.1 m – ~8 m | DroneCAN, Cyphal | ~ | | -| [Sony AS-DT1] | ToF | up to 40 m | UART | ~ | Multipoint distance sensor | -| [TeraRanger Evo 60 m] | ToF (IR) | 0.5 m – 60 m | I2C | ~ | | -| [TeraRanger Evo 600Hz] | ToF (IR) | 0.75 m – 8 m | I2C | ~ | High update rate (600 Hz) | -| [LightWare SF02] _(disc.)_ | ToF (IR laser) | ~50 m | UART | ~ | Discontinued | -| [LightWare SF10/A] _(disc.)_ | ToF (IR laser) | ~25 m | UART, I2C | ~ | Discontinued | -| [LightWare SF10/B] _(disc.)_ | ToF (IR laser) | ~50 m | UART, I2C | ~ | Discontinued | -| [LightWare SF10/C] _(disc.)_ | ToF (IR laser) | ~100 m | UART, I2C | ~ | Discontinued | -| [Lanbao PSK-CM8JL65-CC5] _(disc.)_ | ToF (IR) | 0.17 m – 8 m | UART | ✖️ | Discontinued | -| [Smartmicro Drone Altimeter] | Microwave radar | 1 m to 175 m | DroneCAN | ~ | | -| [TeraRanger One] _(disc.)_ | ToF (IR) | ~0.2 m – ~14 m (typical) | I2C (adapter required) | ~ | Discontinued | +| Rangefinder | Technology | Range (min – max) | Connections | NDAA | 备注 | +| ------------------------------------------- | ---------------------------------- | ------------------------------------------------------------- | ---------------- | ----------------- | ------------------------------------------------------ | +| [Ainstein US-D1 Standard Radar Altimeter] | Microwave radar | ~50 m | UART | ✔️ | | +| [ARK DIST SR] | ToF (850 nm IR) | 8 cm to ~30 m | DroneCAN, UART | ✔️ | | +| [ARK DIST MR] | ToF (IR) | 8 cm to ~50 m | DroneCAN, UART | ✔️ | | +| [Benewake TFmini] | ToF (IR laser) | ~12 m | UART | ~ | | +| [Garmin LIDAR-Lite v3] | ToF (IR laser) | up to 40 m | I2C, PWM | ~ | PX4 caps range to 35 m or less | +| [Holybro ST VL53L1X Lidar] | ToF (IR) | up to ~4 m | I2C | ~ | | +| [LeddarOne] | ToF (IR) | 1 cm – 40 m | UART | ~ | | +| [LightWare SF11/C] | ToF (IR laser) | up to ~120 m | UART, I2C | ~ | | +| [LightWare LW20/C] | ToF (IR laser) | up to ~100 m | I2C | ~ | Waterproof (IP67) + servo | +| [LightWare SF45/B] | ToF (IR laser) | ~50 m | UART | ~ | Rotary lidar (collision prevention) | +| [MaxBotix I2CXL-MaxSonar-EZ] | Ultrasonic | | I2C | ~ | | +| [RaccoonLab Cyphal & DroneCAN µRANGEFINDER] | ToF (IR) | ~0.1 m – ~8 m | DroneCAN, Cyphal | ~ | | +| [Sony AS-DT1] | ToF | up to 40 m | UART | ~ | Multipoint distance sensor | +| [LightWare SF02] _(disc.)_ | ToF (IR laser) | ~50 m | UART | ~ | Discontinued | +| [LightWare SF10/A] _(disc.)_ | ToF (IR laser) | ~25 m | UART, I2C | ~ | Discontinued | +| [LightWare SF10/B] _(disc.)_ | ToF (IR laser) | ~50 m | UART, I2C | ~ | Discontinued | +| [LightWare SF10/C] _(disc.)_ | ToF (IR laser) | ~100 m | UART, I2C | ~ | Discontinued | +| [Lanbao PSK-CM8JL65-CC5] _(disc.)_ | ToF (IR) | 0.17 m – 8 m | UART | ✖️ | Discontinued | +| [Smartmicro Drone Altimeter] | Microwave radar | 1 m to 175 m | DroneCAN | ~ | | +| [TeraRanger Evo 60m] _(disc.)_ | ToF (IR) | 0.5 m – 60 m | I2C | ~ | Discontinued | +| [TeraRanger Evo 600Hz] _(disc.)_ | ToF (IR) | 0.75 m – 8 m | I2C | ~ | Discontinued | +| [TeraRanger Evo 3m] _(disc.)_ | ToF (IR) | 0.1 m – 3 m | I2C | ~ | Discontinued | +| [TeraRanger One] _(disc.)_ | ToF (IR) | 0.2 m – 14 m | I2C | ~ | Discontinued | [Ainstein US-D1 Standard Radar Altimeter]: ../sensor/ulanding_radar.md [ARK DIST SR]: ../dronecan/ark_dist.md [ARK DIST MR]: ../dronecan/ark_dist_mr.md [Benewake TFmini]: ../sensor/tfmini.md +[Garmin LIDAR-Lite v3]: ../sensor/lidar_lite.md [Holybro ST VL53L1X Lidar]: #holybro-st-vl53l1x-lidar [Lanbao PSK-CM8JL65-CC5]: ../sensor/cm8jl65_ir_distance_sensor.md [LeddarOne]: ../sensor/leddar_one.md -[Lidar-Lite]: ../sensor/lidar_lite.md [LightWare Lidar]: ../sensor/sfxx_lidar.md [LightWare SF11/C]: ../sensor/sfxx_lidar.md [LightWare LW20/C]: ../sensor/sfxx_lidar.md @@ -59,8 +60,9 @@ There may also be other DroneCAN rangefinders than those listed here. [MaxBotix I2CXL-MaxSonar-EZ]: #maxbotix-i2cxl-maxsonar-ez [Smartmicro Drone Altimeter]: ../dronecan/smartmicro_t132.md [Sony AS-DT1]: ../sensor/sony_asdt1.md -[TeraRanger Evo 60 m]: ../sensor/teraranger.md +[TeraRanger Evo 60m]: ../sensor/teraranger.md [TeraRanger Evo 600Hz]: ../sensor/teraranger.md +[TeraRanger Evo 3m]: ../sensor/teraranger.md [TeraRanger One]: ../sensor/teraranger.md These adaptors allows you to connect a non-CAN rangefinder via the CAN interface. @@ -90,10 +92,10 @@ The [VL53L1X](https://holybro.com/products/st-vl53l1x-lidar) is a state-of-the-a It comes with a JST GHR 4 pin connector that is compatible with the I2C port on [Pixhawk 4](../flight_controller/pixhawk4.md), [Pixhawk 5X](../flight_controller/pixhawk5x.md), and other flight controllers that follow the [Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf). -### Lidar-Lite +### Garmin LIDAR-Lite -[Lidar-Lite](../sensor/lidar_lite.md) is a compact, high-performance optical distant measurement rangefinder. -它的传感器范围为 (5cm - 40m),可以连接到 PWM 或 I2C 端口。 +The [Garmin LIDAR-Lite v3](../sensor/lidar_lite.md) is a compact laser time-of-flight rangefinder with a range of up to 40 m (PX4 caps this to 35 m or less). +It can be connected to either I2C or PWM ports. ### MaxBotix I2CXL-MaxSonar-EZ @@ -120,10 +122,11 @@ PX4 configures the sensor baud rate and measurement output from the driver. ### TeraRanger 测距仪 -[TeraRanger](../sensor/teraranger.md) provide a number of lightweight distance measurement sensors based on infrared Time-of-Flight (ToF) technology. -他们通常比声纳更快、范围更大、比基于激光的系统更小、更轻。 + -PX4 提供以下通过 I2C总线连接的型号:TeraRanger One, TeraRanger Evo 60m 和 TeraRanger Evo 600Hz。 +[Terabee TeraRanger](../sensor/teraranger.md) sensors are small, lightweight rangefinders based on infrared Time-of-Flight (ToF) technology, with maximum ranges from 3 m to 60 m (depending on the model). + +PX4 supports the following models connected via the I2C bus: TeraRanger Evo 60m, TeraRanger Evo 600Hz, TeraRanger Evo 3m and TeraRanger One. ### Ainstein US-D1 标准雷达高度计 @@ -198,6 +201,23 @@ These include (non exhaustively): - [EKF2_RNG_SFE](../advanced_config/parameter_reference.md#EKF2_RNG_SFE) - Range finder range dependent noise scaler. - [EKF2_RNG_NOISE](../advanced_config/parameter_reference.md#EKF2_RNG_NOISE) - Measurement noise for range finder fusion +### Health Reporting + +PX4 reports the rangefinder status to ground stations in the [SYS_STATUS](https://mavlink.io/en/messages/common.html#SYS_STATUS) message, using the `MAV_SYS_STATUS_SENSOR_LASER_POSITION` bit (this bit is used for all distance sensor types, not just lasers): + +- `onboard_control_sensors_present`: set once any distance sensor has published data. +- `onboard_control_sensors_health`: cleared if a required distance sensor is missing or stops providing valid data (no update for more than 1 second). + +The required distance sensors are the first [SYS_HAS_NUM_DIST](../advanced_config/parameter_reference.md#SYS_HAS_NUM_DIST) sensors. +For example, with `SYS_HAS_NUM_DIST` set to 2 and three sensors connected, only the first two affect the health bit. +A required sensor that fails also blocks arming. + +WARNING : `SYS_HAS_NUM_DIST` is `0` by default, which means no distance sensor is required. +The health bit is then always reported as healthy, even if a rangefinder stops working. +Set `SYS_HAS_NUM_DIST` if you want rangefinder failures to be reported. + +You can check these bits in the `SYS_STATUS` message using the [QGroundControl MAVLink Inspector](#qgroundcontrol-mavlink-inspector). + ## 测试 The easiest way to test the rangefinder is to vary the range and compare to the values detected by PX4. diff --git a/docs/zh/sensor/teraranger.md b/docs/zh/sensor/teraranger.md index 1a8e95c33bc..d1cff6f2bfa 100644 --- a/docs/zh/sensor/teraranger.md +++ b/docs/zh/sensor/teraranger.md @@ -1,46 +1,149 @@ -# TeraRanger Rangefinders (Discontinued) +# Terabee TeraRanger Rangefinders (Discontinued) + + :::warning TeraRanger Evo sensors were discontinued by Terabee in May 2024. -Limited stock may still be available from third-party resellers such as [Tribotix](https://tribotix.com/product/teraranger-evo-60m/). +Limited stock may still be available from third-party resellers (see [Where to Buy](#store)). ::: -TeraRanger provide a number of lightweight distance measurement sensor based on infrared Time-of-Flight (ToF) technology. -他们通常比声纳更快、范围更大、比基于激光的系统更小、更轻。 - -PX4 supports: - -- [TeraRanger Evo 60m](https://tribotix.com/product/teraranger-evo-60m/) (0.5 – 60 m) -- [TeraRanger Evo 600Hz](https://tribotix.com/product/teraranger-evo-600hz/) (0.75 - 8 m) +Terabee TeraRanger sensors are small, lightweight [rangefinders](../sensor/rangefinders.md) based on infrared Time-of-Flight (ToF) technology, with maximum ranges from 3 m to 60 m (depending on the model). +They connect to the flight controller using I2C. :::info -PX4 also supports _TeraRanger One_ (I2C adapter required). -This has been discontinued. +The driver for these rangefinders is not included in PX4 firmware by default. +See [Firmware Support](#firmware_support) for how to add it. ::: -## 购买渠道 +## Supported Models {#supported_models} -- TBD +PX4 supports the following models. -## 针脚定义 +| Model | 范围 | Current draw | [SENS\_EN\_TRANGER][SENS_EN_TRANGER] | 备注 | +| -------------------- | ------------------------ | ------------ | ------------------------------------ | ---------------------------------------------------- | +| TeraRanger Evo 60m | 0.5–60 m | 90–330 mA | `3` | Requires the Evo I2C/UART backboard. | +| TeraRanger Evo 600Hz | 0.75–8 m | 95–190 mA | `4` | Requires the Evo I2C/UART backboard. | +| TeraRanger Evo 3m | 0.1–3 m | 70–250 mA | `5` | Requires the Evo I2C/UART backboard. | +| TeraRanger One | 0.2–14 m | | `2` | | -## 布线 +[SENS_EN_TRANGER]: ../advanced_config/parameter_reference.md#SENS_EN_TRANGER -All TeraRanger sensors must be connected via the I2C bus. +## Specifications {#specifications} -## 软件配置 +The following specifications apply to TeraRanger Evo sensors fitted with the Evo I2C/UART backboard. -The sensors are enabled using the parameter [SENS_EN_TRANGER](../advanced_config/parameter_reference.md#SENS_EN_TRANGER) (you can set the type of sensor or that PX4 should auto-detect the type). +- **Technology:** Infrared Time-of-Flight (LED) +- **Field of view:** Approx. 2° (Evo 60m) +- **Interface:** I2C (3.3 V logic, address `0x31`) +- **Input voltage:** 5 V DC ±5% +- **Dimensions:** Approx. 29 x 29 x 22 mm (sensor and backboard) +- **Weight:** 9 g (sensor) + 3 g (backboard) + +## Where to Buy {#store} + +TeraRanger sensors are no longer sold by Terabee. +At the time of writing the following are still listed by the reseller Tribotix: + +- [TeraRanger Evo 60m](https://tribotix.com/product/teraranger-evo-60m/) +- [TeraRanger Evo 600Hz](https://tribotix.com/product/teraranger-evo-600hz/) +- [TeraRanger Evo 3m](https://tribotix.com/product/teraranger-evo-3m/) + +Select the **I2C/UART** interface option when ordering (PX4 cannot use the USB backboard). + +## Hardware Setup {#hardware_setup} + +### Mounting {#mounting} + +PX4 assumes that the sensor is facing down (the orientation cannot be configured). + +For TeraRanger Evo sensors: + +- Do not mount anything directly in front of the sensor, or within a cone of approximately ±15° around its optical axis. +- Within the first metre, avoid highly reflective objects within a cone of approximately ±45° around the optical axis. +- Do not add a cover in front of the sensor. +- Rotor blades in the field of view can affect the readings. + +### Pinouts {#pinouts} + +TeraRanger Evo sensors must be fitted with the Evo I2C/UART backboard, which has a single 9-pin Hirose DF13 connector. + +| 针脚 | 信号 | 描述 | +| -- | --- | -------------------------------------------------------------- | +| 1 | Tx | UART transmit (3.3 V logic) | +| 2 | Rx | UART receive (3.3 V logic) | +| 3 | GND | Ground | +| 4 | SDA | I2C data (3.3 V logic) | +| 5 | SCL | I2C clock (3.3 V logic) | +| 6 | - | Reserved | +| 7 | 5V | +5 V supply input | +| 8 | GND | Ground | +| 9 | - | Reserved | + +### Wiring {#wiring} + +All TeraRanger sensors must be connected via the I2C bus, using an external `I2C` port on the flight controller. + +| Backboard pin | Connect to | +| ------------------------------- | ------------------------- | +| 4 (SDA) | Flight controller I2C SDA | +| 5 (SCL) | Flight controller I2C SCL | +| 7 (5V) | 5 V DC supply | +| 3 or 8 (GND) | Flight controller GND | + +The UART pins are not used by PX4. + +The sensor requires a 5 V DC (±5%) supply, and can draw up to 330 mA depending on the [supported model](#supported_models). +Check that the flight controller port can supply this, or power the sensor from a separate supply that shares a ground with the flight controller. + +The backboard has built-in 10 kΩ pull-up resistors on SDA and SCL, so do not add further pull-ups on the same bus. +The sensor must be left at its default I2C address (`0x31`). + +## Firmware Support {#firmware_support} + +The rangefinder is supported by the [teraranger](../modules/modules_driver_distance_sensor.md#teraranger) driver, which is built into firmware by the [board configuration](../hardware/porting_guide_config.md) key `CONFIG_DRIVERS_DISTANCE_SENSOR_TERARANGER=y`. + +The driver is not part of the common set of rangefinder drivers (`CONFIG_COMMON_DISTANCE_SENSOR`), so it is only present in the firmware for boards that set that key. + +To check your board, look for the key in its configuration file, `boards///default.px4board`, or check whether [SENS\_EN\_TRANGER][SENS_EN_TRANGER] is listed in _QGroundControl_ (parameters are only shown for drivers that are in the firmware). + +To add the driver, add the key to the board's `default.px4board` file, or enable it in [boardconfig](../hardware/porting_guide_config.md#px4-menuconfig-setup) under **Drivers > Distance sensors**, and then [build and upload the firmware](../dev_setup/building_px4.md). + +The driver does not start until it is enabled using the parameter in [PX4 Configuration](#px4_configuration). + +## PX4 Configuration {#px4_configuration} + +Set [SENS\_EN\_TRANGER][SENS_EN_TRANGER] to the value for your sensor in the [Supported Models](#supported_models) table, and then reboot. + +You can instead set the parameter to `1` to have PX4 detect the sensor. :::info -If using auto-detect for Evo sensors the minimum and maximum values for the range are set to the lowest and highest possible readings across the Evo family (currently 0.5 - 60 m). +If using auto-detect for Evo sensors the minimum and maximum values for the range are set to the lowest and highest possible readings across the Evo family (currently 0.1–60 m). In order to use the correct max/min values the appropriate model of the Evo sensor should be set in the parameter (instead of using autodetect). ::: -:::tip -The driver for this rangefinder is usually present in firmware. If missing, you would also need to add the driver (`distance_sensor/teraranger`) to the board configuration. -::: +If the parameter is not available in _QGroundControl_ then the driver is not in the firmware: see [Firmware Support](#firmware_support). -## 更多信息 +The configuration that is common to all rangefinders, such as the sensor position offsets used by the estimator, is covered in [Rangefinders > Configuration/Setup](../sensor/rangefinders.md#configuration). -- [Modules Reference: Distance Sensor (Driver) : teraranger](../modules/modules_driver_distance_sensor.md#teraranger) +## Testing {#testing} + +You can check that the driver is running, and see its error counters, using the _QGroundControl MAVLink Console_: + +```sh +teraranger status +``` + +You can observe the published measurements with: + +```sh +listener distance_sensor +``` + +The measurements can also be viewed in the `DISTANCE_SENSOR` message in the _QGroundControl MAVLink Inspector_. +For more information see [Rangefinders > Testing](../sensor/rangefinders.md#testing). + +## Further Information {#further_information} + +- [Modules Reference: Distance Sensor (Driver): teraranger](../modules/modules_driver_distance_sensor.md#teraranger) +- [User Manual for TeraRanger Evo single point distance sensors and backboards](https://web.archive.org/web/20240611084754/http://www.terabee.com/wp-content/uploads/2021/02/User-Manual-for-TeraRanger-Evo-single-point-distance-sensors-and-backboards.pdf) (Terabee, archived copy) +- [TeraRanger Evo Specification Sheet](https://acroname.com/sites/default/files/assets/teraranger-evo-specification-sheet.pdf) (Terabee, hosted by Acroname)