diff --git a/docs/zh/SUMMARY.md b/docs/zh/SUMMARY.md
index 7264bc56c5d..725f7458758 100644
--- a/docs/zh/SUMMARY.md
+++ b/docs/zh/SUMMARY.md
@@ -32,6 +32,7 @@
- [Vision Target Estimator Deep Dive](advanced_features/vision_target_estimator_advanced.md)
- [地形跟随/保持](flying/terrain_following_holding.md)
- [抛飞启动](flight_modes_mc/throw_launch.md)
+ - [Gain compression](features_mc/gain_compression.md)
- [Assembly](assembly/assembly_mc.md)
- [配置/调参](config_mc/index.md)
- [自动调优](config/autotune_mc.md)
@@ -400,6 +401,7 @@
- [MAVLink Camera (v2 protocol)](camera/mavlink_v2_camera.md)
- [MAVLink Camera (v1 protocol)](camera/mavlink_v1_camera.md)
- [Camera Connected to FC Outputs](camera/fc_connected_camera.md)
+ - [AirPixel TAG-E (Sony ILX-LR1)](camera/airpixel_tag_e.md)
- [Gimbal \(Mount\) Configuration](advanced/gimbal_control.md)
- [Grippers](peripherals/gripper.md)
- [Servo Gripper](peripherals/gripper_servo.md)
@@ -794,11 +796,11 @@
- [SensorBaro](msg_docs/SensorBaro.md)
- [SensorCombined](msg_docs/SensorCombined.md)
- [SensorCorrection](msg_docs/SensorCorrection.md)
+ - [SensorGnss](msg_docs/SensorGnss.md)
- [SensorGnssRelative](msg_docs/SensorGnssRelative.md)
- [SensorGnssRf](msg_docs/SensorGnssRf.md)
- [SensorGnssSpectrum](msg_docs/SensorGnssSpectrum.md)
- [SensorGnssStatus](msg_docs/SensorGnssStatus.md)
- - [SensorGps](msg_docs/SensorGps.md)
- [SensorGyro](msg_docs/SensorGyro.md)
- [SensorGyroFft](msg_docs/SensorGyroFft.md)
- [SensorGyroFifo](msg_docs/SensorGyroFifo.md)
@@ -831,6 +833,7 @@
- [VehicleAirData](msg_docs/VehicleAirData.md)
- [VehicleConstraints](msg_docs/VehicleConstraints.md)
- [VehicleControlMode](msg_docs/VehicleControlMode.md)
+ - [VehicleGnss](msg_docs/VehicleGnss.md)
- [VehicleImu](msg_docs/VehicleImu.md)
- [VehicleImuStatus](msg_docs/VehicleImuStatus.md)
- [VehicleLocalPositionSetpoint](msg_docs/VehicleLocalPositionSetpoint.md)
@@ -889,6 +892,7 @@
- [常见问题](debug/faq.md)
- [控制台](debug/consoles.md)
- [MAVLink 控制台](debug/mavlink_shell.md)
+ - [DroneCAN Shell](debug/dronecan_shell.md)
- [系统控制台](debug/system_console.md)
- [Debugging with GDB](debug/gdb_debugging.md)
- [SWD Debug Port](debug/swd_debug.md)
@@ -973,6 +977,7 @@
- [Fuzz Tests](test_and_ci/fuzz_tests.md)
- [Sanitizers](test_and_ci/sanitizers.md)
- [持续集成](test_and_ci/continous_integration.md)
+ - [AI Pull Request Review](test_and_ci/ai_review.md)
- [Integration Testing](test_and_ci/integration_testing.md)
- [MAVSDK集成测试](test_and_ci/integration_testing_mavsdk.md)
- [PX4 ROS 2 Interface Library Integration Testing](test_and_ci/integration_testing_px4_ros2_interface.md)
diff --git a/docs/zh/advanced/pps_time_sync.md b/docs/zh/advanced/pps_time_sync.md
index 76733f88b3f..726f08e6028 100644
--- a/docs/zh/advanced/pps_time_sync.md
+++ b/docs/zh/advanced/pps_time_sync.md
@@ -65,7 +65,7 @@ When set to `0` (default), the driver uses the first available GPS instance.
You can find the device ID by running:
```sh
-listener sensor_gps
+listener sensor_gnss
```
### 布线
@@ -142,5 +142,5 @@ See also:
The PPS signal provides much higher temporal precision than the transmitted time data, which has latency and jitter from serial communication.
:::warning
-If the PPS driver does not send any data for 5 seconds (despite having `PPS_CAP_ENABLE` set to 1), the corresponding `SENS_GPS*_DELAY` parameter will be used instead for estimating the latency.
+If the PPS driver does not send any data for 5 seconds (despite having `PPS_CAP_ENABLE` set to 1), the corresponding `SENS_GNSS*_DELAY` parameter will be used instead for estimating the latency.
:::
diff --git a/docs/zh/advanced_config/gnss_degraded_or_denied_flight.md b/docs/zh/advanced_config/gnss_degraded_or_denied_flight.md
index 79a5297d32f..a195e68863f 100644
--- a/docs/zh/advanced_config/gnss_degraded_or_denied_flight.md
+++ b/docs/zh/advanced_config/gnss_degraded_or_denied_flight.md
@@ -70,7 +70,7 @@ To enable the mode:
1. Set [EKF2_GPS_MODE](../advanced_config/parameter_reference.md#EKF2_GPS_MODE) to `1`.
2. Ensure that GNSS arming checks are enabled (a reliable GNSS signal is required before arming):
- [COM_ARM_WO_GPS](../advanced_config/parameter_reference.md#COM_ARM_WO_GPS) - set to `0`
- - [EKF2_GPS_CHECK](../advanced_config/parameter_reference.md#EKF2_GPS_CHECK) - set to default.
+ - [GNSS_CHECK](../advanced_config/parameter_reference.md#GNSS_CHECK) - set to default.
## 另见
diff --git a/docs/zh/advanced_config/prearm_arm_disarm.md b/docs/zh/advanced_config/prearm_arm_disarm.md
index b42c739a09d..493e68806d3 100644
--- a/docs/zh/advanced_config/prearm_arm_disarm.md
+++ b/docs/zh/advanced_config/prearm_arm_disarm.md
@@ -15,7 +15,7 @@ Ground stations may display _disarmed_ for pre-armed vehicles.
Users can control progression though these states using a [safety switch](../getting_started/px4_basic_concepts.md#safety-switch) on the vehicle (optional) _and_ an [arming switch/button](#arm_disarm_switch), [arming gesture](#arm_disarm_gestures), or _MAVLink command_ on the ground controller:
-- A _safety switch_ is a control _on the vehicle_ that must be engaged before the vehicle can be armed, and which may also prevent prearming (depending on the configuration).
+- A _safety switch_ is a control _on the vehicle_ that must be engaged before the vehicle can be armed, and which may also prevent pre-arming (depending on the configuration).
通常,安全开关被集成到 GPS 单元中,但也可能是一个单独的物理组件。
:::warning
@@ -28,7 +28,7 @@ Users can control progression though these states using a [safety switch](../get
- An _arming gesture_ is a stick movement _on an RC controller_ that can be used as an alternative to an arming switch.
-- 也可以通过地面站发送 MAVLink 命令来解锁/锁定载具。
+- MAVLink commands can also be sent by a ground control station to pre-arm, arm, or disarm a vehicle.
如果在解锁后的一段时间内没有起飞,和如果着陆后没有手动锁定, PX4 会自动锁定载具。这减少了解锁的载具在地面上的时间。
@@ -93,6 +93,15 @@ The feature is configured using the following timeouts.
| [COM_DISARM_LAND](../advanced_config/parameter_reference.md#COM_DISARM_LAND) | 降落后自动锁定超时时间. Default: 2s (-1 to disable). |
| [COM_DISARM_PRFLT](../advanced_config/parameter_reference.md#COM_DISARM_PRFLT) | Time-out for auto disarm if too slow to takeoff. Default: 10s (-1 to disable). |
+By default, the vehicle keeps safety off after disarming.
+If [COM_FORCE_SAFETY](#COM_FORCE_SAFETY) is set to `1`, safety is re-enabled on disarm, so it must be turned off again (by switch or MAVLink command, depending on [COM_SAFETY_MODE](#COM_SAFETY_MODE)) before the next arming.
+In modes that pre-arm when safety is turned off, this also exits the pre-armed state.
+This parameter has no effect when `COM_SAFETY_MODE` is set to `0`.
+
+| Parameter | 描述 |
+| ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
+| [COM_FORCE_SAFETY](../advanced_config/parameter_reference.md#COM_FORCE_SAFETY) | Re-enable safety when the vehicle disarms. Default: `0` (Disabled). |
+
## Auto-Arming on Boot
The vehicle can be configured to arm automatically on boot once all preflight checks pass,
@@ -115,14 +124,14 @@ Ensure the vehicle is in a safe state before powering on.
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [COM_ARM_ON_BOOT](../advanced_config/parameter_reference.md#COM_ARM_ON_BOOT) | Arm automatically once preflight checks pass after boot. Default: `0` (Disabled). |
-## Pre-Arm Checks
+## Pre-Arm Checks {#prearm_checks}
To reduce accidents, vehicles are only allowed to arm certain conditions are met (some of which are configurable).
Arming is prevented if:
- The vehicle is not in a "healthy" state.
For example it is not calibrated, or is reporting sensor errors.
-- The vehicle has a [safety switch](../getting_started/px4_basic_concepts.md#safety-switch) that has not been engaged.
+- The vehicle still has its [safety state](#safety_state) set to _ON_. This could for instance be a [safety switch](../getting_started/px4_basic_concepts.md#safety-switch) that has not been engaged.
- The vehicle has a [remote ID](../peripherals/remote_id.md) that is unhealthy or otherwise not ready
- A VTOL vehicle is in fixed-wing mode ([by default](../advanced_config/parameter_reference.md#CBRK_VTOLARMING)).
- The current mode requires an adequate global position estimate but the vehicle does not have GPS lock.
@@ -133,7 +142,7 @@ The current failed checks can be viewed in QGroundControl (v4.2.0 and later) [Ar
Note that internally PX4 runs arming checks at 10Hz.
A list of the failed checks is kept, and if the list changes PX4 emits the current list using the [Events interface](../concept/events_interface.md).
The list is also sent out when the GCS connects.
-Effectively the GCS knows the status of prearm checks immediately, both when disarmed and armed.
+Effectively the GCS knows the status of pre-arm checks immediately, both when disarmed and armed.
:::details
Implementation notes for developers
@@ -147,108 +156,89 @@ QGC implementation: [HealthAndArmingCheckReport.cc](https://github.com/mavlink/q
PX4 also emits a subset of the arming check information in the [SYS_STATUS](https://mavlink.io/en/messages/common.html#SYS_STATUS) message (see [MAV_SYS_STATUS_SENSOR](https://mavlink.io/en/messages/common.html#MAV_SYS_STATUS_SENSOR)).
-## Arming Sequence: Pre Arm Mode & Safety Button
+## Arming Sequence: Safety State {#safety_state}
-The arming sequence depends on whether or not there is a _safety switch_, and is controlled by the parameters [COM_PREARM_MODE](#COM_PREARM_MODE) (Prearm mode) and [CBRK_IO_SAFETY](#CBRK_IO_SAFETY) (I/O safety circuit breaker).
+The arming sequence depends on whether or not there is a _safety switch_, and is controlled by the parameter [COM_SAFETY_MODE](#COM_SAFETY_MODE). Changes to the parameter only take effect after a reboot.
-The [COM_PREARM_MODE](#COM_PREARM_MODE) parameter defines when/if pre-arm mode is enabled ("safe"/non-throttling actuators are able to move):
+When disarmed (or pre-armed), the safety state can either be _ON_ (a.k.a. _SAFE_), or _OFF_ (a.k.a. _DANGEROUS_). When it is _ON_, arming will always be prevented. When it is _OFF_, the vehicle can be armed for as long as the [pre-arm checks](#prearm_checks) have passed.
-- _Disabled_: Pre-arm mode disabled (there is no stage where only "safe"/non-throttling actuators are enabled).
-- _Safety Switch_ (Default): The pre-arm mode is enabled by the safety switch.
- If there is no safety switch then pre-arm mode will not be enabled.
-- _Always_: Prearm mode is enabled from power up.
+Additionally, the [COM_PREARM_MODE](#COM_PREARM_MODE) parameter defines when/if pre-arm mode is enabled ("safe"/non-throttling actuators are able to move):
-If there is a safety switch then this will be a precondition for arming.
-If there is no safety switch the I/O safety circuit breaker must be engaged ([CBRK_IO_SAFETY](#CBRK_IO_SAFETY)), and arming will depend only on the arm command.
+- `Disabled` (Default): Pre-arm mode disabled (there is no stage where only non-throttling actuators are enabled).
+- `When safety off`: Pre-arm mode is enabled when safety is turned off.
+- `Always`: Pre-arm mode is enabled from power up.
-The sections below detail the startup sequences for the different configurations
+The sections below detail the startup sequences for the different configurations of [COM_SAFETY_MODE](#COM_SAFETY_MODE) and [COM_PREARM_MODE](#COM_PREARM_MODE).
-### 默认:COM_PREARM_MODE=Safety and Safety Switch
+### COM_SAFETY_MODE=Always off (Default) and COM_PREARM_MODE=Disabled (Default)
-The default configuration uses safety switch to prearm.
-From prearm you can then arm to engage all motors/actuators.
-It corresponds to: [COM_PREARM_MODE=1](#COM_PREARM_MODE) (safety switch) and [CBRK_IO_SAFETY=0](#CBRK_IO_SAFETY) (I/O safety circuit breaker disabled).
-
-The default startup sequence is:
-
-1. Power-up.
- - All actuators locked into disarmed position
- - Not possible to arm.
-2. Safety switch is pressed.
- - System now prearmed: non-throttling actuators can move (e.g. ailerons).
- - System safety is off: Arming possible.
-3. Arm command is issued.
- - The system is armed.
- - All motors and actuators can move.
-
-### COM_PREARM_MODE=Disabled and Safety Switch
-
-When prearm mode is _Disabled_, engaging the safety switch does not unlock the "safe" actuators, though it does allow you to then arm the vehicle.
-This corresponds to [COM_PREARM_MODE=0](#COM_PREARM_MODE) (Disabled) and [CBRK_IO_SAFETY=0](#CBRK_IO_SAFETY) (I/O safety circuit breaker disabled).
+The default configuration does not impose any additional safety measures. Arming is possible as soon as the rest of the system is ready.
The startup sequence is:
1. Power-up.
- All actuators locked into disarmed position
- - Not possible to arm.
-2. Safety switch is pressed.
- - _All actuators stay locked into disarmed position (same as disarmed)._
- - System safety is off: Arming possible.
-3. Arm command is issued.
- - The system is armed.
- - All motors and actuators can move.
-
-### COM_PREARM_MODE=Always and Safety Switch
-
-When prearm mode is _Always_, prearm mode is enabled from power up.
-To arm, you still need the safety switch.
-This corresponds to [COM_PREARM_MODE=2](#COM_PREARM_MODE) (Always) and [CBRK_IO_SAFETY=0](#CBRK_IO_SAFETY) (I/O safety circuit breaker disabled).
-
-The startup sequence is:
-
-1. Power-up.
- - System now prearmed: non-throttling actuators can move (e.g. ailerons).
- - Not possible to arm.
-2. Safety switch is pressed.
- - System safety is off: Arming possible.
-3. Arm command is issued.
- - The system is armed.
- - All motors and actuators can move.
-
-### COM_PREARM_MODE=Safety or Disabled and No Safety Switch
-
-With no safety switch, when `COM_PREARM_MODE` is set to _Safety_ or _Disabled_ prearm mode cannot be enabled (same as disarmed).
-This corresponds to [COM_PREARM_MODE=0 or 1](#COM_PREARM_MODE) (Disabled/Safety Switch) and [CBRK_IO_SAFETY=22027](#CBRK_IO_SAFETY) (I/O safety circuit breaker engaged).
-
-The startup sequence is:
-
-1. Power-up.
- - All actuators locked into disarmed position
- - System safety is off: Arming possible.
+ - System safety is off: Arming possible once the other pre-arm checks pass.
2. Arm command is issued.
- The system is armed.
- All motors and actuators can move.
-### COM_PREARM_MODE=Always and No Safety Switch
+### COM_SAFETY_MODE=Safety switch (physical or virtual via MAVLink) and COM_PREARM_MODE=When safety off
-When prearm mode is _Always_, prearm mode is enabled from power up.
-This corresponds to [COM_PREARM_MODE=2](#COM_PREARM_MODE) (Always) and [CBRK_IO_SAFETY=22027](#CBRK_IO_SAFETY) (I/O safety circuit breaker engaged).
+This configuration lets you use either the safety switch or a MAVLink command [MAV_CMD_DO_SET_SAFETY_SWITCH_STATE](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_SAFETY_SWITCH_STATE) to turn safety off. Note that sending the corresponding MAVLink command with SAFETY_SWITCH_STATE_SAFE also lets you turn safety back on, but the physical switch does \_not_ allow to go back to a safe state.
The startup sequence is:
1. Power-up.
- - System now prearmed: non-throttling actuators can move (e.g. ailerons).
- - System safety is off: Arming possible.
-2. Arm command is issued.
+ - All actuators locked into disarmed position
+ - Not possible to arm.
+2. Safety switch is pressed or a MAVLink command is received.
+ - System now pre-armed: non-throttling actuators can move (e.g. ailerons).
+ - System safety is off: Arming possible once the other pre-arm checks pass.
+3. Arm command is issued.
+ - The system is armed.
+ - All motors and actuators can move.
+
+### COM_SAFETY_MODE=Physical safety switch only and COM_PREARM_MODE=When safety off
+
+When safety mode is `Physical safety switch only`, you must press the safety switch to turn safety off. Note that pressing the safety switch again does _not_ allow to go back to a safe state.
+The MAVLink command is rejected.
+
+The startup sequence is:
+
+1. Power-up.
+ - All actuators locked into disarmed position
+ - Not possible to arm.
+2. Safety switch is pressed.
+ - System now pre-armed: non-throttling actuators can move (e.g. ailerons).
+ - System safety is off: Arming possible once the other pre-arm checks pass.
+3. Arm command is issued.
+ - The system is armed.
+ - All motors and actuators can move.
+
+### COM_SAFETY_MODE=MAVLink only and COM_PREARM_MODE=When safety off
+
+When safety mode is `MAVLink only`, you must send a MAVLink command [MAV_CMD_DO_SET_SAFETY_SWITCH_STATE](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_SAFETY_SWITCH_STATE) to turn safety off. Note that sending the corresponding MAVLink command with SAFETY_SWITCH_STATE_SAFE also lets you turn safety back on.
+Any physical safety switch is ignored.
+
+The startup sequence is:
+
+1. Power-up.
+ - All actuators locked into disarmed position
+ - Not possible to arm.
+2. A MAVLink command is received.
+ - System now pre-armed: non-throttling actuators can move (e.g. ailerons).
+ - System safety is off: Arming possible once the other pre-arm checks pass.
+3. Arm command is issued.
- The system is armed.
- All motors and actuators can move.
### 参数
-| Parameter | 描述 |
-| -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| [COM_PREARM_MODE](../advanced_config/parameter_reference.md#COM_PREARM_MODE) | Condition to enter prearmed mode. `0`: Disabled, `1`: Safety switch (prearm mode enabled by safety switch; if no switch present cannot be enabled), `2`: Always (prearm mode enabled from power up). Default: `1` (safety button). |
-| [CBRK_IO_SAFETY](../advanced_config/parameter_reference.md#CBRK_IO_SAFETY) | Circuit breaker for IO safety. |
+| Parameter | 描述 |
+| -------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
+| [COM_SAFETY_MODE](../advanced_config/parameter_reference.md#COM_SAFETY_MODE) | Condition to turn safety off. Vehicle arming is prevented for as long as safety is on. |
+| [COM_PREARM_MODE](../advanced_config/parameter_reference.md#COM_PREARM_MODE) | Condition to enter the prearmed state. |
+ - The following input combinations are supported:
- Position setpoint (only `x`, `y`, `z`)
- Velocity setpoint (only `vx`, `vy`, `vz`)
- Acceleration setpoint (only `afx`, `afy`, `afz`)
@@ -289,8 +289,14 @@ The following MAVLink messages and their particular fields and field values are
- PX4 supports the following `coordinate_frame` values (only): [MAV_FRAME_LOCAL_NED](https://mavlink.io/en/messages/common.html#MAV_FRAME_LOCAL_NED) and [MAV_FRAME_BODY_NED](https://mavlink.io/en/messages/common.html#MAV_FRAME_BODY_NED).
+ ::: info
+ `MAV_FRAME_BODY_NED` can only be used with velocity and acceleration setpoints, which are rotated from body to local frame using the vehicle heading.
+ Position setpoints are ignored (set to `NAN`) in this frame, because a position in a body-fixed frame is ambiguous; position setpoints must use `MAV_FRAME_LOCAL_NED`.
+
+:::
+
- [SET_POSITION_TARGET_GLOBAL_INT](https://mavlink.io/en/messages/common.html#SET_POSITION_TARGET_GLOBAL_INT)
- - The following input combinations are supported:
+ - The following input combinations are supported:
- Position setpoint (only `lat_int`, `lon_int`, `alt`)
- Velocity setpoint (only `vx`, `vy`, `vz`)
@@ -310,12 +316,13 @@ The following MAVLink messages and their particular fields and field values are
- The following input combinations are supported:
- Attitude/orientation (`SET_ATTITUDE_TARGET.q`) with thrust setpoint (`SET_ATTITUDE_TARGET.thrust`).
- Body rate (`SET_ATTITUDE_TARGET` `.body_roll_rate` ,`.body_pitch_rate`, `.body_yaw_rate`) with thrust setpoint (`SET_ATTITUDE_TARGET.thrust`).
+ - A message with attitude enabled and a zero or non-finite `q` (norm below 0.001) is ignored as a whole and does not count as the offboard signal.
### Fixed-wing
- [SET_POSITION_TARGET_LOCAL_NED](https://mavlink.io/en/messages/common.html#SET_POSITION_TARGET_LOCAL_NED)
- - The following input combinations are supported (via `type_mask`):
- - Position setpoint (`x`, `y`, `z` only; velocity and acceleration setpoints are ignored).
+ - The following input combinations are supported (via `type_mask`):
+ - Position setpoint (`x`, `y`, `z`).
- Specify the _type_ of the setpoint in `type_mask` (if these bits are not set the vehicle will fly in a flower-like pattern):
::: info
Some of the _setpoint type_ values below are not part of the MAVLink standard for the `type_mask` field.
@@ -332,10 +339,17 @@ The following MAVLink messages and their particular fields and field values are
- 12288: Loiter setpoint (fly a circle centred on setpoint).
- 16384: Idle setpoint (zero throttle, zero roll / pitch).
- - PX4 supports the coordinate frames (`coordinate_frame` field): [MAV_FRAME_LOCAL_NED](https://mavlink.io/en/messages/common.html#MAV_FRAME_LOCAL_NED) and [MAV_FRAME_BODY_NED](https://mavlink.io/en/messages/common.html#MAV_FRAME_BODY_NED).
+ - Position setpoint with velocity setpoint (`x`, `y`, `z` with `vx`, `vy`).
+ The vehicle follows a path through the position, tangent to the direction of the horizontal velocity (the velocity magnitude and `vz` are not used).
+ If the acceleration setpoint (`afx`, `afy`, `afz`) is also set, its component normal to the velocity is used as the path curvature.
+
+ - Velocity-only and acceleration-only setpoints are not supported: without a position setpoint the fixed-wing position controller does not generate new setpoints.
+
+ - PX4 supports the coordinate frame (`coordinate_frame` field): [MAV_FRAME_LOCAL_NED](https://mavlink.io/en/messages/common.html#MAV_FRAME_LOCAL_NED).
+ [MAV_FRAME_BODY_NED](https://mavlink.io/en/messages/common.html#MAV_FRAME_BODY_NED) is accepted, but position setpoints are ignored in this frame, and fixed-wing requires a position setpoint, so it cannot be used.
- [SET_POSITION_TARGET_GLOBAL_INT](https://mavlink.io/en/messages/common.html#SET_POSITION_TARGET_GLOBAL_INT)
- - The following input combinations are supported (via `type_mask`):
+ - The following input combinations are supported (via `type_mask`):
- Position setpoint (only `lat_int`, `lon_int`, `alt`)
- Specify the _type_ of the setpoint in `type_mask` (if these bits are not set the vehicle will fly in a flower-like pattern):
@@ -351,12 +365,17 @@ The following MAVLink messages and their particular fields and field values are
- 12288: Loiter setpoint (fly a circle centred on setpoint).
- 16384: Idle setpoint (zero throttle, zero roll / pitch).
+ - Position setpoint with velocity setpoint (`lat_int`, `lon_int`, `alt` with `vx`, `vy`), handled as for `SET_POSITION_TARGET_LOCAL_NED` above.
+
+ - Velocity-only and acceleration-only setpoints are not supported.
+
- PX4 supports the following `coordinate_frame` values (only): [MAV_FRAME_GLOBAL_INT](https://mavlink.io/en/messages/common.html#MAV_FRAME_GLOBAL_INT), [MAV_FRAME_GLOBAL_RELATIVE_ALT_INT](https://mavlink.io/en/messages/common.html#MAV_FRAME_GLOBAL_RELATIVE_ALT_INT), [MAV_FRAME_GLOBAL_TERRAIN_ALT_INT](https://mavlink.io/en/messages/common.html#MAV_FRAME_GLOBAL_TERRAIN_ALT_INT).
- [SET_ATTITUDE_TARGET](https://mavlink.io/en/messages/common.html#SET_ATTITUDE_TARGET)
- The following input combinations are supported:
- Attitude/orientation (`SET_ATTITUDE_TARGET.q`) with thrust setpoint (`SET_ATTITUDE_TARGET.thrust`).
- Body rate (`SET_ATTITUDE_TARGET` `.body_roll_rate` ,`.body_pitch_rate`, `.body_yaw_rate`) with thrust setpoint (`SET_ATTITUDE_TARGET.thrust`).
+ - A message with attitude enabled and a zero or non-finite `q` (norm below 0.001) is ignored as a whole and does not count as the offboard signal.
### Rover
diff --git a/docs/zh/flight_modes_fw/mission.md b/docs/zh/flight_modes_fw/mission.md
index b84210712e3..9e8b520cdb7 100644
--- a/docs/zh/flight_modes_fw/mission.md
+++ b/docs/zh/flight_modes_fw/mission.md
@@ -154,6 +154,8 @@ Mission Items:
- [MAV_CMD_NAV_TAKEOFF](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_TAKEOFF)
- [MAV_CMD_NAV_LOITER_TO_ALT](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_LOITER_TO_ALT)
- [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.
- [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_mc/mission.md b/docs/zh/flight_modes_mc/mission.md
index 6a197f422b4..b9a9d69ddde 100644
--- a/docs/zh/flight_modes_mc/mission.md
+++ b/docs/zh/flight_modes_mc/mission.md
@@ -156,6 +156,8 @@ Mission Items:
- [MAV_CMD_NAV_TAKEOFF](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_TAKEOFF)
- [MAV_CMD_NAV_LOITER_TO_ALT](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_LOITER_TO_ALT)
- [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.
- [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/getting_started/px4_basic_concepts.md b/docs/zh/getting_started/px4_basic_concepts.md
index 65343bde84d..c997ec3bbb6 100644
--- a/docs/zh/getting_started/px4_basic_concepts.md
+++ b/docs/zh/getting_started/px4_basic_concepts.md
@@ -207,7 +207,7 @@ Vehicles may include a _safety switch_ that must be engaged before the vehicle c
This switch is almost always integrated into the [GPS](../gps_compass/index.md) module that is connected to the Pixhawk `GPS1` port — along with the [buzzer](#buzzer) and [UI LED](#leds).
The switch may be disabled by default, though this depends on the particular flight controller and airframe configuration.
-You can disable/enable use of the switch with the [CBRK_IO_SAFETY](../advanced_config/parameter_reference.md#CBRK_IO_SAFETY) parameter.
+You can disable/enable use of the switch with the [COM_SAFETY_MODE](../advanced_config/parameter_reference.md#COM_SAFETY_MODE) parameter.
:::info
Safety switches are optional.
diff --git a/docs/zh/gps_compass/index.md b/docs/zh/gps_compass/index.md
index c754a29b93c..97e1d469d11 100644
--- a/docs/zh/gps_compass/index.md
+++ b/docs/zh/gps_compass/index.md
@@ -178,7 +178,7 @@ Compass calibration for an included compass part is covered in: [Compass Configu
## GNSS Data Overview
PX4 uses the subset of information that can be provided by most GNSS modules.
-This is written to the [SensorGps](../msg_docs/SensorGps.md) uORB message and used by the estimator as an input to global position estimation.
+This is written to the [SensorGnss](../msg_docs/SensorGnss.md) uORB message, and the selected receiver is passed to the estimator in [VehicleGnss](../msg_docs/VehicleGnss.md) as an input to global position estimation.
It is also streamed via MAVLink using messages such as [GPS_RAW_INT](https://mavlink.io/en/messages/common.html#GPS_RAW_INT) and [GPS2_RAW](https://mavlink.io/en/messages/common.html#GPS2_RAW).
Some of GNSS terms that are useful for interpreting the data include:
diff --git a/docs/zh/gps_compass/rtk_gps.md b/docs/zh/gps_compass/rtk_gps.md
index c0b75d6da9c..8ec9f008b08 100644
--- a/docs/zh/gps_compass/rtk_gps.md
+++ b/docs/zh/gps_compass/rtk_gps.md
@@ -58,7 +58,7 @@ It also highlights devices that connect via the CAN bus, and those which support
| [Septentrio mosaic-go](../gps_compass/septentrio_mosaic-go.md) | mosaic X5 / mosaic H | ✓ | | [Septentrio Dual Antenna] | ✓ |
| [SIRIUS RTK GNSS ROVER (F9P)](https://store-drotek.com/911-sirius-rtk-gnss-rover-f9p.html) | F9P | ✓ | | [Dual F9P] | |
| [SparkFun GPS-RTK2 Board - ZED-F9P](https://www.sparkfun.com/sparkfun-gps-rtk2-board-zed-f9p-qwiic-gps-15136.html) | F9P | ✓ | | [Dual F9P] | |
-| [Trimble MB-Two](../gps_compass/rtk_gps_trimble_mb_two.md) | F9P | ✓ | | ✓ | |
+| [Trimble MB-Two](../gps_compass/rtk_gps_trimble_mb_two.md) | F9P | ✓ | | | |
@@ -167,21 +167,28 @@ GPS can be used as a source for yaw fusion when using a single device with two a
Using GPS as a heading source has the benefit that yaw calculations are not impacted by magnetic interference.
Both approaches work comparing the time taken for a GNSS signal to reach two separated antennas.
-The minimum distance between antenna depends on the device but is of the order of 50 cm (check manufacturer documentation).
+Antennas should be at least 30 cm apart (check the manufacturer's documentation).
-The devices that can be used are listed in this way are listed in the **GPS Yaw** column of the table above, such as [Septentrio AsteRx-m3 Pro](../gps_compass/septentrio_asterx-rib.md), [Holybro H-RTK Unicore UM982 GPS](../gps_compass/rtk_gps_holybro_unicore_um982.md), and [Trimble MB-Two](../gps_compass/rtk_gps_trimble_mb_two.md).
+The devices that can be used in this way are listed in the **GPS Yaw** column of the table above, such as [Septentrio AsteRx-m3 Pro](../gps_compass/septentrio_asterx-rib.md) and [Holybro H-RTK Unicore UM982 GPS](../gps_compass/rtk_gps_holybro_unicore_um982.md).
The links in the table take you to the device-specific PX4 configuration.
-Generally when using a GNSS as a source of yaw information you will need to configure the following parameters:
+The heading is the bearing of the _baseline_, the vector from one antenna to the other.
+PX4 derives the baseline in the body frame (as shown [here][fc_orientation]) from the antenna positions, and uses a heading only when the length of the baseline the receiver reports is within 20% of it.
+Configure the slot of the receiver that reports the heading, matched by [SENS\_GNSSn\_ID][SENS_GNSSn_ID]:
-| Parameter | 设置 |
-| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| [GPS\_YAW\_OFFSET][GPS_YAW_OFFSET] | The angle made by the _baseline_ (the line between the two GPS antennas) relative to the vehicle x-axis (front/back axis, as shown [here][fc_orientation]). |
-| [EKF2\_GPS\_CTRL][EKF2_GPS_CTRL] | Set bit position 3 "Dual antenna heading" to `1` (i.e. add 8 to the parameter value). |
+| Parameter | 设置 |
+| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| [SENS\_GNSSn\_HDG][SENS_GNSSn_HDG] | `Moving base rover` for the rover of two receivers (the baseline runs from the moving base's antenna to the rover's), `Dual antenna` for a single receiver with two antennas. |
+| [SENS\_GNSSn\_OFFX/Y/Z][SENS_GNSSn_OFFX] | Antenna position of each receiver, the main antenna's for a receiver with two antennas. With `Moving base rover`, both receivers' slots must be set. |
+| [SENS\_GNSSn\_AUXX/Y/Z][SENS_GNSSn_AUXX] | With `Dual antenna`: position of the auxiliary antenna (see the device page for which antenna is which). |
+| [EKF2\_GPS\_CTRL][EKF2_GPS_CTRL] | Set bit position 3 "Dual antenna heading" to `1` (i.e. add 8 to the parameter value). |
-[GPS_YAW_OFFSET]: ../advanced_config/parameter_reference.md#GPS_YAW_OFFSET
+[SENS_GNSSn_HDG]: ../advanced_config/parameter_reference.md#SENS_GNSS0_HDG
+[SENS_GNSSn_OFFX]: ../advanced_config/parameter_reference.md#SENS_GNSS0_OFFX
+[SENS_GNSSn_AUXX]: ../advanced_config/parameter_reference.md#SENS_GNSS0_AUXX
+[SENS_GNSSn_ID]: ../advanced_config/parameter_reference.md#SENS_GNSS0_ID
[EKF2_GPS_CTRL]: ../advanced_config/parameter_reference.md#EKF2_GPS_CTRL
[fc_orientation]: ../config/flight_controller_orientation.md#calculating-orientation
diff --git a/docs/zh/gps_compass/rtk_gps_fem_mini2.md b/docs/zh/gps_compass/rtk_gps_fem_mini2.md
index 061ab7a2f07..b6b57385c8a 100644
--- a/docs/zh/gps_compass/rtk_gps_fem_mini2.md
+++ b/docs/zh/gps_compass/rtk_gps_fem_mini2.md
@@ -43,9 +43,6 @@ The pins on the 12-pin connector are numbered as shown below.
## 配置
-For heading estimation the two antennas need to be on the same level and at least 30 cm apart from each other.
-The direction that they are facing does not matter as it can be configured with the [GPS_YAW_OFFSET](../advanced_config/parameter_reference.md#GPS_YAW_OFFSET) parameter.
-
Configure the serial port on which the [MINI2 Receiver](http://www.femtomes.com/#/MiniII?type=0) will run using [GPS_1_CONFIG](../advanced_config/parameter_reference.md#GPS_1_CONFIG), and set the baud rate to 115200 using [SER_GPS1_BAUD](../advanced_config/parameter_reference.md#SER_GPS1_BAUD).
Once configured the receiver is used in the same way as any other [RTK GPS](../gps_compass/rtk_gps.md) (i.e. with respect to the Survey-in process).
diff --git a/docs/zh/gps_compass/rtk_gps_holybro_unicore_um982.md b/docs/zh/gps_compass/rtk_gps_holybro_unicore_um982.md
index 86fb896b320..362d70f8f9f 100644
--- a/docs/zh/gps_compass/rtk_gps_holybro_unicore_um982.md
+++ b/docs/zh/gps_compass/rtk_gps_holybro_unicore_um982.md
@@ -53,8 +53,7 @@ The Unicore module comes with two antennas, a primary (right connector) and a se
You will need to set the following parameters:
- [EKF2_GPS_CTRL](../advanced_config/parameter_reference.md#EKF2_GPS_CTRL): Set bit 3 (8) to enable dual antenna heading into the yaw estimation.
-- [GPS_YAW_OFFSET](../advanced_config/parameter_reference.md#GPS_YAW_OFFSET): Set heading offset to 0 if the primary antenna is in the front.
- The angle increases clock-wise, so set the offset to 90 degrees if the primary antenna is on the right side of the vehicle (and the secondary on the left side).
+- [SENS_GNSSn_HDG](../advanced_config/parameter_reference.md#SENS_GNSS0_HDG): `Dual antenna`, with [SENS_GNSSn_OFFX/Y/Z](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFX) the position of the primary antenna and [SENS_GNSSn_AUXX/Y/Z](../advanced_config/parameter_reference.md#SENS_GNSS0_AUXX) that of the secondary antenna.
### RTK Corrections
diff --git a/docs/zh/gps_compass/rtk_gps_trimble_mb_two.md b/docs/zh/gps_compass/rtk_gps_trimble_mb_two.md
index eb40bec59f4..04e9b4a8360 100644
--- a/docs/zh/gps_compass/rtk_gps_trimble_mb_two.md
+++ b/docs/zh/gps_compass/rtk_gps_trimble_mb_two.md
@@ -2,8 +2,6 @@
The [Trimble MB-Two RTK GPS receiver](https://oemgnss.trimble.com/en/products/receiver-modules/mb-two) is a high-end, dual-frequency [RTK GPS module](../gps_compass/rtk_gps.md) that can be configured as either base or rover.
-In addition to providing precise position information, the MB-Two can estimate heading angle (it has dual-antenna support). This is useful for situations where a compass cannot provide reliable heading information, for example when flying close to metal constructs.
-

## Required Firmware Options
@@ -52,17 +50,8 @@ The pins on the 28-pin connector are numbered as shown below:
First set the GPS protocol to Trimble ([GPS_x_PROTOCOL=3](../advanced_config/parameter_reference.md#GPS_1_PROTOCOL)).
-For heading estimation the two antennas need to be on the same level and at least 30 cm apart from each other.
-The direction that they are facing does not matter as it can be configured with the [GPS_YAW_OFFSET](../advanced_config/parameter_reference.md#GPS_YAW_OFFSET) parameter.
-
-:::info
-The `GPS_YAW_OFFSET` is the angle made by the _baseline_ (the line between the two GPS antennas) relative to the vehicle x-axis (front/back axis, as shown [here](../config/flight_controller_orientation.md#calculating-orientation)).
-:::
-
[Configure the serial port](../peripherals/serial_configuration.md) on which the Trimple will run using [GPS_1_CONFIG](../advanced_config/parameter_reference.md#GPS_1_CONFIG), and set the baud rate to 115200 using [SER_GPS1_BAUD](../advanced_config/parameter_reference.md#SER_GPS1_BAUD).
-To activate heading fusion for the attitude estimation, set the [EKF2_GPS_CTRL](../advanced_config/parameter_reference.md#EKF2_GPS_CTRL) parameter to enable _Dual antenna heading_.
-
:::info
-See also: [GPS > Configuration > GPS as Yaw/Heading Source](../gps_compass/index.md#configuring-gps-as-yaw-heading-source)
+PX4 doesn't use the MB-Two's dual-antenna heading.
:::
diff --git a/docs/zh/gps_compass/septentrio.md b/docs/zh/gps_compass/septentrio.md
index fb6dc7fdb5b..bb13ec2aba2 100644
--- a/docs/zh/gps_compass/septentrio.md
+++ b/docs/zh/gps_compass/septentrio.md
@@ -119,8 +119,8 @@ To switch rover and base in the moving base setup, switch `SEP_PORT1_CFG` and `S
It is important that the antennas are positioned at least 30 cm apart for a stable heading result.
In a normal setup, the main antenna is behind the auxiliary one.
-If another setup is used, the [SEP_YAW_OFFS](../advanced_config/parameter_reference.md#SEP_YAW_OFFS) value needs to be changed accordingly.
-If the antennas are not at the same height, the [SEP_PITCH_OFFS](../advanced_config/parameter_reference.md#SEP_PITCH_OFFS) value needs to be changed.
+With a dual-antenna receiver, set [SENS_GNSSn_HDG](../advanced_config/parameter_reference.md#SENS_GNSS0_HDG) to `Dual antenna`, [SENS_GNSSn_OFFX/Y/Z](../advanced_config/parameter_reference.md#SENS_GNSS0_OFFX) to the position of the main antenna and [SENS_GNSSn_AUXX/Y/Z](../advanced_config/parameter_reference.md#SENS_GNSS0_AUXX) to that of the auxiliary antenna.
+With two receivers, set `SENS_GNSSn_HDG` to `Moving base rover` in the rover's slot and `SENS_GNSSn_OFFX/Y/Z` of both receivers.
## 日志
diff --git a/docs/zh/gps_compass/septentrio_asterx-rib.md b/docs/zh/gps_compass/septentrio_asterx-rib.md
index 803b5206431..b83ba18938b 100644
--- a/docs/zh/gps_compass/septentrio_asterx-rib.md
+++ b/docs/zh/gps_compass/septentrio_asterx-rib.md
@@ -108,7 +108,7 @@ To enable multi-antenna attitude determination, follow the following procedure:
For best accuracy, try to maximize the distance between the antennas, and avoid significant height difference between the antenna ARPs.
2. In practice, the two antenna ARPs may not be exactly at the same height in the vehicle frame, or the main-aux1 baseline may not be exactly parallel or perpendicular to the longitudinal axis of the vehicle.
This leads to offsets in the computed attitude angles.
- These can be compensated for with the heading parameters provided by the Septentrio driver in PX4.
+ PX4 compensates for these from the antenna positions (see [GNSS-Based Heading](../gps_compass/septentrio.md#gnss-based-heading)).
:::info
For optimal heading results, the two antennas should be separated by at least 30cm / 11.8 in (ideally 50cm / 19.7in or more).
diff --git a/docs/zh/gps_compass/septentrio_mosaic-go.md b/docs/zh/gps_compass/septentrio_mosaic-go.md
index 6f4628e0b42..0a2f0a886aa 100644
--- a/docs/zh/gps_compass/septentrio_mosaic-go.md
+++ b/docs/zh/gps_compass/septentrio_mosaic-go.md
@@ -105,7 +105,7 @@ To enable multi-antenna attitude determination, follow the following procedure:
For best accuracy, try to maximize the distance between the antennas, and avoid significant height difference between the antenna ARPs.
2. In practice, the two antenna ARPs may not be exactly at the same height in the vehicle frame, or the main-aux1 baseline may not be exactly parallel or perpendicular to the longitudinal axis of the vehicle.
This leads to offsets in the computed attitude angles.
- These can be compensated for with the heading parameters provided by the Septentrio driver in PX4.
+ PX4 compensates for these from the antenna positions (see [GNSS-Based Heading](../gps_compass/septentrio.md#gnss-based-heading)).
:::info
For optimal heading results, the two antennas should be separated by at least 30cm / 11.8 in (ideally 50cm / 19.7in or more).
diff --git a/docs/zh/gps_compass/u-blox_f9p_heading.md b/docs/zh/gps_compass/u-blox_f9p_heading.md
index 96f5b001d0e..357fa1e82d0 100644
--- a/docs/zh/gps_compass/u-blox_f9p_heading.md
+++ b/docs/zh/gps_compass/u-blox_f9p_heading.md
@@ -29,9 +29,13 @@ The following devices are supported:
Ideally the two antennas should be identical, on the same level/horizontal plane and oriented the same way, and on an identical ground plane size and shape ([Application note](https://content.u-blox.com/sites/default/files/documents/ZED-F9P-MovingBase_AppNote_UBX-19009093.pdf), section _System Level Considerations_).
- The application note does not state the minimal required separation between modules (50cm has been used in test vehicles running PX4).
-- The antennas can be positioned as needed, but the [GPS_YAW_OFFSET](../advanced_config/parameter_reference.md#GPS_YAW_OFFSET) must be configured:
+- The antennas can be positioned as needed, but the heading baseline must be configured:
[RTK GPS > GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source).
+:::info
+A moving base and its rover must run at the same navigation rate, and u-blox limits a moving base to 5 Hz. In the moving base modes ([GPS_UBX_MODE](../advanced_config/parameter_reference.md#GPS_UBX_MODE) 1 to 4) the driver sets 5 Hz on both receivers whatever their model, so leave [GPS_UBX_RATE](../advanced_config/parameter_reference.md#GPS_UBX_RATE) at `0`. A rover running faster than its base has no time-matched base observations for the extra epochs and reports no heading for them.
+:::
+
### UART Setup
- The UART2 of the GPS devices need to be connected together (TXD2 of the "Moving Base" to RXD2 of the "Rover")
@@ -43,7 +47,7 @@ Ideally the two antennas should be identical, on the same level/horizontal plane
- Set [GPS_UBX_BAUD1](../advanced_config/parameter_reference.md#GPS_UBX_BAUD1) if a UART1 rate other than the default is required (0 keeps 115200). Use a higher rate for high update rates or when RTCM is sent on UART1 ([GPS_UBX_MODE](../advanced_config/parameter_reference.md#GPS_UBX_MODE) 3/4), and a lower rate on long serial cables.
- Set [GPS_UBX_BAUD2](../advanced_config/parameter_reference.md#GPS_UBX_BAUD2) if a UART2 rate other than the default (230400) is required. UART2 carries RTCM between the modules in this setup.
- [EKF2_GPS_CTRL](../advanced_config/parameter_reference.md#EKF2_GPS_CTRL) parameter bit 3 must be set (see [RTK GPS > GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source)).
-- [GPS_YAW_OFFSET](../advanced_config/parameter_reference.md#GPS_YAW_OFFSET) may need to be set (see [RTK GPS > GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source)).
+- Set [SENS_GNSSn_HDG](../advanced_config/parameter_reference.md#SENS_GNSS0_HDG) to `Moving base rover` for the rover's slot, and the antenna offsets of both receivers (see [RTK GPS > GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source)).
- Reboot and wait until both devices have GPS reception.
`gps status` should then show the Main GPS going into RTK mode, which means the heading angle is available.
diff --git a/docs/zh/mavlink/message_signing.md b/docs/zh/mavlink/message_signing.md
index 4b78a956110..4322e946700 100644
--- a/docs/zh/mavlink/message_signing.md
+++ b/docs/zh/mavlink/message_signing.md
@@ -10,7 +10,12 @@ This mechanism does not _encrypt_ the message payload.
When signing is enabled, PX4 appends a 13-byte [signature](https://mavlink.io/en/guide/message_signing.html#signature) to every outgoing MAVLink 2 message.
-Incoming messages are checked against the shared secret key, and unsigned or incorrectly signed messages are rejected (with [exceptions for safety-critical messages](#unsigned-message-allowlist)).
+Signing uses a single secret key, shared by all MAVLink systems and components that communicate with each other: the ground station, PX4, and any companion computer, camera, or gimbal connected to it.
+
+Incoming messages are checked against this key, and unsigned or incorrectly signed messages are rejected (with [exceptions for safety-critical messages](#unsigned-message-allowlist)).
+Rejected messages are not forwarded to other links either.
+This includes messages that PX4 does not know (for example custom messages), which are only forwarded if they are signed with the shared key.
+Components that communicate through PX4 therefore need to use the same key as PX4.
The signing implementation is built into the MAVLink module and is always available, with no special build flags required.
The key is stored in an SD card:
@@ -58,6 +63,7 @@ When signing is **not active** (no key provisioned), the first `SETUP_SIGNING` w
When signing is **already active**, key changes (including disabling) require that the `SETUP_SIGNING` message is signed with the current key.
Note that `SETUP_SIGNING` is rejected while the vehicle is armed (disarm before provisioning or changing keys).
+`SETUP_SIGNING` is only applied if it is broadcast or addressed to PX4 (its target system and component).
As per the MAVLink specification, `SETUP_SIGNING` is never forwarded to other links.
## Key Storage
@@ -134,9 +140,16 @@ When signing is active, **all links require signed messages**.
This means:
- An attacker cannot send unsigned commands on any link.
+- Unsigned or incorrectly signed messages are not forwarded, so they don't reach components connected through PX4 (for example a companion computer), even if those don't check signatures themselves.
- Changing or disabling the key requires sending a `SETUP_SIGNING` message **signed with the current key**.
- Signing can be disabled via MAVLink by sending a signed `SETUP_SIGNING` with an all-zero key.
+### One shared key
+
+The key is symmetric: every device that holds it can both verify and sign messages, as any system and component ID.
+Signing therefore authenticates that a message comes from a device holding the key, not which device sent it.
+Only provision the key on devices you trust.
+
### Armed guard
`SETUP_SIGNING` is rejected while the vehicle is armed.
diff --git a/docs/zh/middleware/dds_topics.md b/docs/zh/middleware/dds_topics.md
index 6a5080b9964..d4507d6e7a7 100644
--- a/docs/zh/middleware/dds_topics.md
+++ b/docs/zh/middleware/dds_topics.md
@@ -35,7 +35,7 @@ This document shows a markdown-rendered version of [dds_topics.yaml](https://git
| `/fmu/out/vehicle_command_ack` | [px4_msgs::msg::VehicleCommandAck](../msg_docs/VehicleCommandAck.md) | |
| `/fmu/out/vehicle_control_mode` | [px4_msgs::msg::VehicleControlMode](../msg_docs/VehicleControlMode.md) | 50.0 |
| `/fmu/out/vehicle_global_position` | [px4_msgs::msg::VehicleGlobalPosition](../msg_docs/VehicleGlobalPosition.md) | 50.0 |
-| `/fmu/out/vehicle_gps_position` | [px4_msgs::msg::SensorGps](../msg_docs/SensorGps.md) | 50.0 |
+| `/fmu/out/vehicle_gnss` | [px4_msgs::msg::VehicleGnss](../msg_docs/VehicleGnss.md) | 50.0 |
| `/fmu/out/vehicle_land_detected` | [px4_msgs::msg::VehicleLandDetected](../msg_docs/VehicleLandDetected.md) | 5.0 |
| `/fmu/out/vehicle_local_position` | [px4_msgs::msg::VehicleLocalPosition](../msg_docs/VehicleLocalPosition.md) | 50.0 |
| `/fmu/out/vehicle_odometry` | [px4_msgs::msg::VehicleOdometry](../msg_docs/VehicleOdometry.md) | 100.0 |
@@ -149,7 +149,6 @@ See messages
- [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)
@@ -271,6 +270,7 @@ See messages
- [SensorAirflow](../msg_docs/SensorAirflow.md)
- [SensorBaro](../msg_docs/SensorBaro.md)
- [SensorCorrection](../msg_docs/SensorCorrection.md)
+- [SensorGnss](../msg_docs/SensorGnss.md)
- [SensorGnssRelative](../msg_docs/SensorGnssRelative.md)
- [SensorGnssRf](../msg_docs/SensorGnssRf.md)
- [SensorGnssSpectrum](../msg_docs/SensorGnssSpectrum.md)
@@ -285,6 +285,7 @@ See messages
- [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)
@@ -306,6 +307,7 @@ See messages
- [VehicleCommandAckV0](../msg_docs/VehicleCommandAckV0.md)
- [VehicleConstraints](../msg_docs/VehicleConstraints.md)
- [VehicleGlobalPositionV0](../msg_docs/VehicleGlobalPositionV0.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/middleware/uxrce_dds.md b/docs/zh/middleware/uxrce_dds.md
index 81de1b0a906..b602dd5e150 100644
--- a/docs/zh/middleware/uxrce_dds.md
+++ b/docs/zh/middleware/uxrce_dds.md
@@ -78,8 +78,8 @@ The following table explains the required Micro-XRCE-DDS-Agent versions and `UXR
| Humble | 2.6.x | 2.4.2 | unset / `N` |
| Jazzy | 2.14.0 | 2.4.3 | unset / `N` |
| Kilted | 2.14.4 | 2.4.3 | unset / `N` |
-| Lyrical | 3.6.x | 3.0.1 | set / `Y` |
-| Rolling | 3.6.x | 3.0.1 | set / `Y` |
+| Lyrical | 3.6.x | 3.0.2 | set / `Y` |
+| Rolling | 3.6.x | 3.0.2 | set / `Y` |
## Micro XRCE-DDS Agent Installation
@@ -115,7 +115,7 @@ sudo ldconfig /usr/local/lib/
:::tab DDS v3
```sh
-git clone -b v3.0.1 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
+git clone -b v3.0.2 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
cd Micro-XRCE-DDS-Agent
mkdir build
cd build
@@ -156,7 +156,7 @@ To build the agent within ROS:
```sh
cd ~/px4_ros_uxrce_dds_ws/src
- git clone -b v3.0.1 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
+ git clone -b v3.0.2 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
```
Don't forget to set `UXRCE_DDS_CLIENT_USE_DDS_V3` before building PX4 when using DDS v3!
@@ -418,7 +418,9 @@ The configuration can be done using the [UXRCE-DDS parameters](../advanced_confi
Setting this parameter to any value other than `-1` creates a namespace with the prefix `uav_` and the specified value, e.g. `uav_0`, `uav_1`, etc.
See [namespace](#customizing-the-namespace) for methods to define richer or arbitrary namespaces.
- [`UXRCE_DDS_FLCTRL`](../advanced_config/parameter_reference.md#UXRCE_DDS_FLCTRL) : Serial port hardware flow control enable.
- To use hardware flow control, a custom MicroXRCE Agent needs to be adopted. Please refer to [this PR](https://github.com/eProsima/Micro-XRCE-DDS-Agent/pull/407) for the required changes, cherry-pick them on top of the [agent version](#build-run-within-ros-2-workspace) you need to use and then run the agent with the additional `--flow-control` option.
+ This feature is available on MicroXRCE Agent version `>=3.0.2` (ROS 2 Lyrical and newer).
+ To use it in previous versions please refer to [Micro-XRCE-DDS-Agent#407](https://github.com/eProsima/Micro-XRCE-DDS-Agent/pull/407) for the required changes and cherry-pick them on top of the [agent version](#build-run-within-ros-2-workspace) you need to use.
+ On the agent side flow control is enable passing the `--flow-control` option.
:::info
Many ports already have a default configuration.
diff --git a/docs/zh/modules/modules_command.md b/docs/zh/modules/modules_command.md
index 66de7a7dfb0..57df60c16f2 100644
--- a/docs/zh/modules/modules_command.md
+++ b/docs/zh/modules/modules_command.md
@@ -609,7 +609,7 @@ Test operations on an SD Card
sd_stress [arguments...]
[-r ] Number of runs
default: 5
- [-b ] Number of bytes
+ [-b ] Number of bytes (1-10000)
default: 100
```
diff --git a/docs/zh/modules/modules_driver.md b/docs/zh/modules/modules_driver.md
index 1e6d857c891..0a6fb215055 100644
--- a/docs/zh/modules/modules_driver.md
+++ b/docs/zh/modules/modules_driver.md
@@ -266,7 +266,7 @@ Source: [examples/fake_magnetometer](https://github.com/PX4/PX4-Autopilot/tree/m
### 描述
Publish the earth magnetic field as a fake magnetometer (sensor_mag).
-Requires vehicle_attitude and vehicle_gps_position.
+Requires vehicle_attitude and vehicle_gnss.
### Usage {#fake_magnetometer_usage}
@@ -763,6 +763,8 @@ mcp230xx [arguments...]
[-M ] First minor number
default: 0
+ write Set the output pins to the state given with -O
+
stop
status print status info
diff --git a/docs/zh/msg_docs/Airspeed.md b/docs/zh/msg_docs/Airspeed.md
index 553365326b1..f9c4ce15105 100644
--- a/docs/zh/msg_docs/Airspeed.md
+++ b/docs/zh/msg_docs/Airspeed.md
@@ -13,13 +13,14 @@ It is subscribed by the airspeed selector module, which validates the data from
## Fields
-| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
-| ---------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------- | -------------------------------- |
-| timestamp | `uint64` | us | | Time since system start |
-| timestamp_sample | `uint64` | us | | Timestamp of the raw data |
-| indicated_airspeed_m_s | `float32` | 米/秒 | | Indicated airspeed |
-| true_airspeed_m_s | `float32` | 米/秒 | | True airspeed |
-| confidence | `float32` | | [0 : 1] | Confidence value for this sensor |
+| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
+| ---------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
+| timestamp | `uint64` | us | | Time since system start |
+| timestamp_sample | `uint64` | us | | Timestamp of the raw data |
+| device_id | `uint32` | | | Unique device ID of the sensor this measurement came from, 0 if unknown |
+| indicated_airspeed_m_s | `float32` | 米/秒 | | Indicated airspeed |
+| true_airspeed_m_s | `float32` | 米/秒 | | True airspeed |
+| confidence | `float32` | | [0 : 1] | Confidence value for this sensor |
## Source Message
@@ -36,6 +37,7 @@ Click here to see original file
uint64 timestamp # [us] Time since system start
uint64 timestamp_sample # [us] Timestamp of the raw data
+uint32 device_id # [-] Unique device ID of the sensor this measurement came from, 0 if unknown
float32 indicated_airspeed_m_s # [m/s] Indicated airspeed
float32 true_airspeed_m_s # [m/s] True airspeed
float32 confidence # [@range 0,1] Confidence value for this sensor
diff --git a/docs/zh/msg_docs/BatteryStatus.md b/docs/zh/msg_docs/BatteryStatus.md
index ccd4f5e2e74..07a7d8d8b23 100644
--- a/docs/zh/msg_docs/BatteryStatus.md
+++ b/docs/zh/msg_docs/BatteryStatus.md
@@ -79,7 +79,7 @@ Used in field(s): [warning](#fld_warning)
| WARNING_EMERGENCY | `uint8` | 3 | Immediate landing required |
| WARNING_FAILED | `uint8` | 4 | Battery has failed completely |
| WARNING_UNHEALTHY | `uint8` | 6 | Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in faults field |
-| WARNING_CHARGING | `uint8` | 7 | Battery is charging |
+| WARNING_CHARGING | `uint8` | 7 | Battery is charging and no other warning applies. A state, not a severity: do not compare it by value |
### FAULT {#FAULT}
@@ -165,7 +165,7 @@ uint8 WARNING_CRITICAL = 2 # Critical voltage, return / abort immediately
uint8 WARNING_EMERGENCY = 3 # Immediate landing required
uint8 WARNING_FAILED = 4 # Battery has failed completely
uint8 WARNING_UNHEALTHY = 6 # Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in faults field
-uint8 WARNING_CHARGING = 7 # Battery is charging
+uint8 WARNING_CHARGING = 7 # Battery is charging and no other warning applies. A state, not a severity: do not compare it by value
uint16 faults # [@enum FAULT] Smart battery supply status/fault flags (bitmask) for health indication
uint8 FAULT_DEEP_DISCHARGE = 0 # Battery has deep discharged
diff --git a/docs/zh/msg_docs/FailsafeFlags.md b/docs/zh/msg_docs/FailsafeFlags.md
index 608b1a568dd..2d3969e9e9e 100644
--- a/docs/zh/msg_docs/FailsafeFlags.md
+++ b/docs/zh/msg_docs/FailsafeFlags.md
@@ -13,55 +13,55 @@ The flag comments are used as label for the failsafe state machine simulation
## Fields
-| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
-| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| timestamp | `uint64` | | | time since system start (microseconds) |
-| mode_req_angular_velocity | `uint32` | | | |
-| mode_req_attitude | `uint32` | | | |
-| mode_req_local_alt | `uint32` | | | |
-| mode_req_local_position | `uint32` | | | |
-| mode_req_local_position_relaxed | `uint32` | | | |
-| mode_req_global_position | `uint32` | | | |
-| mode_req_global_position_relaxed | `uint32` | | | |
-| mode_req_mission | `uint32` | | | |
-| mode_req_offboard_signal | `uint32` | | | |
-| mode_req_home_position | `uint32` | | | |
-| mode_req_wind_and_flight_time_compliance | `uint32` | | | if set, mode cannot be entered if wind or flight time limit exceeded |
-| 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) |
-| angular_velocity_invalid | `bool` | | | Angular velocity invalid |
-| attitude_invalid | `bool` | | | Attitude invalid |
-| local_altitude_invalid | `bool` | | | Local altitude invalid |
-| local_position_invalid | `bool` | | | Local position estimate invalid |
-| local_position_invalid_relaxed | `bool` | | | Local position with reduced accuracy requirements invalid (e.g. flying with optical flow) |
-| local_velocity_invalid | `bool` | | | Local velocity estimate invalid |
-| global_position_invalid | `bool` | | | Global position estimate invalid |
-| global_position_invalid_relaxed | `bool` | | | Global position estimate invalid with relaxed accuracy requirements |
-| auto_mission_missing | `bool` | | | No mission available |
-| offboard_control_signal_lost | `bool` | | | Offboard signal lost |
-| home_position_invalid | `bool` | | | No home position available |
-| manual_control_signal_lost | `bool` | | | Manual control (RC) signal lost |
-| gcs_connection_lost | `bool` | | | GCS connection lost |
-| battery_warning | `uint8` | | | Battery warning level (see BatteryStatus.msg) |
-| battery_low_remaining_time | `bool` | | | Low battery based on remaining flight time |
-| battery_unhealthy | `bool` | | | Battery unhealthy |
-| fd_critical_failure | `bool` | | | Critical failure (attitude limit exceeded, or external ATS) |
-| fd_esc_arming_failure | `bool` | | | ESC failed to arm |
-| fd_imbalanced_prop | `bool` | | | Imbalanced propeller detected |
-| fd_motor_failure | `bool` | | | Motor failure |
-| fd_alt_loss | `bool` | | | Uncommanded altitude loss (rotary-wing, altitude-controlled flight) |
-| geofence_breached | `bool` | | | Geofence breached (one or multiple) |
-| mission_failure | `bool` | | | Mission failure |
-| vtol_fixed_wing_system_failure | `bool` | | | vehicle in fixed-wing system failure failsafe mode (after quad-chute) |
-| wind_limit_exceeded | `bool` | | | Wind limit exceeded |
-| flight_time_limit_exceeded | `bool` | | | Maximum flight time exceeded |
-| position_accuracy_low | `bool` | | | Position estimate has dropped below threshold, but is currently still declared valid |
-| navigator_failure | `bool` | | | Navigator failed to execute a mode |
-| parachute_unhealthy | `bool` | | | Parachute system missing or unhealthy |
-| traffic_avoidance_unhealthy | `bool` | | | Traffic avoidance (ADS-B/FLARM) system missing or unhealthy |
-| remote_id_unhealthy | `bool` | | | Remote ID (Open Drone ID) system missing or unhealthy |
-| gnss_lost | `bool` | | | Active GNSS count dropped below SYS_HAS_NUM_GNSS, or two receivers report inconsistent positions |
+| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
+| timestamp | `uint64` | | | time since system start (microseconds) |
+| mode_req_angular_velocity | `uint32` | | | |
+| mode_req_attitude | `uint32` | | | |
+| mode_req_local_alt | `uint32` | | | |
+| mode_req_local_position | `uint32` | | | |
+| mode_req_local_position_relaxed | `uint32` | | | |
+| mode_req_global_position | `uint32` | | | |
+| mode_req_global_position_relaxed | `uint32` | | | |
+| mode_req_mission | `uint32` | | | |
+| mode_req_offboard_signal | `uint32` | | | |
+| mode_req_home_position | `uint32` | | | |
+| mode_req_wind_and_flight_time_compliance | `uint32` | | | if set, mode cannot be entered if wind or flight time limit exceeded |
+| 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) |
+| angular_velocity_invalid | `bool` | | | Angular velocity invalid |
+| attitude_invalid | `bool` | | | Attitude invalid |
+| local_altitude_invalid | `bool` | | | Local altitude invalid |
+| local_position_invalid | `bool` | | | Local position estimate invalid |
+| local_position_invalid_relaxed | `bool` | | | Local position with reduced accuracy requirements invalid (e.g. flying with optical flow) |
+| local_velocity_invalid | `bool` | | | Local velocity estimate invalid |
+| global_position_invalid | `bool` | | | Global position estimate invalid |
+| global_position_invalid_relaxed | `bool` | | | Global position estimate invalid with relaxed accuracy requirements |
+| auto_mission_missing | `bool` | | | No mission available |
+| offboard_control_signal_lost | `bool` | | | Offboard signal lost |
+| home_position_invalid | `bool` | | | No home position available |
+| manual_control_signal_lost | `bool` | | | Manual control (RC) signal lost |
+| gcs_connection_lost | `bool` | | | GCS connection lost |
+| battery_warning | `uint8` | | | Battery warning level (see BatteryStatus.msg) |
+| battery_low_remaining_time | `bool` | | | Low battery based on remaining flight time |
+| battery_unhealthy | `bool` | | | Battery unhealthy |
+| fd_critical_failure | `bool` | | | Critical failure (attitude limit exceeded, or external ATS) |
+| fd_esc_arming_failure | `bool` | | | ESC failed to arm |
+| fd_imbalanced_prop | `bool` | | | Imbalanced propeller detected |
+| fd_motor_failure | `bool` | | | Motor failure |
+| fd_alt_loss | `bool` | | | Uncommanded altitude loss (rotary-wing, altitude-controlled flight) |
+| geofence_breached | `bool` | | | Geofence breached (one or multiple) |
+| mission_failure | `bool` | | | Mission failure |
+| vtol_fixed_wing_system_failure | `bool` | | | vehicle in fixed-wing system failure failsafe mode (after quad-chute) |
+| wind_limit_exceeded | `bool` | | | Wind limit exceeded |
+| flight_time_limit_exceeded | `bool` | | | Maximum flight time exceeded |
+| position_accuracy_low | `bool` | | | Position estimate has dropped below threshold, but is currently still declared valid |
+| navigator_failure | `bool` | | | Navigator failed to execute a mode |
+| parachute_unhealthy | `bool` | | | Parachute system missing or unhealthy |
+| traffic_avoidance_unhealthy | `bool` | | | Traffic avoidance (ADS-B/FLARM) system missing or unhealthy |
+| remote_id_unhealthy | `bool` | | | Remote ID (Open Drone ID) system missing or unhealthy |
+| gnss_lost | `bool` | | | Fewer GNSS receivers are healthy than required, or two receivers report inconsistent positions |
## Source Message
@@ -135,7 +135,7 @@ bool navigator_failure # Navigator failed to execute a mode
bool parachute_unhealthy # Parachute system missing or unhealthy
bool traffic_avoidance_unhealthy # Traffic avoidance (ADS-B/FLARM) system missing or unhealthy
bool remote_id_unhealthy # Remote ID (Open Drone ID) system missing or unhealthy
-bool gnss_lost # Active GNSS count dropped below SYS_HAS_NUM_GNSS, or two receivers report inconsistent positions
+bool gnss_lost # Fewer GNSS receivers are healthy than required, or two receivers report inconsistent positions
```
:::
diff --git a/docs/zh/msg_docs/PpsCapture.md b/docs/zh/msg_docs/PpsCapture.md
index 9b864a032e2..9a01b756adb 100644
--- a/docs/zh/msg_docs/PpsCapture.md
+++ b/docs/zh/msg_docs/PpsCapture.md
@@ -12,7 +12,7 @@ pageClass: is-wide-page
| ---------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------ |
| timestamp | `uint64` | | | time since system start (microseconds) at PPS capture event |
| rtc_timestamp | `uint64` | | | Corrected GPS UTC timestamp at PPS capture event |
-| | `uint8` | | | Increments when PPS dt < 50ms |
+| | `uint8` | | | Count of PPS pulses that arrived too soon after the previous one |
## Source Message
@@ -24,7 +24,7 @@ Click here to see original file
```c
uint64 timestamp # time since system start (microseconds) at PPS capture event
uint64 rtc_timestamp # Corrected GPS UTC timestamp at PPS capture event
-uint8 pps_rate_exceeded_counter # Increments when PPS dt < 50ms
+uint8 pps_rate_exceeded_counter # Count of PPS pulses that arrived too soon after the previous one
```
:::
diff --git a/docs/zh/msg_docs/RtcmData.md b/docs/zh/msg_docs/RtcmData.md
index 83836f8e613..322bea2a31b 100644
--- a/docs/zh/msg_docs/RtcmData.md
+++ b/docs/zh/msg_docs/RtcmData.md
@@ -10,8 +10,7 @@ Published under two topic names that share this definition (see TOPICS below):
rtcm_corrections - external fixed-base corrections fed into the vehicle (MAVLink
GPS_RTCM_DATA, UAVCAN RTCMStream, GPS drivers in dump mode). Multiple
-sources are allowed, one uORB instance each; consumers select an instance
-via their stale-link logic.
+sources are allowed, one uORB instance each; consumers select one instance.
rtcm_moving_baseline - moving-base GPS output (RTCM 4072 or equivalent) intended for a rover.
Single publisher per vehicle (on-board moving base, or a CANnode
@@ -50,8 +49,7 @@ Click here to see original file
#
# rtcm_corrections - external fixed-base corrections fed into the vehicle (MAVLink
# GPS_RTCM_DATA, UAVCAN RTCMStream, GPS drivers in dump mode). Multiple
-# sources are allowed, one uORB instance each; consumers select an instance
-# via their stale-link logic.
+# sources are allowed, one uORB instance each; consumers select one instance.
#
# rtcm_moving_baseline - moving-base GPS output (RTCM 4072 or equivalent) intended for a rover.
# Single publisher per vehicle (on-board moving base, or a CANnode
diff --git a/docs/zh/msg_docs/SensorGnss.md b/docs/zh/msg_docs/SensorGnss.md
new file mode 100644
index 00000000000..7e7bcde1d39
--- /dev/null
+++ b/docs/zh/msg_docs/SensorGnss.md
@@ -0,0 +1,247 @@
+---
+pageClass: is-wide-page
+---
+
+# SensorGnss (UORB message)
+
+GNSS receiver report, position in WGS84.
+
+One instance per receiver, published by its driver: the receiver's own solution, unmodified.
+The sensors module publishes the selected receiver on vehicle_gnss.
+
+**TOPICS:** sensor_gnss
+
+## Fields
+
+| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
+| --------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
+| timestamp | `uint64` | us | | Time since system start |
+| timestamp_sample | `uint64` | us | | Measurement time if the driver knows it, else 0 or equal to timestamp. vehicle_gnss carries the corrected value |
+| 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 |
+| 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 |
+| hdop | `float32` | | | Horizontal dilution of precision |
+| vdop | `float32` | | | Vertical dilution of precision |
+| noise | `int32` | | | Noise level per millisecond |
+| automatic_gain_control | `uint16` | | | Automatic gain control monitor |
+| jamming_state | `uint8` | | [JAMMING_STATE](#JAMMING_STATE) | |
+| jamming_indicator | `int32` | | | Jamming indicator |
+| spoofing_state | `uint8` | | [SPOOFING_STATE](#SPOOFING_STATE) | |
+| authentication_state | `uint8` | | [AUTHENTICATION_STATE](#AUTHENTICATION_STATE) | Combined signal authentication state (e.g. Galileo OSNMA) |
+| ground_speed | `float32` | 米/秒 | | Ground speed |
+| vel_north | `float32` | 米/秒 | | North velocity |
+| vel_east | `float32` | 米/秒 | | East velocity |
+| vel_down | `float32` | 米/秒 | | Down velocity |
+| course | `float32` | rad | [-PI : PI] | Course over ground, not heading |
+| vel_ned_valid | `bool` | | | NED velocity is valid |
+| timestamp_time_relative | `int32` | us | | timestamp + timestamp_time_relative = time of the UTC timestamp since system start |
+| time_utc_usec | `uint64` | us | | UTC time from the receiver, 0 until known |
+| satellites_used | `uint8` | | | Satellites used in the solution |
+| system_error | `uint32` | | [SYSTEM_ERROR](#SYSTEM_ERROR) | Bitmask of receiver errors |
+| rtcm_injection_rate | `float32` | Hz | | Correction injection rate |
+| selected_rtcm_instance | `uint8` | | | uORB instance used for corrections |
+| corrections_protocol | `uint8` | | [CORRECTIONS_PROTOCOL](#CORRECTIONS_PROTOCOL) | Protocol of the last correction message the receiver parsed |
+| corrections_crc_failed | `bool` | | | Last correction message failed its CRC or content check |
+| corrections_msg_used | `uint8` | | [CORRECTIONS_MSG_USED](#CORRECTIONS_MSG_USED) | Whether the receiver used the last correction message |
+
+## Enums
+
+### FIX_TYPE {#FIX_TYPE}
+
+Used in field(s): [fix_type](#fld_fix_type)
+
+| 参数名 | 类型 | 值 | 描述 |
+| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | - | -- |
+| FIX_TYPE_NONE | `uint8` | 1 | |
+| FIX_TYPE_2D | `uint8` | 2 | |
+| FIX_TYPE_3D | `uint8` | 3 | |
+| FIX_TYPE_RTCM_CODE_DIFFERENTIAL | `uint8` | 4 | |
+| FIX_TYPE_RTK_FLOAT | `uint8` | 5 | |
+| FIX_TYPE_RTK_FIXED | `uint8` | 6 | |
+| FIX_TYPE_EXTRAPOLATED | `uint8` | 8 | |
+
+### JAMMING_STATE {#JAMMING_STATE}
+
+Used in field(s): [jamming_state](#fld_jamming_state)
+
+| 参数名 | 类型 | 值 | 描述 |
+| ------------------------------------------------------------------------------------------------------- | ------- | - | -- |
+| JAMMING_STATE_UNKNOWN | `uint8` | 0 | |
+| JAMMING_STATE_OK | `uint8` | 1 | |
+| JAMMING_STATE_MITIGATED | `uint8` | 2 | |
+| JAMMING_STATE_DETECTED | `uint8` | 3 | |
+
+### SPOOFING_STATE {#SPOOFING_STATE}
+
+Used in field(s): [spoofing_state](#fld_spoofing_state)
+
+| 参数名 | 类型 | 值 | 描述 |
+| --------------------------------------------------------------------------------------------------------- | ------- | - | -- |
+| SPOOFING_STATE_UNKNOWN | `uint8` | 0 | |
+| SPOOFING_STATE_OK | `uint8` | 1 | |
+| SPOOFING_STATE_MITIGATED | `uint8` | 2 | |
+| SPOOFING_STATE_DETECTED | `uint8` | 3 | |
+
+### AUTHENTICATION_STATE {#AUTHENTICATION_STATE}
+
+Used in field(s): [authentication_state](#fld_authentication_state)
+
+| 参数名 | 类型 | 值 | 描述 |
+| --------------------------------------------------------------------------------------------------------------------------- | ------- | - | -- |
+| AUTHENTICATION_STATE_UNKNOWN | `uint8` | 0 | |
+| AUTHENTICATION_STATE_INITIALIZING | `uint8` | 1 | |
+| AUTHENTICATION_STATE_ERROR | `uint8` | 2 | |
+| AUTHENTICATION_STATE_OK | `uint8` | 3 | |
+| AUTHENTICATION_STATE_DISABLED | `uint8` | 4 | |
+
+### SYSTEM_ERROR {#SYSTEM_ERROR}
+
+Used in field(s): [system_error](#fld_system_error)
+
+| 参数名 | 类型 | 值 | 描述 |
+| ------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | -- | -- |
+| SYSTEM_ERROR_OK | `uint32` | 0 | |
+| SYSTEM_ERROR_INCOMING_CORRECTIONS | `uint32` | 1 | |
+| SYSTEM_ERROR_CONFIGURATION | `uint32` | 2 | |
+| SYSTEM_ERROR_SOFTWARE | `uint32` | 4 | |
+| SYSTEM_ERROR_ANTENNA | `uint32` | 8 | |
+| SYSTEM_ERROR_EVENT_CONGESTION | `uint32` | 16 | |
+| SYSTEM_ERROR_CPU_OVERLOAD | `uint32` | 32 | |
+| SYSTEM_ERROR_OUTPUT_CONGESTION | `uint32` | 64 | |
+
+### CORRECTIONS_PROTOCOL {#CORRECTIONS_PROTOCOL}
+
+Used in field(s): [corrections_protocol](#fld_corrections_protocol)
+
+| 参数名 | 类型 | 值 | 描述 |
+| -------------------------------------------------------------------------------------------------------------------------------------- | ------- | - | ------------------------------------------------------ |
+| CORRECTIONS_PROTOCOL_UNKNOWN | `uint8` | 0 | |
+| CORRECTIONS_PROTOCOL_RTCM3 | `uint8` | 1 | |
+| CORRECTIONS_PROTOCOL_SPARTN | `uint8` | 2 | |
+| CORRECTIONS_PROTOCOL_HAS | `uint8` | 3 | Galileo High Accuracy Service, received on E6 |
+| CORRECTIONS_PROTOCOL_PMP | `uint8` | 4 | SPARTN over L-band (u-blox NEO-D9S) |
+| CORRECTIONS_PROTOCOL_QZSS_L6 | `uint8` | 5 | QZSS CLAS |
+
+### CORRECTIONS_MSG_USED {#CORRECTIONS_MSG_USED}
+
+Used in field(s): [corrections_msg_used](#fld_corrections_msg_used)
+
+| 参数名 | 类型 | 值 | 描述 |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | - | -- |
+| CORRECTIONS_MSG_USED_UNKNOWN | `uint8` | 0 | |
+| CORRECTIONS_MSG_USED_NOT_USED | `uint8` | 1 | |
+| CORRECTIONS_MSG_USED_USED | `uint8` | 2 | |
+
+## Source Message
+
+[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/SensorGnss.msg)
+
+:::details
+Click here to see original file
+
+```c
+# GNSS receiver report, position in WGS84
+#
+# One instance per receiver, published by its driver: the receiver's own solution, unmodified.
+# The sensors module publishes the selected receiver on vehicle_gnss.
+
+uint64 timestamp # [us] Time since system start
+uint64 timestamp_sample # [us] Measurement time if the driver knows it, else 0 or equal to timestamp. vehicle_gnss carries the corrected value
+
+uint32 device_id # [-] Unique device ID for the sensor that does not change between power cycles
+
+float64 latitude # [deg] Latitude, allows centimeter level RTK precision
+float64 longitude # [deg] Longitude, allows centimeter level RTK precision
+float64 altitude_msl # [m] Altitude above MSL, from the receiver's own geoid model
+float64 altitude_ellipsoid # [m] Altitude above the WGS84 ellipsoid
+
+float32 speed_accuracy # [m/s] Speed accuracy estimate
+float32 course_accuracy # [rad] Course accuracy estimate
+
+uint8 fix_type # [@enum FIX_TYPE] Value 0 is also valid to represent no fix
+uint8 FIX_TYPE_NONE = 1
+uint8 FIX_TYPE_2D = 2
+uint8 FIX_TYPE_3D = 3
+uint8 FIX_TYPE_RTCM_CODE_DIFFERENTIAL = 4
+uint8 FIX_TYPE_RTK_FLOAT = 5
+uint8 FIX_TYPE_RTK_FIXED = 6
+uint8 FIX_TYPE_EXTRAPOLATED = 8
+
+float32 eph # [m] Horizontal position accuracy
+float32 epv # [m] Vertical position accuracy
+float32 hdop # [-] Horizontal dilution of precision
+float32 vdop # [-] Vertical dilution of precision
+
+int32 noise # [-] Noise level per millisecond
+uint16 automatic_gain_control # [-] Automatic gain control monitor
+
+uint8 jamming_state # [@enum JAMMING_STATE]
+uint8 JAMMING_STATE_UNKNOWN = 0
+uint8 JAMMING_STATE_OK = 1
+uint8 JAMMING_STATE_MITIGATED = 2
+uint8 JAMMING_STATE_DETECTED = 3
+int32 jamming_indicator # [-] Jamming indicator
+
+uint8 spoofing_state # [@enum SPOOFING_STATE]
+uint8 SPOOFING_STATE_UNKNOWN = 0
+uint8 SPOOFING_STATE_OK = 1
+uint8 SPOOFING_STATE_MITIGATED = 2
+uint8 SPOOFING_STATE_DETECTED = 3
+
+uint8 authentication_state # [@enum AUTHENTICATION_STATE] Combined signal authentication state (e.g. Galileo OSNMA)
+uint8 AUTHENTICATION_STATE_UNKNOWN = 0
+uint8 AUTHENTICATION_STATE_INITIALIZING = 1
+uint8 AUTHENTICATION_STATE_ERROR = 2
+uint8 AUTHENTICATION_STATE_OK = 3
+uint8 AUTHENTICATION_STATE_DISABLED = 4
+
+float32 ground_speed # [m/s] Ground speed
+float32 vel_north # [m/s] North velocity
+float32 vel_east # [m/s] East velocity
+float32 vel_down # [m/s] Down velocity
+float32 course # [rad] [@range -PI, PI] Course over ground, not heading
+bool vel_ned_valid # NED velocity is valid
+
+int32 timestamp_time_relative # [us] timestamp + timestamp_time_relative = time of the UTC timestamp since system start
+uint64 time_utc_usec # [us] UTC time from the receiver, 0 until known
+
+uint8 satellites_used # [-] Satellites used in the solution
+
+uint32 system_error # [@enum SYSTEM_ERROR] Bitmask of receiver errors
+uint32 SYSTEM_ERROR_OK = 0
+uint32 SYSTEM_ERROR_INCOMING_CORRECTIONS = 1
+uint32 SYSTEM_ERROR_CONFIGURATION = 2
+uint32 SYSTEM_ERROR_SOFTWARE = 4
+uint32 SYSTEM_ERROR_ANTENNA = 8
+uint32 SYSTEM_ERROR_EVENT_CONGESTION = 16
+uint32 SYSTEM_ERROR_CPU_OVERLOAD = 32
+uint32 SYSTEM_ERROR_OUTPUT_CONGESTION = 64
+
+float32 rtcm_injection_rate # [Hz] Correction injection rate
+uint8 selected_rtcm_instance # [-] uORB instance used for corrections
+
+uint8 corrections_protocol # [@enum CORRECTIONS_PROTOCOL] Protocol of the last correction message the receiver parsed
+uint8 CORRECTIONS_PROTOCOL_UNKNOWN = 0
+uint8 CORRECTIONS_PROTOCOL_RTCM3 = 1
+uint8 CORRECTIONS_PROTOCOL_SPARTN = 2
+uint8 CORRECTIONS_PROTOCOL_HAS = 3 # Galileo High Accuracy Service, received on E6
+uint8 CORRECTIONS_PROTOCOL_PMP = 4 # SPARTN over L-band (u-blox NEO-D9S)
+uint8 CORRECTIONS_PROTOCOL_QZSS_L6 = 5 # QZSS CLAS
+bool corrections_crc_failed # Last correction message failed its CRC or content check
+
+uint8 corrections_msg_used # [@enum CORRECTIONS_MSG_USED] Whether the receiver used the last correction message
+uint8 CORRECTIONS_MSG_USED_UNKNOWN = 0
+uint8 CORRECTIONS_MSG_USED_NOT_USED = 1
+uint8 CORRECTIONS_MSG_USED_USED = 2
+
+# TOPICS sensor_gnss
+```
+
+:::
diff --git a/docs/zh/msg_docs/SensorGnssSpectrum.md b/docs/zh/msg_docs/SensorGnssSpectrum.md
index 08ef26f251e..761eadbc6de 100644
--- a/docs/zh/msg_docs/SensorGnssSpectrum.md
+++ b/docs/zh/msg_docs/SensorGnssSpectrum.md
@@ -6,8 +6,7 @@ pageClass: is-wide-page
GNSS spectrum analysis.
-Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN
-message (enabled via the GPS_UBX_SPECTRUM parameter).
+Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN message.
Published by the `gps` driver (UBX protocol only), once per RF block, via the block-specific topics below.
The center frequency of bin i is: f(i) = center_frequency + spectrum_span \* (i - 127) / 256
@@ -37,8 +36,7 @@ Click here to see original file
```c
# GNSS spectrum analysis
#
-# Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN
-# message (enabled via the GPS_UBX_SPECTRUM parameter).
+# Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN message.
# Published by the `gps` driver (UBX protocol only), once per RF block, via the block-specific topics below.
# The center frequency of bin i is: f(i) = center_frequency + spectrum_span * (i - 127) / 256
diff --git a/docs/zh/msg_docs/SensorGps.md b/docs/zh/msg_docs/SensorGps.md
index 55d08a94dbe..48ebc2310a5 100644
--- a/docs/zh/msg_docs/SensorGps.md
+++ b/docs/zh/msg_docs/SensorGps.md
@@ -10,49 +10,46 @@ GPS position in WGS84 coordinates. the field 'timestamp' is for the position & v
## Fields
-| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
-| ------------------------------------------------------------------------------------------------------------ | --------- | ---------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| timestamp | `uint64` | | | time since system start (microseconds) |
-| timestamp_sample | `uint64` | | | |
-| device_id | `uint32` | | | unique device ID for the sensor that does not change between power cycles |
-| latitude_deg | `float64` | | | Latitude in degrees, allows centimeter level RTK precision |
-| longitude_deg | `float64` | | | Longitude in degrees, allows centimeter level RTK precision |
-| altitude_msl_m | `float64` | | | Altitude above MSL, meters |
-| altitude_ellipsoid_m | `float64` | | | Altitude above Ellipsoid, meters |
-| s_variance_m_s | `float32` | | | GPS speed accuracy estimate, (metres/sec) |
-| c_variance_rad | `float32` | | | GPS course accuracy estimate, (radians) |
-| fix_type | `uint8` | | | Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix. |
-| eph | `float32` | | | GPS horizontal position accuracy (metres) |
-| epv | `float32` | | | GPS vertical position accuracy (metres) |
-| hdop | `float32` | | | Horizontal dilution of precision |
-| vdop | `float32` | | | Vertical dilution of precision |
-| noise_per_ms | `int32` | | | GPS noise per millisecond |
-| automatic_gain_control | `uint16` | | | Automatic gain control monitor |
-| jamming_state | `uint8` | | | indicates whether jamming has been detected or suspected by the receivers. O: Unknown, 1: OK, 2: Mitigated, 3: Detected |
-| jamming_indicator | `int32` | | | indicates jamming is occurring |
-| spoofing_state | `uint8` | | | indicates whether spoofing has been detected or suspected by the receivers. O: Unknown, 1: OK, 2: Mitigated, 3: Detected |
-| authentication_state | `uint8` | | | GPS signal authentication state |
-| vel_m_s | `float32` | | | GPS ground speed, (metres/sec) |
-| vel_n_m_s | `float32` | | | GPS North velocity, (metres/sec) |
-| vel_e_m_s | `float32` | | | GPS East velocity, (metres/sec) |
-| vel_d_m_s | `float32` | | | GPS Down velocity, (metres/sec) |
-| cog_rad | `float32` | | | Course over ground (NOT heading, but direction of movement), -PI..PI, (radians) |
-| vel_ned_valid | `bool` | | | True if NED velocity is valid |
-| timestamp_time_relative | `int32` | | | timestamp + timestamp_time_relative = Time of the UTC timestamp since system start, (microseconds) |
-| time_utc_usec | `uint64` | | | Timestamp (microseconds, UTC), this is the timestamp which comes from the gps module. It might be unavailable right after cold start, indicated by a value of 0 |
-| satellites_used | `uint8` | | | Number of satellites used |
-| system_error | `uint32` | | | General errors with the connected GPS receiver |
-| heading | `float32` | | | heading angle of XYZ body frame rel to NED. Set to NaN if not available and updated (used for dual antenna GPS), (rad, [-PI, PI]) |
-| heading_offset | `float32` | | | heading offset of dual antenna array in body frame. Set to NaN if not applicable. (rad, [-PI, PI]) |
-| heading_accuracy | `float32` | | | heading accuracy (rad, [0, 2PI]) |
-| rtcm_injection_rate | `float32` | | | RTCM message injection rate Hz |
-| selected_rtcm_instance | `uint8` | | | uorb instance that is being used for RTCM corrections |
-| corrections_protocol | `uint8` | | | Protocol of the last correction message the receiver parsed |
-| corrections_crc_failed | `bool` | | | Last correction message failed its CRC or content check |
-| corrections_msg_used | `uint8` | | | Whether the receiver used the last correction message |
-| antenna_offset_x | `float32` | m [body frame FRD] | | X Position of GNSS antenna |
-| antenna_offset_y | `float32` | m [body frame FRD] | | Y Position of GNSS antenna |
-| antenna_offset_z | `float32` | m [body frame FRD] | | Z Position of GNSS antenna |
+| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
+| ------------------------------------------------------------------------------------------------------------ | --------- | ---------------------------------------------------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| timestamp | `uint64` | | | time since system start (microseconds) |
+| timestamp_sample | `uint64` | | | |
+| device_id | `uint32` | | | unique device ID for the sensor that does not change between power cycles |
+| latitude_deg | `float64` | | | Latitude in degrees, allows centimeter level RTK precision |
+| longitude_deg | `float64` | | | Longitude in degrees, allows centimeter level RTK precision |
+| altitude_msl_m | `float64` | | | Altitude above MSL, meters |
+| altitude_ellipsoid_m | `float64` | | | Altitude above Ellipsoid, meters |
+| s_variance_m_s | `float32` | | | GPS speed accuracy estimate, (metres/sec) |
+| c_variance_rad | `float32` | | | GPS course accuracy estimate, (radians) |
+| fix_type | `uint8` | | | Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix. |
+| eph | `float32` | | | GPS horizontal position accuracy (metres) |
+| epv | `float32` | | | GPS vertical position accuracy (metres) |
+| hdop | `float32` | | | Horizontal dilution of precision |
+| vdop | `float32` | | | Vertical dilution of precision |
+| noise_per_ms | `int32` | | | GPS noise per millisecond |
+| automatic_gain_control | `uint16` | | | Automatic gain control monitor |
+| jamming_state | `uint8` | | | indicates whether jamming has been detected or suspected by the receivers. O: Unknown, 1: OK, 2: Mitigated, 3: Detected |
+| jamming_indicator | `int32` | | | indicates jamming is occurring |
+| spoofing_state | `uint8` | | | indicates whether spoofing has been detected or suspected by the receivers. O: Unknown, 1: OK, 2: Mitigated, 3: Detected |
+| authentication_state | `uint8` | | | GPS signal authentication state |
+| vel_m_s | `float32` | | | GPS ground speed, (metres/sec) |
+| vel_n_m_s | `float32` | | | GPS North velocity, (metres/sec) |
+| vel_e_m_s | `float32` | | | GPS East velocity, (metres/sec) |
+| vel_d_m_s | `float32` | | | GPS Down velocity, (metres/sec) |
+| cog_rad | `float32` | | | Course over ground (NOT heading, but direction of movement), -PI..PI, (radians) |
+| vel_ned_valid | `bool` | | | True if NED velocity is valid |
+| timestamp_time_relative | `int32` | | | timestamp + timestamp_time_relative = Time of the UTC timestamp since system start, (microseconds) |
+| time_utc_usec | `uint64` | | | Timestamp (microseconds, UTC), this is the timestamp which comes from the gps module. It might be unavailable right after cold start, indicated by a value of 0 |
+| satellites_used | `uint8` | | | Number of satellites used |
+| system_error | `uint32` | | | General errors with the connected GPS receiver |
+| rtcm_injection_rate | `float32` | | | RTCM message injection rate Hz |
+| selected_rtcm_instance | `uint8` | | | uorb instance that is being used for RTCM corrections |
+| corrections_protocol | `uint8` | | | Protocol of the last correction message the receiver parsed |
+| corrections_crc_failed | `bool` | | | Last correction message failed its CRC or content check |
+| corrections_msg_used | `uint8` | | | Whether the receiver used the last correction message |
+| antenna_offset_x | `float32` | m [body frame FRD] | | X Position of GNSS antenna |
+| antenna_offset_y | `float32` | m [body frame FRD] | | Y Position of GNSS antenna |
+| antenna_offset_z | `float32` | m [body frame FRD] | | Z Position of GNSS antenna |
## Constants
@@ -179,10 +176,6 @@ uint32 SYSTEM_ERROR_CPU_OVERLOAD = 32
uint32 SYSTEM_ERROR_OUTPUT_CONGESTION = 64
uint32 system_error # General errors with the connected GPS receiver
-float32 heading # heading angle of XYZ body frame rel to NED. Set to NaN if not available and updated (used for dual antenna GPS), (rad, [-PI, PI])
-float32 heading_offset # heading offset of dual antenna array in body frame. Set to NaN if not applicable. (rad, [-PI, PI])
-float32 heading_accuracy # heading accuracy (rad, [0, 2PI])
-
float32 rtcm_injection_rate # RTCM message injection rate Hz
uint8 selected_rtcm_instance # uorb instance that is being used for RTCM corrections
diff --git a/docs/zh/msg_docs/SensorsStatusGnss.md b/docs/zh/msg_docs/SensorsStatusGnss.md
new file mode 100644
index 00000000000..7dd07201476
--- /dev/null
+++ b/docs/zh/msg_docs/SensorsStatusGnss.md
@@ -0,0 +1,64 @@
+---
+pageClass: is-wide-page
+---
+
+# SensorsStatusGnss (UORB message)
+
+Per-receiver GNSS health and check diagnostics.
+
+Published by the sensors module. Describes the latest sample of each receiver: to gate on a sample, use vehicle_gnss.usable.
+
+**TOPICS:** sensors_status_gnss
+
+## Fields
+
+| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
+| ------------------------------------------------------------------------------------------------------------- | ------------ | ---------------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| timestamp | `uint64` | us | | Time since system start |
+| device_id_selected | `uint32` | | | Receiver that vehicle_gnss carries |
+| device_ids | `uint32[4]` | | | One entry per receiver, 0 where unused |
+| order | `int8[4]` | | | Fixed position of the receiver: 0 for the preferred one, otherwise for the first to publish, then in order of first publication. Changes only with the preference, -1 until the receiver publishes |
+| healthy | `bool[4]` | | | Publishing, and has passed its checks for long enough |
+| failed_checks | `uint16[4]` | | | Bitmask of the enabled checks that failed, VehicleGnss CHECK\_\* bits |
+| strict | `bool[4]` | | | The pre-flight thresholds apply rather than the relaxed in-flight ones |
+| drift_rate_horizontal | `float32[4]` | 米/秒 | | Horizontal position drift rate at rest |
+| drift_rate_vertical | `float32[4]` | 米/秒 | | Vertical position drift rate at rest |
+| speed_horizontal_filtered | `float32[4]` | 米/秒 | | Filtered horizontal speed at rest |
+
+## Constants
+
+| 参数名 | 类型 | 值 | 描述 |
+| -------------------------------------------------------------- | ------- | - | --------------------------------- |
+| MAX_RECEIVERS | `uint8` | 4 | Length of the per-receiver arrays |
+
+## Source Message
+
+[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/SensorsStatusGnss.msg)
+
+:::details
+Click here to see original file
+
+```c
+# Per-receiver GNSS health and check diagnostics
+#
+# Published by the sensors module. Describes the latest sample of each receiver: to gate on a sample, use vehicle_gnss.usable.
+
+uint64 timestamp # [us] Time since system start
+
+uint32 device_id_selected # [-] Receiver that vehicle_gnss carries
+
+uint8 MAX_RECEIVERS = 4 # Length of the per-receiver arrays
+
+uint32[4] device_ids # [-] One entry per receiver, 0 where unused
+int8[4] order # [-] Fixed position of the receiver: 0 for the preferred one, otherwise for the first to publish, then in order of first publication. Changes only with the preference, -1 until the receiver publishes
+bool[4] healthy # Publishing, and has passed its checks for long enough
+uint16[4] failed_checks # [-] Bitmask of the enabled checks that failed, VehicleGnss CHECK_* bits
+bool[4] strict # The pre-flight thresholds apply rather than the relaxed in-flight ones
+float32[4] drift_rate_horizontal # [m/s] Horizontal position drift rate at rest
+float32[4] drift_rate_vertical # [m/s] Vertical position drift rate at rest
+float32[4] speed_horizontal_filtered # [m/s] Filtered horizontal speed at rest
+
+# TOPICS sensors_status_gnss
+```
+
+:::
diff --git a/docs/zh/msg_docs/TelemetryStatus.md b/docs/zh/msg_docs/TelemetryStatus.md
index c4034b327de..3103d7828ab 100644
--- a/docs/zh/msg_docs/TelemetryStatus.md
+++ b/docs/zh/msg_docs/TelemetryStatus.md
@@ -30,7 +30,9 @@ pageClass: is-wide-page
| rx_buffer_overruns | `uint32` | | | number of RX buffer overruns |
| rx_parse_errors | `uint32` | | | number of parse errors |
| rx_packet_drop_count | `uint32` | | | number of packet drops |
-| rx_message_lost_rate | `float32` | | | |
+| rx_unknown_message_count | `uint32` | | | number of messages not in the dialect, not processed |
+| rx_bad_signature_count | `uint32` | | | number of messages with missing or invalid signature, not processed |
+| rx_message_lost_rate | `float32` | | | fraction of messages lost (0 to 1) |
| heartbeat_type_antenna_tracker | `bool` | | | MAV_TYPE_ANTENNA_TRACKER |
| heartbeat_type_gcs | `bool` | | | MAV_TYPE_GCS |
| heartbeat_type_onboard_controller | `bool` | | | MAV_TYPE_ONBOARD_CONTROLLER |
@@ -103,7 +105,9 @@ uint32 rx_message_lost_count
uint32 rx_buffer_overruns # number of RX buffer overruns
uint32 rx_parse_errors # number of parse errors
uint32 rx_packet_drop_count # number of packet drops
-float32 rx_message_lost_rate
+uint32 rx_unknown_message_count # number of messages not in the dialect, not processed
+uint32 rx_bad_signature_count # number of messages with missing or invalid signature, not processed
+float32 rx_message_lost_rate # fraction of messages lost (0 to 1)
uint64 HEARTBEAT_TIMEOUT_US = 2500000 # Heartbeat timeout (tolerate missing 1 + jitter)
diff --git a/docs/zh/msg_docs/VehicleCommand.md b/docs/zh/msg_docs/VehicleCommand.md
index 99d3406a8a8..f61e538e72a 100644
--- a/docs/zh/msg_docs/VehicleCommand.md
+++ b/docs/zh/msg_docs/VehicleCommand.md
@@ -1378,15 +1378,15 @@ Command VTOL transition.
Command safety on/off.
-| Param | 单位 (Units) | Range/Enum | 描述 |
-| ----- | ----------------------------- | ---------- | -------------------------------------------------------------------------------- |
-| 1 | | | 1 to activate safety, 0 to deactivate safety and allow control surface movements |
-| 2 | | | Unused |
-| 3 | | | Unused |
-| 4 | | | Unused |
-| 5 | | | Unused |
-| 6 | | | Unused |
-| 7 | | | Unused |
+| Param | 单位 (Units) | Range/Enum | 描述 |
+| ----- | ----------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| 1 | | | SAFETY_SAFE (0) to activate safety, SAFETY_DANGEROUS (1) to deactivate safety and allow non-throttling actuator movement |
+| 2 | | | Unused |
+| 3 | | | Unused |
+| 4 | | | Unused |
+| 5 | | | Unused |
+| 6 | | | Unused |
+| 7 | | | Unused |
### VEHICLE_CMD_ARM_AUTHORIZATION_REQUEST (3001)
@@ -1690,8 +1690,8 @@ Change heading/course. param1: heading type (0=course-over-ground, 1=heading). p
| ARMING_ACTION_ARM | `int8` | 1 | |
| GRIPPER_ACTION_RELEASE | `uint8` | 0 | |
| GRIPPER_ACTION_GRAB | `uint8` | 1 | |
-| SAFETY_OFF | `uint8` | 0 | |
-| SAFETY_ON | `uint8` | 1 | |
+| SAFETY_SAFE | `uint8` | 0 | Activate safety (MAVLink SAFETY_SWITCH_STATE_SAFE) |
+| SAFETY_DANGEROUS | `uint8` | 1 | Deactivate safety (MAVLink SAFETY_SWITCH_STATE_DANGEROUS) |
| ORB_QUEUE_LENGTH | `uint8` | 8 | |
| COMPONENT_MODE_EXECUTOR_START | `uint16` | 1000 | |
@@ -1808,7 +1808,7 @@ uint16 VEHICLE_CMD_LOGGING_START = 2510 # Start streaming ULog data.
uint16 VEHICLE_CMD_LOGGING_STOP = 2511 # Stop streaming ULog data.
uint16 VEHICLE_CMD_CONTROL_HIGH_LATENCY = 2600 # Control starting/stopping transmitting data over the high latency link.
uint16 VEHICLE_CMD_DO_VTOL_TRANSITION = 3000 # Command VTOL transition.
-uint16 VEHICLE_CMD_DO_SET_SAFETY_SWITCH_STATE = 5300 # Command safety on/off. |1 to activate safety, 0 to deactivate safety and allow control surface movements|Unused|Unused|Unused|Unused|Unused|Unused|
+uint16 VEHICLE_CMD_DO_SET_SAFETY_SWITCH_STATE = 5300 # Command safety on/off. |SAFETY_SAFE (0) to activate safety, SAFETY_DANGEROUS (1) to deactivate safety and allow non-throttling actuator movement|Unused|Unused|Unused|Unused|Unused|Unused|
uint16 VEHICLE_CMD_ARM_AUTHORIZATION_REQUEST = 3001 # Request arm authorization.
uint16 VEHICLE_CMD_PAYLOAD_PREPARE_DEPLOY = 30001 # Prepare a payload deployment in the flight plan.
uint16 VEHICLE_CMD_PAYLOAD_CONTROL_DEPLOY = 30002 # Control a pre-programmed payload deployment.
@@ -1924,9 +1924,9 @@ int8 ARMING_ACTION_ARM = 1
uint8 GRIPPER_ACTION_RELEASE = 0
uint8 GRIPPER_ACTION_GRAB = 1
-# Used as param1 in DO_SET_SAFETY_SWITCH_STATE command.
-uint8 SAFETY_OFF = 0
-uint8 SAFETY_ON = 1
+# Used as param1 in DO_SET_SAFETY_SWITCH_STATE command (matches MAVLink SAFETY_SWITCH_STATE enum).
+uint8 SAFETY_SAFE = 0 # Activate safety (MAVLink SAFETY_SWITCH_STATE_SAFE)
+uint8 SAFETY_DANGEROUS = 1 # Deactivate safety (MAVLink SAFETY_SWITCH_STATE_DANGEROUS)
# param1 in VEHICLE_CMD_ACTUATOR_GROUP_TEST (matches MAVLink ACTUATOR_TEST_GROUP enum)
uint8 ACTUATOR_TEST_GROUP_ROLL_TORQUE = 0
diff --git a/docs/zh/msg_docs/VehicleGlobalPosition.md b/docs/zh/msg_docs/VehicleGlobalPosition.md
index a54a84de449..b36b328adb6 100644
--- a/docs/zh/msg_docs/VehicleGlobalPosition.md
+++ b/docs/zh/msg_docs/VehicleGlobalPosition.md
@@ -4,7 +4,7 @@ pageClass: is-wide-page
# VehicleGlobalPosition (UORB message)
-Fused global position in WGS84. This struct contains global position estimation. It is not the raw GPS. measurement (@see vehicle_gps_position). This topic is usually published by the position. estimator, which will take more sources of information into account than just GPS,. e.g. control inputs of the vehicle in a Kalman-filter implementation.
+Fused global position in WGS84. This struct contains global position estimation. It is not the raw GPS. measurement (@see vehicle_gnss). This topic is usually published by the position. estimator, which will take more sources of information into account than just GPS,. e.g. control inputs of the vehicle in a Kalman-filter implementation.
**TOPICS:** vehicle_global_position vehicle_global_position_groundtruth external_ins_global_position estimator_global_position
@@ -47,7 +47,7 @@ Click here to see original file
```c
# Fused global position in WGS84.
# This struct contains global position estimation. It is not the raw GPS
-# measurement (@see vehicle_gps_position). This topic is usually published by the position
+# measurement (@see vehicle_gnss). This topic is usually published by the position
# estimator, which will take more sources of information into account than just GPS,
# e.g. control inputs of the vehicle in a Kalman-filter implementation.
#
diff --git a/docs/zh/msg_docs/VehicleGnss.md b/docs/zh/msg_docs/VehicleGnss.md
new file mode 100644
index 00000000000..69a7420df7d
--- /dev/null
+++ b/docs/zh/msg_docs/VehicleGnss.md
@@ -0,0 +1,89 @@
+---
+pageClass: is-wide-page
+---
+
+# VehicleGnss (UORB message)
+
+Selected GNSS solution.
+
+Published by the sensors module for every sample of the selected receiver, usable or not, with the selection state and the check result for that sample.
+Heading is on vehicle_gnss_heading.
+
+**TOPICS:** vehicle_gnss
+
+## Fields
+
+| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
+| ------------------------------------------------------------------------ | ------------ | ---------------------------------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| timestamp | `uint64` | us | | Time since system start |
+| timestamp_sample | `uint64` | us | | Measurement time, delay corrected. Use this rather than receiver.timestamp_sample, which holds the same value |
+| receiver | `SensorGnss` | | | The selected receiver's sensor_gnss sample with the corrected timestamp_sample |
+| antenna_offset | `float32[3]` | m [FRD] | | Antenna position of the selected receiver |
+| selected_instance | `uint8` | | | sensor_gnss instance of the selected receiver |
+| selection_count | `uint8` | | | Increments when the selected receiver changes |
+| usable | `bool` | | | Sample may be used: the receiver has passed its checks for long enough |
+| failed_checks | `uint16` | | [CHECK](#CHECK) | Bitmask of the enabled checks that failed |
+
+## Enums
+
+### CHECK {#CHECK}
+
+Used in field(s): [failed_checks](#fld_failed_checks)
+
+| 参数名 | 类型 | 值 | 描述 |
+| -------------------------------------------------------------- | -------- | ---- | ------------------------------------------ |
+| CHECK_NSATS | `uint16` | 1 | Too few satellites |
+| CHECK_PDOP | `uint16` | 2 | Position dilution of precision too high |
+| CHECK_EPH | `uint16` | 4 | Horizontal position accuracy too low |
+| CHECK_EPV | `uint16` | 8 | Vertical position accuracy too low |
+| CHECK_SACC | `uint16` | 16 | Speed accuracy too low |
+| CHECK_HDRIFT | `uint16` | 32 | Horizontal position drift at rest too high |
+| CHECK_VDRIFT | `uint16` | 64 | Vertical position drift at rest too high |
+| CHECK_HSPEED | `uint16` | 128 | Horizontal speed at rest too high |
+| CHECK_VSPEED | `uint16` | 256 | Vertical speed at rest too high |
+| CHECK_SPOOFED | `uint16` | 512 | Receiver reports spoofing |
+| CHECK_FIX | `uint16` | 1024 | Fix type too low |
+| CHECK_JAMMED | `uint16` | 2048 | Receiver reports jamming |
+
+## Source Message
+
+[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/VehicleGnss.msg)
+
+:::details
+Click here to see original file
+
+```c
+# Selected GNSS solution
+#
+# Published by the sensors module for every sample of the selected receiver, usable or not, with the selection state and the check result for that sample.
+# Heading is on vehicle_gnss_heading.
+
+uint64 timestamp # [us] Time since system start
+uint64 timestamp_sample # [us] Measurement time, delay corrected. Use this rather than receiver.timestamp_sample, which holds the same value
+
+SensorGnss receiver # The selected receiver's sensor_gnss sample with the corrected timestamp_sample
+
+float32[3] antenna_offset # [m] [@frame FRD] Antenna position of the selected receiver
+
+# Selection state
+uint8 selected_instance # [-] sensor_gnss instance of the selected receiver
+uint8 selection_count # [-] Increments when the selected receiver changes
+
+# Check result for this sample
+bool usable # Sample may be used: the receiver has passed its checks for long enough
+uint16 failed_checks # [@enum CHECK] Bitmask of the enabled checks that failed
+uint16 CHECK_NSATS = 1 # Too few satellites
+uint16 CHECK_PDOP = 2 # Position dilution of precision too high
+uint16 CHECK_EPH = 4 # Horizontal position accuracy too low
+uint16 CHECK_EPV = 8 # Vertical position accuracy too low
+uint16 CHECK_SACC = 16 # Speed accuracy too low
+uint16 CHECK_HDRIFT = 32 # Horizontal position drift at rest too high
+uint16 CHECK_VDRIFT = 64 # Vertical position drift at rest too high
+uint16 CHECK_HSPEED = 128 # Horizontal speed at rest too high
+uint16 CHECK_VSPEED = 256 # Vertical speed at rest too high
+uint16 CHECK_SPOOFED = 512 # Receiver reports spoofing
+uint16 CHECK_FIX = 1024 # Fix type too low
+uint16 CHECK_JAMMED = 2048 # Receiver reports jamming
+```
+
+:::
diff --git a/docs/zh/msg_docs/VehicleGnssHeading.md b/docs/zh/msg_docs/VehicleGnssHeading.md
new file mode 100644
index 00000000000..dc45960852f
--- /dev/null
+++ b/docs/zh/msg_docs/VehicleGnssHeading.md
@@ -0,0 +1,55 @@
+---
+pageClass: is-wide-page
+---
+
+# VehicleGnssHeading (UORB message)
+
+GNSS heading from a dual-antenna or moving-baseline receiver.
+
+Published by the sensors module from sensor_gnss_relative. Consumed by EKF2 independently from position and velocity.
+
+**TOPICS:** vehicle_gnss_heading
+
+## Fields
+
+| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
+| ---------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| timestamp | `uint64` | | | time since system start (microseconds) |
+| timestamp_sample | `uint64` | | | time since system start (microseconds) - actual measurement time |
+| device_id | `uint32` | | | unique device ID for the sensor that does not change between power cycles |
+| heading | `float32` | | | body-frame heading rel to NED from dual antenna array (rad, [-PI, PI]) |
+| heading_accuracy | `float32` | | | 1-sigma heading accuracy (rad) |
+| heading_offset | `float32` | | | yaw of the configured antenna baseline in the body frame; heading + heading_offset is the measured baseline heading (rad, [-PI, PI]) |
+| baseline_length | `float32` | | | antenna baseline length reported by the receiver, NaN if it doesn't report one (m) |
+| jamming_state | `uint8` | | | jamming_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected) |
+| spoofing_state | `uint8` | | | spoofing_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected) |
+| usable | `bool` | | | heading may be used: its receiver reports no spoofing or jamming that the enabled checks reject |
+
+## Source Message
+
+[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/VehicleGnssHeading.msg)
+
+:::details
+Click here to see original file
+
+```c
+# GNSS heading from a dual-antenna or moving-baseline receiver
+#
+# Published by the sensors module from sensor_gnss_relative. Consumed by EKF2 independently from position and velocity.
+
+uint64 timestamp # time since system start (microseconds)
+uint64 timestamp_sample # time since system start (microseconds) - actual measurement time
+
+uint32 device_id # unique device ID for the sensor that does not change between power cycles
+
+float32 heading # body-frame heading rel to NED from dual antenna array (rad, [-PI, PI])
+float32 heading_accuracy # 1-sigma heading accuracy (rad)
+float32 heading_offset # yaw of the configured antenna baseline in the body frame; heading + heading_offset is the measured baseline heading (rad, [-PI, PI])
+float32 baseline_length # antenna baseline length reported by the receiver, NaN if it doesn't report one (m)
+
+uint8 jamming_state # jamming_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected)
+uint8 spoofing_state # spoofing_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected)
+bool usable # heading may be used: its receiver reports no spoofing or jamming that the enabled checks reject
+```
+
+:::
diff --git a/docs/zh/msg_docs/Vtx.md b/docs/zh/msg_docs/Vtx.md
index a8b1f1c218d..4a66c49112a 100644
--- a/docs/zh/msg_docs/Vtx.md
+++ b/docs/zh/msg_docs/Vtx.md
@@ -34,8 +34,7 @@ pageClass: is-wide-page
| PROTOCOL_SMART_AUDIO_V2_1 | `uint8` | 21 | |
| PROTOCOL_TRAMP | `uint8` | 100 | |
| DEVICE_UNKNOWN | `uint8` | 0 | |
-| DEVICE_PEAK_THOR_T67 | `uint8` | 20 | |
-| DEVICE_RUSH_MAX_SOLO | `uint8` | 40 | |
+| DEVICE_PEAK_THOR | `uint8` | 20 | |
| MODE_NORMAL | `uint8` | 0 | |
| MODE_PIT | `uint8` | 1 | |
@@ -60,8 +59,7 @@ uint8 PROTOCOL_TRAMP = 100
uint8 protocol
uint8 DEVICE_UNKNOWN = 0
-uint8 DEVICE_PEAK_THOR_T67 = 20
-uint8 DEVICE_RUSH_MAX_SOLO = 40
+uint8 DEVICE_PEAK_THOR = 20
uint8 device
uint8 MODE_NORMAL = 0
diff --git a/docs/zh/msg_docs/index.md b/docs/zh/msg_docs/index.md
index ec8b2fb5e00..5d00a3b99fb 100644
--- a/docs/zh/msg_docs/index.md
+++ b/docs/zh/msg_docs/index.md
@@ -45,7 +45,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
- [VehicleAttitudeSetpoint](VehicleAttitudeSetpoint.md)
- [VehicleCommand](VehicleCommand.md) — Vehicle Command uORB message. Used for commanding a mission / action / etc. Follows the MAVLink COMMAND_INT / COMMAND_LONG definition.
- [VehicleCommandAck](VehicleCommandAck.md) — Vehicle Command Acknowledgement uORB message.
-- [VehicleGlobalPosition](VehicleGlobalPosition.md) — Fused global position in WGS84. This struct contains global position estimation. It is not the raw GPS. measurement (@see vehicle_gps_position). This topic is usually published by the position. estimator, which will take more sources of information into account than just GPS,. e.g. control inputs of the vehicle in a Kalman-filter implementation.
+- [VehicleGlobalPosition](VehicleGlobalPosition.md) — Fused global position in WGS84. This struct contains global position estimation. It is not the raw GPS. measurement (@see vehicle_gnss). This topic is usually published by the position. estimator, which will take more sources of information into account than just GPS,. e.g. control inputs of the vehicle in a Kalman-filter implementation.
- [VehicleLandDetected](VehicleLandDetected.md)
- [VehicleLocalPosition](VehicleLocalPosition.md) — Fused local position in NED. The coordinate system origin is the vehicle position at the time when the EKF2-module was started.
- [VehicleOdometry](VehicleOdometry.md) — Vehicle odometry data.
@@ -125,7 +125,6 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
- [EstimatorBias3d](EstimatorBias3d.md)
- [EstimatorEventFlags](EstimatorEventFlags.md)
- [EstimatorFusionControl](EstimatorFusionControl.md)
-- [EstimatorGpsStatus](EstimatorGpsStatus.md)
- [EstimatorInnovations](EstimatorInnovations.md)
- [EstimatorSelectorStatus](EstimatorSelectorStatus.md)
- [EstimatorSensorBias](EstimatorSensorBias.md) — Sensor readings and in-run biases in SI-unit form. Sensor readings are compensated for static offsets,. scale errors, in-run bias and thermal drift (if thermal compensation is enabled and available).
@@ -255,11 +254,11 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
- [SensorBaro](SensorBaro.md) — Barometer sensor.
- [SensorCombined](SensorCombined.md) — Sensor readings in SI-unit form. These fields are scaled and offset-compensated where possible and do not. change with board revisions and sensor updates.
- [SensorCorrection](SensorCorrection.md) — Sensor corrections in SI-unit form for the voted sensor.
+- [SensorGnss](SensorGnss.md) — GNSS receiver report, position in WGS84.
- [SensorGnssRelative](SensorGnssRelative.md) — GNSS relative positioning information in NED frame. The NED frame is defined as the local topological system at the reference station.
- [SensorGnssRf](SensorGnssRf.md) — GNSS RF status.
- [SensorGnssSpectrum](SensorGnssSpectrum.md) — GNSS spectrum analysis.
- [SensorGnssStatus](SensorGnssStatus.md) — Gnss quality indicators.
-- [SensorGps](SensorGps.md) — GPS position in WGS84 coordinates. the field 'timestamp' is for the position & velocity (microseconds).
- [SensorGyro](SensorGyro.md)
- [SensorGyroFft](SensorGyroFft.md)
- [SensorGyroFifo](SensorGyroFifo.md)
@@ -271,6 +270,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
- [SensorTemp](SensorTemp.md)
- [SensorUwb](SensorUwb.md) — Ultra-wideband (UWB) distance sensor.
- [SensorsStatus](SensorsStatus.md) — Sensor check metrics. This will be zero for a sensor that's primary or unpopulated.
+- [SensorsStatusGnss](SensorsStatusGnss.md) — Per-receiver GNSS health and check diagnostics.
- [SensorsStatusImu](SensorsStatusImu.md) — Sensor check metrics. This will be zero for a sensor that's primary or unpopulated.
- [SystemPower](SystemPower.md)
- [TakeoffStatus](TakeoffStatus.md) — Status of the takeoff state machine currently just available for multicopters.
@@ -292,6 +292,8 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
- [VehicleAirData](VehicleAirData.md) — Vehicle air data.
- [VehicleConstraints](VehicleConstraints.md) — Local setpoint constraints in NED frame. setting something to NaN means that no limit is provided.
- [VehicleControlMode](VehicleControlMode.md) — Defines which controllers should run.
+- [VehicleGnss](VehicleGnss.md) — Selected GNSS solution.
+- [VehicleGnssHeading](VehicleGnssHeading.md) — GNSS heading from a dual-antenna or moving-baseline receiver.
- [VehicleImu](VehicleImu.md) — IMU readings in SI-unit form.
- [VehicleImuStatus](VehicleImuStatus.md)
- [VehicleLocalPositionSetpoint](VehicleLocalPositionSetpoint.md) — Local position setpoint in NED frame. Telemetry of PID position controller to monitor tracking. NaN means the state was not controlled.
diff --git a/docs/zh/neural_networks/tflm.md b/docs/zh/neural_networks/tflm.md
index ce37aae59b1..f49546e00d0 100644
--- a/docs/zh/neural_networks/tflm.md
+++ b/docs/zh/neural_networks/tflm.md
@@ -40,6 +40,9 @@ You will then have to modify the `control_net.hpp` and `control_net.cpp` to incl
- Take the size of the network in the bottom of the `.cc` file and replace the size in `control_net.hpp`.
- Take the data in the model array in the `cc` file, and replace the ones in `control_net.cpp`.
+The module checks the model when it starts: the schema version, exactly one input of 15 floats and exactly one output of 4 floats.
+A model that does not match is rejected with the reason in the log and the module does not start.
+
You are now ready to run your own network.
## Code Explanation
diff --git a/docs/zh/peripherals/dshot.md b/docs/zh/peripherals/dshot.md
index 5d5c08f7fc6..8c8d2f23a90 100644
--- a/docs/zh/peripherals/dshot.md
+++ b/docs/zh/peripherals/dshot.md
@@ -144,22 +144,20 @@ PX4 automatically reads the full EEPROM from each ESC on boot.
The ground station can then display individual settings and allow the user to modify them.
Changes are written back to the ESC one byte at a time using the DShot programming protocol.
-
-
-
+See [Serial Passthrough (MAVLink SERIAL_CONTROL)](../uart/serial_passthrough.md) for build configuration, supported channels, and limitations.
diff --git a/docs/zh/releases/1.18.md b/docs/zh/releases/1.18.md
index 63d68e8bd49..a8da70931e0 100644
--- a/docs/zh/releases/1.18.md
+++ b/docs/zh/releases/1.18.md
@@ -170,8 +170,9 @@ For users upgrading from v1.17, please take a moment to review the following bef
| `COM_OBC_LOSS_T` | Timeout for missing heartbeats from the onboard computer is always 5 seconds (was the default). ([PX4-Autopilot#27261](https://github.com/PX4/PX4-Autopilot/pull/27261)) |
| `COM_LKDOWN_TKO` | Takeoff failure detection always runs for 3 seconds (was the default). ([PX4-Autopilot#27262](https://github.com/PX4/PX4-Autopilot/pull/27262)) |
-- [Serial Passthrough (MAVLink SERIAL_CONTROL)](../uart/serial_passthrough.md): new `serialpassthrough` driver enables MAVLink clients to read from and write to FC serial ports (TEL1/2, GPS1/2, TEL3/4).
- On STM32F7/H7 boards, ESC signal pins can also be written via a software bit-bang UART (device IDs 20–27): note that a bridge application is also required, so this functionality is not usable out of the box.
+- [Serial Passthrough (MAVLink SERIAL_CONTROL)](../uart/serial_passthrough.md): new `serialpassthrough` driver enables MAVLink clients to read from and write to FC serial ports (`TELEM1`/`TELEM2`, `GPS1`/`GPS2`, `TELEM3`/`TELEM4`).
+ On STM32F7/H7 boards, ESC signal pins can also be written via a software bit-bang UART (device IDs 20–27).
+ Host tools connect through a bridge application, such as [`Tools/mavlink_serial_bridge.py`](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/mavlink_serial_bridge.py) (it isn't part of the v1.18 release, but the version on `main` works with v1.18 firmware).
([PX4-Autopilot#27605: feat(drivers): implemented serial passthrough](https://github.com/PX4/PX4-Autopilot/pull/27605)).
- UAVCAN: firmware can now be flashed onto connected CAN nodes directly from the SD card. Place node firmware `.bin` files at the card root or in `/fs/microsd/ufw_staging/`; on boot the UAVCAN server migrates them into `/fs/microsd/ufw/`, tracks them in an `FW.db` database, and flashes any connected node whose firmware version does not match. ([PX4-Autopilot#27043](https://github.com/PX4/PX4-Autopilot/pull/27043))
@@ -216,6 +217,7 @@ For users upgrading from v1.17, please take a moment to review the following bef
- EKF2 can now use GNSS height as the height reference when GNSS is in dead-reckoning mode, provided it can start without requiring a reset. ([PX4-Autopilot#27766](https://github.com/PX4/PX4-Autopilot/pull/27766))
- EKF2 now counts NED-frame external vision velocity fusion as a horizontal (NE) aiding source (and only counts vision position when it is in the NED frame), so vehicles aided only by vision velocity are no longer treated as dead-reckoning. ([PX4-Autopilot#27538](https://github.com/PX4/PX4-Autopilot/pull/27538))
- The EKF2 selector no longer falls back to an instance whose vertical test ratio is already failing, which stepped the published altitude on every switch after a brief fault on the selected instance. ([PX4-Autopilot#28418](https://github.com/PX4/PX4-Autopilot/pull/28418))
+- Disabling the selected magnetometer at runtime (setting its [CAL_MAGn_PRIO](../advanced_config/parameter_reference.md#CAL_MAG0_PRIO) to `0`) now hands over to the next magnetometer without a sensor failure report, and a magnetometer disabled at boot no longer prevents those after it from being selected. ([PX4-Autopilot#28750](https://github.com/PX4/PX4-Autopilot/pull/28750))
## RC
diff --git a/docs/zh/releases/main.md b/docs/zh/releases/main.md
index a009d5378fd..fd1b08dd281 100644
--- a/docs/zh/releases/main.md
+++ b/docs/zh/releases/main.md
@@ -32,8 +32,24 @@ Please continue reading for [upgrade instructions](#upgrade-guide).
- `COM_ARM_TRAFF` has been replaced by `COM_TRAFF_AVOID`. The old value 3 ("enforce for mission modes only") is migrated to `COM_TRAFF_AVOID=2`, which blocks arming in all modes, not just mission modes. If you relied on being able to arm manually with traffic detected, set `COM_TRAFF_AVOID=1` (warning only) instead.
- `PCA9685_SCHD_HZ` has been removed. `PCA9685_PWM_FREQ` now sets both the PWM frequency of the PCA9685 and the rate at which values are pushed to it; if you had `PCA9685_SCHD_HZ` set to a non-default value, set `PCA9685_PWM_FREQ` to it after upgrading. Frequencies above 400 Hz (previously only usable in duty-cycle mode) are no longer supported.
+- **Flight controller firmware no longer embeds CAN node firmware.** The `px4_fmu-v5_uavcanv0periph` build, which carried CUAV CAN GPS v1 firmware in its ROMFS so the flight controller could update the GPS over DroneCAN, and the `CONFIG_BOARD_UAVCAN_PERIPHERALS` board option behind it have been removed. Use the standard `px4_fmu-v5_default` firmware and update the GPS from the SD card with `cuav_can-gps-v1_default.uavcan.bin` from the release instead; see [DroneCAN Firmware Update](../dronecan/index.md#firmware-update). ([PX4-Autopilot#28870](https://github.com/PX4/PX4-Autopilot/pull/28870))
- **jMAVSim has been removed.** `make px4_sitl jmavsim` and the `10017_jmavsim_iris` airframe (`SYS_AUTOSTART=10017`) no longer exist, and the setup scripts no longer install Java or `ant`. Use [SIH](../sim_sih/index.md) with the [Hawkeye](../sim_hawkeye/index.md) visualizer instead (`make px4_sitl_sih sihsim_quadx`), or [Gazebo](../sim_gazebo_gz/index.md).
- **Re-check motor failure handling on hexarotors.** [CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) = `1` now also stops the motor opposite the failed one on a hexarotor (previously only the failed motor was removed from the allocation). Other airframes are unaffected, and `CA_FAILURE_MODE=0` (the default) is unchanged. See [Motor Failure Recovery](../config/motor_failure_recovery.md). ([PX4-Autopilot#28078](https://github.com/PX4/PX4-Autopilot/pull/28078))
+- **Dual-antenna GNSS heading must be reconfigured.** `GPS_YAW_OFFSET`, `SEP_YAW_OFFS`, `SEP_PITCH_OFFS` and `EKF2_GPS_YAW_OFF` are removed, including on DroneCAN GNSS nodes, and are not migrated: GNSS yaw is not used until [SENS_GNSSn_HDG](../advanced_config/parameter_reference.md#SENS_GNSS0_HDG) is set on the autopilot for the receiver reporting the heading. Until then, a warning names what is missing: `SENS_GNSSn_HDG` or the antenna positions. The baseline comes from the antenna positions (`SENS_GNSSn_OFFX/Y/Z` of both receivers for a moving base, plus `SENS_GNSSn_AUXX/Y/Z` for the second antenna of a dual-antenna receiver), and headings whose reported baseline is more than 20% off it are rejected. See [GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source). A DroneCAN node running older firmware still subtracts its own `GPS_YAW_OFFSET`; set that to 0. Heading is taken only from `sensor_gnss_relative` (u-blox, Unicore UM982, Septentrio, DroneCAN `RelPosHeading`): the Trimble MB-Two, Femtomes, NMEA `HDT`, SBG and MicroStrain headings and the heading in DroneCAN `Fix2` are no longer used, and the `heading`, `heading_offset` and `heading_accuracy` fields of `sensor_gps` are removed. ([PX4-Autopilot#27102](https://github.com/PX4/PX4-Autopilot/pull/27102))
+- **GNSS topics, messages and parameters are renamed.**
+ The per-receiver topic `sensor_gps` is now `sensor_gnss` ([SensorGnss](../msg_docs/SensorGnss.md)).
+ `vehicle_gps_position` is now `vehicle_gnss` ([VehicleGnss](../msg_docs/VehicleGnss.md)), which nests the selected receiver's sample as `receiver` (for example `vehicle_gnss.receiver.latitude`) and adds the corrected `timestamp_sample` and `antenna_offset`.
+ Renamed fields: `latitude_deg` → `latitude`, `longitude_deg` → `longitude`, `altitude_msl_m` → `altitude_msl`, `altitude_ellipsoid_m` → `altitude_ellipsoid`, `s_variance_m_s` → `speed_accuracy`, `c_variance_rad` → `course_accuracy`, `noise_per_ms` → `noise`, `vel_m_s` → `ground_speed`, `vel_n_m_s`/`vel_e_m_s`/`vel_d_m_s` → `vel_north`/`vel_east`/`vel_down` and `cog_rad` → `course`; `antenna_offset_x/y/z` moved to `vehicle_gnss.antenna_offset`.
+ ROS 2 applications must subscribe to `/fmu/out/vehicle_gnss` (`px4_msgs/msg/VehicleGnss`) instead of `/fmu/out/vehicle_gps_position` (`px4_msgs/msg/SensorGps`).
+ Read the timestamps from the top level of `VehicleGnss`: only `timestamp` and `timestamp_sample` are converted to ROS time, while `receiver.timestamp` and `receiver.timestamp_sample` stay on the PX4 boot clock.
+ `timestamp` is now when the sensors module published the sample; use `timestamp_sample` for the measurement time.
+ `SENS_GPS_MASK`, `SENS_GPS_TAU`, `SENS_GPS_PRIME` and `SENS_GPSn_ID/OFFX/OFFY/OFFZ/DELAY` are now `SENS_GNSS_*` and `SENS_GNSSn_*` (the driver `GPS_*` and `EKF2_*` parameters are unchanged).
+ 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.
+ Missions stored on the vehicle with such jumps must be edited and uploaded again.
## Other changes
@@ -42,6 +58,10 @@ Please continue reading for [upgrade instructions](#upgrade-guide).
### Hardware Support
- [DroneCAN ESCs](../dronecan/escs.md) no longer need to set `UAVCAN_PUB_ARM` as `ArmingStatus` is published automatically whenever `UAVCAN_ENABLE` is `3` (ESC output enabled). ([PX4-Autopilot#28364](https://github.com/PX4/PX4-Autopilot/pull/28364))
+- [DroneCAN ESC](../dronecan/escs.md) channels assigned a non-motor function (e.g. _Peripheral via Actuator Set_) can be driven bidirectionally via `UAVCAN_EC_SIGNED` (signed RawCommand, 0 = neutral). Motors continue to use `CA_R_REV`. ([PX4-Autopilot#26903](https://github.com/PX4/PX4-Autopilot/pull/26903))
+- [DroneCAN](../dronecan/index.md) batteries that set the charging flag in `BatteryInfo` now report a charging state (shown in MAVLink `BATTERY_STATUS.charge_state`) as long as the pack has no low, critical or emergency warning. Charging does not count as a battery warning, so it does not affect the [battery level failsafe](../config/safety.md#battery-level-failsafe) or the arming checks. ([PX4-Autopilot#28422](https://github.com/PX4/PX4-Autopilot/pull/28422), [PX4-Autopilot#29012](https://github.com/PX4/PX4-Autopilot/pull/29012))
+- [Serial Passthrough](../uart/serial_passthrough.md): new reference [bridge application](../uart/serial_passthrough.md#bridge-application), `Tools/mavlink_serial_bridge.py`, exposes a flight controller serial port or ESC signal pin as a virtual serial port on a Linux/macOS host, so ESC configuration and GPS tools can connect to it over MAVLink.
+ ([PX4-Autopilot#28782: feat(tools): add mavlink_serial_bridge.py reference bridge application](https://github.com/PX4/PX4-Autopilot/pull/28782))
### Common
@@ -50,7 +70,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide).
### Control
-- TBD
+- [Gain compression](../features_mc/gain_compression.md) is now available on multicopters ([MC_GC_EN](../advanced_config/parameter_reference.md#MC_GC_EN)). When an oscillation is detected on the torque setpoint the rate loop gain is dynamically reduced instead of requiring a manual retune, and recovers to 1.0 once the oscillation stops. The lower bound is set with [MC_GC_GAIN_MIN](../advanced_config/parameter_reference.md#MC_GC_GAIN_MIN) (default `0.3`). Disabled by default.
### 安全
@@ -69,11 +89,14 @@ Please continue reading for [upgrade instructions](#upgrade-guide).
### Estimation
-- TBD
+- EKF2 fuses dual-antenna GNSS heading from its own topic, `vehicle_gnss_heading`, at the heading's rate and measurement time instead of with each position sample. GNSS yaw fusion is gated on the heading itself (its baseline checks, and the spoofing and jamming state of the receiver providing it under [GNSS_CHECK](../advanced_config/parameter_reference.md#GNSS_CHECK), which stop it like position fusion), not on the position checks, and it keeps running when position and velocity fusion stop. `GPS_RAW_INT` and `GPS2_RAW` report the body-frame heading of the receiver that provides it. ([PX4-Autopilot#27102](https://github.com/PX4/PX4-Autopilot/pull/27102))
+- When the local position estimate is lost in flight because of GNSS, commander now reports the reason as an event: either the receiver checks that failed, or that the receiver stopped sending data. The ground station and the log show the cause ahead of the "GNSS data fusion stopped" message. ([PX4-Autopilot#28873](https://github.com/PX4/PX4-Autopilot/pull/28873))
+- EKF2 now caps the GNSS height observation noise at [EKF2_NOAID_NOISE](../advanced_config/parameter_reference.md#EKF2_NOAID_NOISE) only when no other height source is fused. With a barometer or another height source, a GNSS height with a poor reported vertical accuracy is no longer fused as more accurate than the receiver reports. ([PX4-Autopilot#29058](https://github.com/PX4/PX4-Autopilot/pull/29058))
### 传感器
- Enable [u-blox Diagnostics with u-center](../gps_compass/u-center.md) while the vehicle's GPS runs as usual. ([PX4-Autopilot#28280](https://github.com/PX4/PX4-Autopilot/pull/28280)).
+- Disabling the selected IMU at runtime (setting its [CAL_ACCn_PRIO](../advanced_config/parameter_reference.md#CAL_ACC0_PRIO) or [CAL_GYROn_PRIO](../advanced_config/parameter_reference.md#CAL_GYRO0_PRIO) to `0`) now hands over to the next IMU without a sensor failure report, including while the vehicle is armed. A re-enabled IMU reappears in `sensors_status_imu` and the IMU consistency check only once it publishes new data. ([PX4-Autopilot#28811](https://github.com/PX4/PX4-Autopilot/pull/28811))
### 仿真
diff --git a/docs/zh/ros2/px4_ros2_control_interface.md b/docs/zh/ros2/px4_ros2_control_interface.md
index be2a6bdca24..7dac7342066 100644
--- a/docs/zh/ros2/px4_ros2_control_interface.md
+++ b/docs/zh/ros2/px4_ros2_control_interface.md
@@ -1,6 +1,6 @@
# PX4 ROS 2 控制接口
-
+
:::warning
Experimental
diff --git a/docs/zh/sensor/inertiallabs.md b/docs/zh/sensor/inertiallabs.md
index 29986aa05bc..a49a84fb45a 100644
--- a/docs/zh/sensor/inertiallabs.md
+++ b/docs/zh/sensor/inertiallabs.md
@@ -108,7 +108,7 @@ These uORB topics are published:
- [sensor_gyro](../msg_docs/SensorGyro.md)
- [sensor_mag](../msg_docs/SensorMag.md)
- [sensor_baro](../msg_docs/SensorBaro.md)
-- [sensor_gps](../msg_docs/SensorGps.md)
+- [sensor_gnss](../msg_docs/SensorGnss.md)
If enabled as an external INS, publishes:
diff --git a/docs/zh/sensor/microstrain.md b/docs/zh/sensor/microstrain.md
index 9546b0dd294..c9c50cffb44 100644
--- a/docs/zh/sensor/microstrain.md
+++ b/docs/zh/sensor/microstrain.md
@@ -179,7 +179,7 @@ The MicroStrain driver continuously publishes sensor data to the following uORB
For GNSS/INS devices, GPS data is also published to:
-- [sensor_gps](../msg_docs/SensorGps.md)
+- [sensor_gnss](../msg_docs/SensorGnss.md)
If used as an external INS replacing EKF2, it publishes:
diff --git a/docs/zh/sensor/sbgecom.md b/docs/zh/sensor/sbgecom.md
index 129e9ce0f97..9eaa4bfe08e 100644
--- a/docs/zh/sensor/sbgecom.md
+++ b/docs/zh/sensor/sbgecom.md
@@ -136,7 +136,7 @@ The sbgECom driver always publishes the unit's data to the following uORB topics
if configured as a GNSS, publishes:
-- [sensor_gps](../msg_docs/SensorGps.md)
+- [sensor_gnss](../msg_docs/SensorGnss.md)
and, if configured as an INS, publishes:
diff --git a/docs/zh/sensor/vectornav.md b/docs/zh/sensor/vectornav.md
index c19f6003b68..317eeabd6db 100644
--- a/docs/zh/sensor/vectornav.md
+++ b/docs/zh/sensor/vectornav.md
@@ -118,7 +118,7 @@ The VectorNav driver always publishes the unit's data to the following UOrb topi
- [sensor_gyro](../msg_docs/SensorGyro.md)
- [sensor_mag](../msg_docs/SensorMag.md)
- [sensor_baro](../msg_docs/SensorBaro.md)
-- [sensor_gps](../msg_docs/SensorGps.md)
+- [sensor_gnss](../msg_docs/SensorGnss.md)
and, if enabled as an external INS, publishes:
diff --git a/docs/zh/sim_gazebo_gz/index.md b/docs/zh/sim_gazebo_gz/index.md
index c9ba7abd9d1..115c62a3c4d 100644
--- a/docs/zh/sim_gazebo_gz/index.md
+++ b/docs/zh/sim_gazebo_gz/index.md
@@ -359,7 +359,7 @@ See [Simulation > Environment Configuration](../simulation/index.md#environment-
The PX4 Gazebo worlds and models databases [can be found on GitHub here](https://github.com/PX4/PX4-gazebo-models).
:::info
-`gz_env.sh.in` is compiled and made available in `$PX4_DIR/build/px4_sitl_default/rootfs/gz_env.sh`
+`gz_env.sh.in` is compiled and made available in `$PX4_DIR/build/px4_sitl_default/gz_env.sh`
:::
### 示例
diff --git a/docs/zh/sim_gazebo_gz/multi_vehicle_simulation.md b/docs/zh/sim_gazebo_gz/multi_vehicle_simulation.md
index 51ab15f3c22..b6f00a8efaa 100644
--- a/docs/zh/sim_gazebo_gz/multi_vehicle_simulation.md
+++ b/docs/zh/sim_gazebo_gz/multi_vehicle_simulation.md
@@ -96,7 +96,7 @@ This allows for greater flexibility and customization.
/px4_1/fmu/out/vehicle_attitude
/px4_1/fmu/out/vehicle_control_mode
/px4_1/fmu/out/vehicle_global_position
-/px4_1/fmu/out/vehicle_gps_position
+/px4_1/fmu/out/vehicle_gnss
/px4_1/fmu/out/vehicle_local_position
/px4_1/fmu/out/vehicle_odometry
/px4_1/fmu/out/vehicle_status
@@ -119,7 +119,7 @@ This allows for greater flexibility and customization.
/px4_2/fmu/out/vehicle_attitude
/px4_2/fmu/out/vehicle_control_mode
/px4_2/fmu/out/vehicle_global_position
-/px4_2/fmu/out/vehicle_gps_position
+/px4_2/fmu/out/vehicle_gnss
/px4_2/fmu/out/vehicle_local_position
/px4_2/fmu/out/vehicle_odometry
/px4_2/fmu/out/vehicle_status
@@ -142,7 +142,7 @@ This allows for greater flexibility and customization.
/px4_3/fmu/out/vehicle_attitude
/px4_3/fmu/out/vehicle_control_mode
/px4_3/fmu/out/vehicle_global_position
-/px4_3/fmu/out/vehicle_gps_position
+/px4_3/fmu/out/vehicle_gnss
/px4_3/fmu/out/vehicle_local_position
/px4_3/fmu/out/vehicle_odometry
/px4_3/fmu/out/vehicle_status
diff --git a/docs/zh/sim_gazebo_gz/worlds.md b/docs/zh/sim_gazebo_gz/worlds.md
index 6866a79c039..56069f275e5 100644
--- a/docs/zh/sim_gazebo_gz/worlds.md
+++ b/docs/zh/sim_gazebo_gz/worlds.md
@@ -30,7 +30,7 @@ This is used in conjunction with the [x500_mono_cam_down](../sim_gazebo_gz/vehic
Baylands world surrounded by water.
-[PX4-gazebo-models/main/worlds/bayland.sdf](https://github.com/PX4/PX4-gazebo-models/blob/main/worlds/baylands.sdf)
+[PX4-gazebo-models/main/worlds/baylands.sdf](https://github.com/PX4/PX4-gazebo-models/blob/main/worlds/baylands.sdf)

diff --git a/docs/zh/sim_sih/index.md b/docs/zh/sim_sih/index.md
index 1c86a7b192b..6c7472cf666 100644
--- a/docs/zh/sim_sih/index.md
+++ b/docs/zh/sim_sih/index.md
@@ -245,7 +245,7 @@ The specific differences for SIH simulation airframes are listed in the sections
:::
-- `param set-default SENS_GPS0_DELAY 0` to improve state estimator performance (the assumption of instant GPS measurements would normally be unrealistic, but is accurate for SIH).
+- `param set-default SENS_GNSS0_DELAY 0` to improve state estimator performance (the assumption of instant GPS measurements would normally be unrealistic, but is accurate for SIH).
### SIH on Flight Controller
diff --git a/docs/zh/simulation/failsafes.md b/docs/zh/simulation/failsafes.md
index 55a2b674cd8..1b6799c8540 100644
--- a/docs/zh/simulation/failsafes.md
+++ b/docs/zh/simulation/failsafes.md
@@ -83,6 +83,6 @@ failure gps ok
```
:::tip
-To test the [GNSS redundancy failsafe](../advanced_config/parameter_reference.md#COM_GNSSLOSS_ACT) you can simulate a second GPS receiver: set the antenna-offset parameter [SENS_GPS1_OFFX](../advanced_config/parameter_reference.md#SENS_GPS1_OFFX) or [SENS_GPS1_OFFY](../advanced_config/parameter_reference.md#SENS_GPS1_OFFY) to a non-zero value, and the simulator publishes a second `sensor_gps` instance offset by that distance (in metres).
+To test the [GNSS redundancy failsafe](../advanced_config/parameter_reference.md#COM_GNSSLOSS_ACT) you can simulate a second GPS receiver: set the antenna-offset parameter [SENS_GNSS1_OFFX](../advanced_config/parameter_reference.md#SENS_GNSS1_OFFX) or [SENS_GNSS1_OFFY](../advanced_config/parameter_reference.md#SENS_GNSS1_OFFY) to a non-zero value, and the simulator publishes a second `sensor_gnss` instance offset by that distance (in metres).
You can then fail an individual receiver with the `-i` flag (`-i 0` = all instances, `-i 1` = first GPS, `-i 2` = second), for example `failure gps wrong -i 2`.
:::
diff --git a/docs/zh/test_and_ci/ai_review.md b/docs/zh/test_and_ci/ai_review.md
new file mode 100644
index 00000000000..951b09a069f
--- /dev/null
+++ b/docs/zh/test_and_ci/ai_review.md
@@ -0,0 +1,110 @@
+# AI Pull Request Review
+
+PX4 maintainers can ask an AI model to review a pull request.
+The review is posted on the PR as a regular GitHub review comment, with inline comments on specific lines where it found problems.
+
+:::warning
+This is a trial.
+Reviews can be wrong, and the tool may change as we learn what works.
+Feedback from maintainers is welcome in the maintainers' channel or as an issue.
+:::
+
+## Who Can Use It
+
+Only people with write, maintain or admin access to the PX4-Autopilot repository can start a review.
+In practice this is the [Dev Team](https://github.com/orgs/PX4/teams/dev-team) (see [Maintainers](../contribute/maintainers.md)).
+A request from anyone else is ignored.
+
+## Starting a Review
+
+Post a comment on the open pull request that contains only this text:
+
+```txt
+!ai-review
+```
+
+The comment must contain nothing else.
+A sentence that mentions the command, a quote of it, or the command with a typo does not start a review.
+
+To pick the model or the effort level, add options on the same line:
+
+```txt
+!ai-review model=sonnet effort=high
+```
+
+- `model`: `opus` (the default) or `sonnet`.
+- `effort`: `low`, `medium`, `high`, `xhigh` (the default) or `max`.
+
+Both options apply to the first review pass only.
+The second pass that confirms findings always uses Claude Opus at `high` effort (set in `Tools/ci/ai_review/models.json`), and its cost is included in the total.
+
+Within a few seconds your comment gets a 👀 reaction, which means the review has started.
+When it finishes, the comment gets 🚀, or 😕 if the run failed.
+A review takes about 5 to 15 minutes, depending on the size of the PR.
+While it runs, an "AI PR Review" entry in the PR's checks shows its progress and links to the workflow run.
+This check is informational and never blocks a merge.
+
+You can also start a review from the **Actions** tab: open the [AI PR Review](https://github.com/PX4/PX4-Autopilot/actions/workflows/pr-ai-review.yml) workflow, select **Run workflow** and enter the PR number.
+
+:::tip
+Use reviews where a second opinion matters most: flight-critical code, new boards, large changes, and contributions from people new to the project.
+Every review costs money (see [Cost](#cost)).
+:::
+
+## What the Review Contains
+
+For an example, see [PR #28901](https://github.com/PX4/PX4-Autopilot/pull/28901).
+
+- Inline comments on specific lines, for findings that a second, independent model pass confirmed with high confidence.
+ When a small change fully fixes the problem, the comment includes a suggestion that the author can apply with one click.
+- A "Before merge" list for issues with the pull request as a whole, such as missing test evidence, a description that does not match the change, or missing upgrade notes or documentation.
+- A checklist covering whether the problem is real, test evidence, the description, compatibility, and documentation.
+- A collapsed list of lower-confidence findings that may still be worth checking.
+- The cost of the review, the model used and how long it took, at the bottom.
+
+The review is always a comment.
+It never approves a pull request or requests changes: maintainers decide.
+
+Running the review again on the same pull request collapses the previous review's summary and marks it as superseded.
+Its inline comments stay on the pull request and may refer to an older commit.
+
+If the model's safety filter declines to review a pull request, which occasionally happens, the bot posts that no review was done and quotes the reason it was given.
+
+## Cost
+
+Each review is billed to the PX4 project.
+So far, reviews have cost between about $0.60 for a small change and $5 to $8 for a large board addition with Claude Opus, and less with Claude Sonnet.
+The exact cost is shown at the bottom of every review.
+
+Claude Sonnet is faster and cheaper, but in testing it missed real problems that Claude Opus found, so Opus is the default.
+
+## How It Works
+
+1. A small job checks that the comment is exactly the command and that the commenter has write access, using the GitHub API.
+ If either check fails, nothing else runs.
+2. The review job runs _Claude Code_ with Claude Opus on Amazon Bedrock, on a PX4 CI runner.
+ It reads the pull request, the surrounding code, linked issues, commit messages, CI status and git history.
+ It reviews against the same criteria as the `review-pr` skill used by maintainers locally, plus the contribution requirements (test evidence, an accurate description, upgrade notes and documentation).
+3. A second model pass checks each finding against the code.
+ Only findings it confirms with high confidence are posted as inline comments.
+4. The result is handed to the existing PR review poster workflow, which posts it on the pull request.
+
+The pull request is treated as untrusted input:
+
+- The reviewer can only read files and run a few read-only commands.
+ It never builds or runs the pull request's code.
+- When it needs to check a calculation, it runs Python in an isolated `px4-dev` container with no network access and no credentials.
+- The review job has no write access to GitHub; only the separate posting workflow does.
+- The review code always comes from `main`.
+ A pull request cannot change how it is reviewed, and changes to the review tool only take effect once they are merged.
+
+## Changing the Review
+
+The code is in [`Tools/ci/ai_review/`](https://github.com/PX4/PX4-Autopilot/tree/main/Tools/ci/ai_review), a Python package with its own [README](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/ci/ai_review/README.md).
+The workflow is [`.github/workflows/pr-ai-review.yml`](https://github.com/PX4/PX4-Autopilot/blob/main/.github/workflows/pr-ai-review.yml).
+
+- The models and their default effort levels are set in `Tools/ci/ai_review/models.json`.
+- The review criteria shared with the `review-pr` skill are in `.agents/skills/review-pr/review-criteria.md`.
+- The CI-only prompts are in `Tools/ci/ai_review/prompts/`.
+
+Pull requests to improve the review are welcome.
diff --git a/docs/zh/test_and_ci/index.md b/docs/zh/test_and_ci/index.md
index ca0c09bd697..44a51e8320e 100644
--- a/docs/zh/test_and_ci/index.md
+++ b/docs/zh/test_and_ci/index.md
@@ -10,6 +10,7 @@ Test topics include:
- [Unit Tests](../test_and_ci/unit_tests.md)
- [Sanitizers](../test_and_ci/sanitizers.md) - Build SITL with ASan/TSan to catch memory errors and data races
- [Continuous Integration (CI)](../test_and_ci/continous_integration.md)
+- [AI Pull Request Review](../test_and_ci/ai_review.md) - Ask an AI model to review a pull request (maintainers, trial)
- [Integration Testing](../test_and_ci/integration_testing.md)
- [MAVSDK Integration Testing](../test_and_ci/integration_testing_mavsdk.md)
- [PX4 ROS 2 Interface Library Integration Testing](../test_and_ci/integration_testing_px4_ros2_interface.md)
diff --git a/docs/zh/uart/serial_passthrough.md b/docs/zh/uart/serial_passthrough.md
index 8121b13a196..bdf57817088 100644
--- a/docs/zh/uart/serial_passthrough.md
+++ b/docs/zh/uart/serial_passthrough.md
@@ -23,12 +23,12 @@ The following device IDs are allowed (note that this is a subset of the IDs spec
| Device ID | 平台 |
| --------- | ------------------------------------------------------ |
-| `0` | TEL1 |
-| `1` | TEL2 |
-| `2` | GPS1 |
-| `3` | GPS2 |
-| `4` | TEL3 |
-| `5` | TEL4 |
+| `0` | `TELEM1` |
+| `1` | `TELEM2` |
+| `2` | `GPS1` |
+| `3` | `GPS2` |
+| `4` | `TELEM3` |
+| `5` | `TELEM4` |
| `20` | ESC channel 0 ([bitbang](#bitbang)) |
| `21` | ESC channel 1 (bitbang) |
| `22` | ESC channel 2 (bitbang) |
@@ -50,11 +50,6 @@ Note that the `PASSTHRU_EN` parameter need not be set.
## ESC Channel Mode (Bitbang UART) {#bitbang}
-:::tip
-This feature is not yet useful because PX4 does not ship a ready-made tool for using serial passthrough with common ESC configuration or firmware flashing tools.
-Information on how such a tool might be developed is given below in [Bridge Application](#bridge-application).
-:::
-
Device IDs 20–27 route through a software bit-bang UART on the ESC signal pin rather than a hardware UART.
This is useful for communicating with ESCs that expose a UART telemetry or configuration port on their signal wire (such as BLHeli_32 passthrough, AM32, or ESC configuration tools).
@@ -67,15 +62,78 @@ When a request arrives for a different ESC channel, the driver stops the current
Bitbang UART support requires that both `CONFIG_DRIVERS_SERIALPASSTHROUGH=y` and `CONFIG_SERIALPASSTHROUGH_BITBANG=y` are set before building (the timer is selected with `CONFIG_UART_BITBANG_TIMER`, and defaults to `TIM13`).
The `PASSTHRU_EN` parameter must be set to `1` and the device rebooted in order to enable this mode.
-### Bridge Application
+## Bridge Application
-Developers can create their own bridge application if needed.
-This would connect to the vehicle over MAVLink, expose a virtual serial port (e.g. a Unix PTY) to the tool on the host, and translate traffic bidirectionally.
+[`Tools/mavlink_serial_bridge.py`](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/mavlink_serial_bridge.py) is a reference bridge application (Linux/macOS only): it connects to the vehicle over MAVLink, exposes a virtual serial port (a Unix PTY) to a serial tool on the host, such as an ESC configurator, and translates traffic bidirectionally.
+
+The script supports all [device IDs](#device-ids), selected with its `--port` option:
+
+| `--port` | Device ID | 平台 |
+| ------------- | --------- | ---------------- |
+| `telem1` | `0` | `TELEM1` |
+| `telem2` | `1` | `TELEM2` |
+| `gps1` | `2` | `GPS1` |
+| `gps2` | `3` | `GPS2` |
+| `telem3` | `4` | `TELEM3` |
+| `telem4` | `5` | `TELEM4` |
+| `esc0`–`esc7` | `20`–`27` | ESC channels 0–7 |
+
+Install its only dependency and run it, for example to bridge ESC channel 0:
+
+```sh
+pip3 install --user pymavlink
+./Tools/mavlink_serial_bridge.py --connection /dev/ttyUSB0 --port esc0 --setup
+```
+
+`--connection` takes a [pymavlink connection string](https://mavlink.io/en/mavgen_python/#connection_string) for the link to the vehicle, such as a telemetry radio (`/dev/ttyUSB0`, with `--baud` if it isn't 57600) or a network link (`tcp::`, or `udpin:0.0.0.0:14550`).
+A `udp:127.0.0.1:` string only receives MAVLink traffic sent to this machine, for example by a local MAVLink router.
+
+`--setup` sets `PASSTHRU_EN=1` and reboots the flight controller, so DShot/PWM outputs are not started until the next reboot (see [PX4 Configuration (ESC targets)](#px4-configuration-esc-targets)).
+Use it only with `esc*` ports, and again after each reboot, since PX4 resets the parameter at boot.
+For `telem*` and `gps*` ports, leave out `--setup`: they don't need `PASSTHRU_EN`.
+
+The script prints the PTY path it created (e.g. `/dev/pts/5`).
+Once it prints `Bridge running`, point any tool that expects a serial connection (ESC configurator, GPS/RTK utility, and so on) at that path.
+Run it with `-h` for the full list of options.
+
+For `esc*` ports the UART baud rate is fixed at 19200 (the bitbang limit) and `--port-baud` is ignored.
+
+Developers can create their own bridge application in another language if needed, following the protocol described below.
Data written to the PTY would be sent as `SERIAL_CONTROL` messages with `SERIAL_CONTROL_FLAG_RESPOND | SERIAL_CONTROL_FLAG_EXCLUSIVE` set, and incoming `SERIAL_CONTROL` reply messages (with `FLAG_REPLY` set) would be written back to the PTY.
To initialise the passthrough, the bridge should send one `SERIAL_CONTROL` message with the target device ID, the desired UART baud rate in the `baudrate` field, and `count=0` (no payload), then wait approximately 2 seconds for PX4 to spawn the passthrough task before sending real traffic.
For ESC bitbang mode (device IDs 20–27), the bridge must first set `PASSTHRU_EN=1` via `PARAM_SET`, confirm the `PARAM_VALUE` acknowledgement, send `MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN`, and wait for the FMU heartbeat to return before sending the init message — this ensures the DShot/PWM drivers are not running when the bitbang driver takes over the ESC signal pins.
+### Switching Devices at Runtime
+
+The bridge reads commands from its standard input, so that a host tool that launches it as a subprocess can change the target device without restarting the bridge.
+This is mainly intended for tools that work through several ESCs in sequence, such as flashing or configuring each ESC channel in turn.
+
+To switch, write a line in the following form to the bridge's stdin (or type it and press Enter when running it interactively):
+
+```text
+SWITCH
+```
+
+`` is the numeric [device ID](#device-ids) (for example `SWITCH 21` for ESC channel 1), not the `--port` name.
+Lines that are not valid `SWITCH` commands are ignored.
+
+When a valid command is received, the bridge:
+
+1. Prints `Switching to device `.
+2. Sends a `SERIAL_CONTROL` init message (`count=0`) for the new device, using the same UART baud rate the bridge was started with.
+3. Forwards all further PTY traffic to the new device, and discards replies that still arrive from the previous device.
+
+The PTY path does not change, so the host tool can keep its serial port open across the switch.
+
+Note the following when using `SWITCH`:
+
+- The bridge does not wait after sending the init message.
+ Allow some time for PX4 to stop the previous instance and start the new one (up to 100 ms for ESC channels) before sending data.
+- The baud rate is not changed, so switching between ESC channels (19200 baud) works as expected, but switching between ESC and `telem*`/`gps*` targets keeps the original baud rate.
+- `--setup` is only applied at startup.
+ `PASSTHRU_EN` must already be enabled before you switch to an ESC channel.
+
## 配置
### Firmware Configuration (Build-Time)
diff --git a/docs/zh/vtx/index.md b/docs/zh/vtx/index.md
index 79d8ecfe4e1..80a27d2dcaa 100644
--- a/docs/zh/vtx/index.md
+++ b/docs/zh/vtx/index.md
@@ -281,16 +281,15 @@ The wire protocol and the device model are configured independently.
`VTX_DEVICE` selects the specific VTX model and only enables device-specific workarounds. Leave at Generic unless your VTX is listed
-| 值 | 设备 |
-| ------- | ------------- |
-| `0` | Generic |
-| `5120` | Peak THOR T67 |
-| `10240` | Rush MAX SOLO |
+| 值 | 设备 |
+| ------ | ------------------------------ |
+| `0` | Generic |
+| `5120` | Peak THOR - T35, T67, T78, T89 |
-Peak THOR devices speak SmartAudio and the Rush MAX SOLO speaks Tramp, so set `VTX_PROTOCOL` to match the model you select.
+Peak THOR devices speak SmartAudio, so set `VTX_PROTOCOL` to match the model you select.
### Known Device Workarounds
-**Peak THOR T67** (`VTX_DEVICE` = 5120):
-This device incorrectly reports pit mode status but otherwise functions normally.
+**Peak THOR - T35, T67, T78, T89** (`VTX_DEVICE` = 5120):
+These devices incorrectly report pit mode status but otherwise function normally.
The driver applies a workaround to override the reported status with the actual configured state.