mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 22:40:27 +08:00
docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
This commit is contained in:
1 parent
4964fa5995
commit
ba5d45a3ea
6 files changed
+76
-66
No files matched your search
@@ -18,9 +18,11 @@ Published by the sensors module. Describes the latest sample of each receiver: t
|
||||
| <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]` | | | Publishing, and has passed its checks for long enough |
|
||||
| <a id="fld_failed_checks"></a>failed_checks | `uint16[4]` | | | Bitmask of the enabled checks that failed, VehicleGnss CHECK\_\* bits |
|
||||
| <a id="fld_strict"></a>strict | `bool[4]` | | | The pre-flight thresholds apply rather than the relaxed in-flight ones |
|
||||
| <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_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 |
|
||||
@@ -50,9 +52,11 @@ 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
|
||||
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
|
||||
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
|
||||
|
||||
@@ -13,22 +13,39 @@ Heading is on vehicle_gnss_heading.
|
||||
|
||||
## Fields
|
||||
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| --------------------------------------------------- | ------------ | ------------ | --------------- | ------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
||||
| <a id="fld_timestamp_sample"></a>timestamp_sample | `uint64` | us | | Measurement time, delay corrected. Use this rather than receiver.timestamp_sample, which holds the same value |
|
||||
| <a id="fld_receiver"></a>receiver | `SensorGnss` | | | The selected receiver's sensor_gnss sample with the corrected timestamp_sample |
|
||||
| <a id="fld_antenna_offset"></a>antenna_offset | `float32[3]` | m [FRD] | | Antenna position of the selected receiver |
|
||||
| <a id="fld_selected_instance"></a>selected_instance | `uint8` | | | sensor_gnss instance of the selected receiver |
|
||||
| <a id="fld_selection_count"></a>selection_count | `uint8` | | | Increments when the selected receiver changes |
|
||||
| <a id="fld_usable"></a>usable | `bool` | | | Sample may be used: the receiver has passed its checks for long enough |
|
||||
| <a id="fld_failed_checks"></a>failed_checks | `uint16` | | [CHECK](#CHECK) | Bitmask of the enabled checks that failed |
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| ----------------------------------------------------------- | ------------ | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
||||
| <a id="fld_timestamp_sample"></a>timestamp_sample | `uint64` | us | | Measurement time, delay corrected. Use this rather than receiver.timestamp_sample, which holds the same value |
|
||||
| <a id="fld_receiver"></a>receiver | `SensorGnss` | | | The selected receiver's sensor_gnss sample with the corrected timestamp_sample |
|
||||
| <a id="fld_antenna_offset"></a>antenna_offset | `float32[3]` | m [FRD] | | Antenna position of the selected receiver |
|
||||
| <a id="fld_selected_instance"></a>selected_instance | `uint8` | | | sensor_gnss instance of the selected receiver |
|
||||
| <a id="fld_selection_count"></a>selection_count | `uint8` | | | Increments when the selected receiver changes |
|
||||
| <a id="fld_selection_reason"></a>selection_reason | `uint8` | | [SELECTION](#SELECTION) | Why this receiver is selected |
|
||||
| <a id="fld_usable"></a>usable | `bool` | | | Sample may be used: the checks that decide it have passed without a failure for long enough |
|
||||
| <a id="fld_strict"></a>strict | `bool` | | | The strict checks decide usable: they haven't passed since the vehicle was disarmed on the ground, or they pass. Otherwise the relaxed checks decide |
|
||||
| <a id="fld_failed_strict_checks"></a>failed_strict_checks | `uint16` | | [CHECK](#CHECK) | Enabled checks this sample fails at the strict thresholds, evaluated on every sample |
|
||||
| <a id="fld_failed_relaxed_checks"></a>failed_relaxed_checks | `uint16` | | [CHECK](#CHECK) | Enabled checks this sample fails at the relaxed thresholds, evaluated on every sample |
|
||||
|
||||
## Enums
|
||||
|
||||
### SELECTION {#SELECTION}
|
||||
|
||||
Used in field(s): [selection_reason](#fld_selection_reason)
|
||||
|
||||
| Name | Type | Value | Description |
|
||||
| ----------------------------------------------------- | ------- | ----- | -------------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="#SELECTION_PREFERRED"></a> SELECTION_PREFERRED | `uint8` | 0 | The preferred receiver |
|
||||
| <a id="#SELECTION_ONLY"></a> SELECTION_ONLY | `uint8` | 1 | No other receiver has published |
|
||||
| <a id="#SELECTION_RANKED"></a> SELECTION_RANKED | `uint8` | 2 | No receiver is preferred, and no other one ranks higher |
|
||||
| <a id="#SELECTION_TIMEOUT"></a> SELECTION_TIMEOUT | `uint8` | 3 | The previously selected or the preferred receiver stopped publishing |
|
||||
| <a id="#SELECTION_UNHEALTHY"></a> SELECTION_UNHEALTHY | `uint8` | 4 | The previously selected or the preferred receiver failed its checks or delivered samples late, continuously or often |
|
||||
| <a id="#SELECTION_STRICT"></a> SELECTION_STRICT | `uint8` | 5 | Passes the strict checks, which the previously selected receiver didn't |
|
||||
| <a id="#SELECTION_RTK_FIXED"></a> SELECTION_RTK_FIXED | `uint8` | 6 | Passes the strict checks with an RTK fixed solution, and the previously selected receiver ranked lower |
|
||||
|
||||
### CHECK {#CHECK}
|
||||
|
||||
Used in field(s): [failed_checks](#fld_failed_checks)
|
||||
Used in field(s): [failed_strict_checks](#fld_failed_strict_checks), [failed_relaxed_checks](#fld_failed_relaxed_checks)
|
||||
|
||||
| Name | Type | Value | Description |
|
||||
| ----------------------------------------- | -------- | ----- | ------------------------------------------ |
|
||||
@@ -65,12 +82,22 @@ SensorGnss receiver # The selected receiver's sensor_gnss sample with the correc
|
||||
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
|
||||
uint8 selected_instance # [-] sensor_gnss instance of the selected receiver
|
||||
uint8 selection_count # [-] Increments when the selected receiver changes
|
||||
uint8 selection_reason # [@enum SELECTION] Why this receiver is selected
|
||||
uint8 SELECTION_PREFERRED = 0 # The preferred receiver
|
||||
uint8 SELECTION_ONLY = 1 # No other receiver has published
|
||||
uint8 SELECTION_RANKED = 2 # No receiver is preferred, and no other one ranks higher
|
||||
uint8 SELECTION_TIMEOUT = 3 # The previously selected or the preferred receiver stopped publishing
|
||||
uint8 SELECTION_UNHEALTHY = 4 # The previously selected or the preferred receiver failed its checks or delivered samples late, continuously or often
|
||||
uint8 SELECTION_STRICT = 5 # Passes the strict checks, which the previously selected receiver didn't
|
||||
uint8 SELECTION_RTK_FIXED = 6 # Passes the strict checks with an RTK fixed solution, and the previously selected receiver ranked lower
|
||||
|
||||
# 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
|
||||
# Check result for this sample. The strict checks are the GNSS_REQ_* thresholds, satellite count, PDOP and drift at rest on the ground; the relaxed checks are fixed, looser limits on fix type, accuracy, spoofing and jamming.
|
||||
bool usable # Sample may be used: the checks that decide it have passed without a failure for long enough
|
||||
bool strict # The strict checks decide usable: they haven't passed since the vehicle was disarmed on the ground, or they pass. Otherwise the relaxed checks decide
|
||||
uint16 failed_strict_checks # [@enum CHECK] Enabled checks this sample fails at the strict thresholds, evaluated on every sample
|
||||
uint16 failed_relaxed_checks # [@enum CHECK] Enabled checks this sample fails at the relaxed thresholds, evaluated on every sample
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user