mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 06:10:45 +08:00
75 lines
9.9 KiB
Markdown
75 lines
9.9 KiB
Markdown
---
|
|
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 | 설명 |
|
|
| ------------------------------------------------------------------------------------------------------------------------------- | ------------ | ---------------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
|
| <a id="fld_device_id_selected"></a>device_id_selected | `uint32` | | | Receiver that vehicle_gnss carries |
|
|
| <a id="fld_device_ids"></a>device_ids | `uint32[4]` | | | One entry per receiver, 0 where unused |
|
|
| <a id="fld_order"></a>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 |
|
|
| <a id="fld_healthy"></a>healthy | `bool[4]` | | | Usable within the last 2 s: passed its checks for long enough and published without gaps. The selection fails over from a receiver that isn't |
|
|
| <a id="fld_availability"></a>availability | `float32[4]` | | | Fraction of recent time the receiver passed its checks and published without gaps, 0 to 1 |
|
|
| <a id="fld_inconsistency_horizontal"></a>inconsistency_horizontal | `float32[4]` | m | | Horizontal distance from where the selected receiver and the antenna positions put the receiver, at the time of the selected sample. 0 for the selected receiver (Invalid: NaN) |
|
|
| <a id="fld_inconsistency_vertical"></a>inconsistency_vertical | `float32[4]` | m | | Vertical distance from where the selected receiver and the antenna positions put the receiver, at the time of the selected sample. 0 for the selected receiver (Invalid: NaN) |
|
|
| <a id="fld_failed_strict_checks"></a>failed_strict_checks | `uint16[4]` | | | Enabled checks the latest sample fails at the strict thresholds, VehicleGnss CHECK\_\* bits |
|
|
| <a id="fld_failed_relaxed_checks"></a>failed_relaxed_checks | `uint16[4]` | | | Enabled checks the latest sample fails at the relaxed thresholds, VehicleGnss CHECK\_\* bits |
|
|
| <a id="fld_strict"></a>strict | `bool[4]` | | | The strict checks decide whether its samples are usable, as VehicleGnss strict |
|
|
| <a id="fld_drift_rate_horizontal"></a>drift_rate_horizontal | `float32[4]` | m/s | | Horizontal position drift rate at rest |
|
|
| <a id="fld_drift_rate_vertical"></a>drift_rate_vertical | `float32[4]` | m/s | | Vertical position drift rate at rest |
|
|
| <a id="fld_speed_horizontal_filtered"></a>speed_horizontal_filtered | `float32[4]` | m/s | | Filtered horizontal speed at rest |
|
|
| <a id="fld_kinematic_inconsistency_horizontal"></a>kinematic_inconsistency_horizontal | `float32[4]` | m/s | | Rate of change of the horizontal position minus the horizontal velocity, filtered, checked against GNSS_REQ_HKIN |
|
|
|
|
## Constants
|
|
|
|
| 명칭 | 형식 | Value | 설명 |
|
|
| -------------------------------------------------------------- | ------- | ----- | --------------------------------- |
|
|
| <a id="#MAX_RECEIVERS"></a> 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 # Usable within the last 2 s: passed its checks for long enough and published without gaps. The selection fails over from a receiver that isn't
|
|
float32[4] availability # [-] Fraction of recent time the receiver passed its checks and published without gaps, 0 to 1
|
|
float32[4] inconsistency_horizontal # [m] [@invalid NaN] Horizontal distance from where the selected receiver and the antenna positions put the receiver, at the time of the selected sample. 0 for the selected receiver
|
|
float32[4] inconsistency_vertical # [m] [@invalid NaN] Vertical distance from where the selected receiver and the antenna positions put the receiver, at the time of the selected sample. 0 for the selected receiver
|
|
uint16[4] failed_strict_checks # [-] Enabled checks the latest sample fails at the strict thresholds, VehicleGnss CHECK_* bits
|
|
uint16[4] failed_relaxed_checks # [-] Enabled checks the latest sample fails at the relaxed thresholds, VehicleGnss CHECK_* bits
|
|
bool[4] strict # The strict checks decide whether its samples are usable, as VehicleGnss strict
|
|
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
|
|
float32[4] kinematic_inconsistency_horizontal # [m/s] Rate of change of the horizontal position minus the horizontal velocity, filtered, checked against GNSS_REQ_HKIN
|
|
|
|
# TOPICS sensors_status_gnss
|
|
```
|
|
|
|
:::
|