mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-28 19:21:03 +08:00
docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
This commit is contained in:
1 parent
d5a77d8fce
commit
99b0ddddbc
2 files changed
+44
-27
No files matched your search
@@ -4,30 +4,43 @@ pageClass: is-wide-page
|
||||
|
||||
# ConfigOverrides (UORB message)
|
||||
|
||||
Configurable overrides by (external) modes or mode executors.
|
||||
Configuration overrides from external modes or mode executors.
|
||||
|
||||
An external mode or mode executor requests overrides on config_overrides_request, identifying itself with source_type and source_id.
|
||||
Commander stores them for that mode or executor and echoes the request on config_overrides_confirm as acknowledgement.
|
||||
Commander publishes the overrides in effect on config_overrides: those of the current mode, with those of the executor in charge applied on top.
|
||||
|
||||
**TOPICS:** config_overrides config_overrides_request config_overrides_confirm
|
||||
|
||||
## Fields
|
||||
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| ------------------------------------------------------------------- | -------- | ------------ | ---------- | -------------------------------------------------------------------------------- |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | | | time since system start (microseconds) |
|
||||
| <a id="fld_disable_auto_disarm"></a>disable_auto_disarm | `bool` | | | Prevent the drone from automatically disarming after landing (if configured) |
|
||||
| <a id="fld_defer_failsafes"></a>defer_failsafes | `bool` | | | Defer all failsafes that can be deferred (until the flag is cleared) |
|
||||
| <a id="fld_defer_failsafes_timeout_s"></a>defer_failsafes_timeout_s | `int16` | | | Maximum time a failsafe can be deferred. 0 = system default, -1 = no timeout |
|
||||
| <a id="fld_disable_auto_set_home"></a>disable_auto_set_home | `bool` | | | Prevent the drone from automatically setting the home position on arm or takeoff |
|
||||
| <a id="fld_source_type"></a>source_type | `int8` | | |
|
||||
| <a id="fld_source_id"></a>source_id | `uint8` | | | ID depending on source_type |
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| ------------------------------------------------------------------- | -------- | ------------ | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
||||
| <a id="fld_disable_auto_disarm"></a>disable_auto_disarm | `bool` | | | Prevent the drone from automatically disarming after landing (if configured) |
|
||||
| <a id="fld_defer_failsafes"></a>defer_failsafes | `bool` | | | Defer all deferrable failsafes (until the flag is cleared) |
|
||||
| <a id="fld_defer_failsafes_timeout_s"></a>defer_failsafes_timeout_s | `int16` | s | | Maximum time a failsafe can be deferred. 0 = system default. (Invalid: -1 No timeout) |
|
||||
| <a id="fld_disable_auto_set_home"></a>disable_auto_set_home | `bool` | | | Prevent the drone from automatically setting the home position on arm or takeoff |
|
||||
| <a id="fld_source_type"></a>source_type | `int8` | | [SOURCE_TYPE](#SOURCE_TYPE) | Origin of this override |
|
||||
| <a id="fld_source_id"></a>source_id | `uint8` | | | ID assigned at registration (RegisterExtComponentReply): mode_id for SOURCE_TYPE_MODE, mode_executor_id for SOURCE_TYPE_MODE_EXECUTOR |
|
||||
|
||||
## Enums
|
||||
|
||||
### SOURCE_TYPE {#SOURCE_TYPE}
|
||||
|
||||
Used in field(s): [source_type](#fld_source_type)
|
||||
|
||||
| Name | Type | Value | Description |
|
||||
| ----------------------------------------------------------------- | ------ | ----- | ---------------------------------------- |
|
||||
| <a id="#SOURCE_TYPE_MODE"></a> SOURCE_TYPE_MODE | `int8` | 0 | Override originates from a mode |
|
||||
| <a id="#SOURCE_TYPE_MODE_EXECUTOR"></a> SOURCE_TYPE_MODE_EXECUTOR | `int8` | 1 | Override originates from a mode executor |
|
||||
|
||||
## Constants
|
||||
|
||||
| Name | Type | Value | Description |
|
||||
| ----------------------------------------------------------------- | -------- | ----- | ----------- |
|
||||
| <a id="#MESSAGE_VERSION"></a> MESSAGE_VERSION | `uint32` | 1 |
|
||||
| <a id="#SOURCE_TYPE_MODE"></a> SOURCE_TYPE_MODE | `int8` | 0 |
|
||||
| <a id="#SOURCE_TYPE_MODE_EXECUTOR"></a> SOURCE_TYPE_MODE_EXECUTOR | `int8` | 1 |
|
||||
| <a id="#ORB_QUEUE_LENGTH"></a> ORB_QUEUE_LENGTH | `uint8` | 4 |
|
||||
| Name | Type | Value | Description |
|
||||
| ----------------------------------------------- | -------- | ----- | ----------- |
|
||||
| <a id="#MESSAGE_VERSION"></a> MESSAGE_VERSION | `uint32` | 1 |
|
||||
| <a id="#ORB_QUEUE_LENGTH"></a> ORB_QUEUE_LENGTH | `uint8` | 4 |
|
||||
|
||||
## Source Message
|
||||
|
||||
@@ -36,23 +49,27 @@ Configurable overrides by (external) modes or mode executors.
|
||||
::: details Click here to see original file
|
||||
|
||||
```c
|
||||
# Configurable overrides by (external) modes or mode executors
|
||||
# Configuration overrides from external modes or mode executors
|
||||
#
|
||||
# An external mode or mode executor requests overrides on config_overrides_request, identifying itself with source_type and source_id.
|
||||
# Commander stores them for that mode or executor and echoes the request on config_overrides_confirm as acknowledgement.
|
||||
# Commander publishes the overrides in effect on config_overrides: those of the current mode, with those of the executor in charge applied on top.
|
||||
|
||||
uint32 MESSAGE_VERSION = 1
|
||||
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
uint64 timestamp # [us] Time since system start
|
||||
|
||||
bool disable_auto_disarm # Prevent the drone from automatically disarming after landing (if configured)
|
||||
bool disable_auto_disarm # Prevent the drone from automatically disarming after landing (if configured)
|
||||
|
||||
bool defer_failsafes # Defer all failsafes that can be deferred (until the flag is cleared)
|
||||
int16 defer_failsafes_timeout_s # Maximum time a failsafe can be deferred. 0 = system default, -1 = no timeout
|
||||
bool disable_auto_set_home # Prevent the drone from automatically setting the home position on arm or takeoff
|
||||
bool defer_failsafes # Defer all deferrable failsafes (until the flag is cleared)
|
||||
int16 defer_failsafes_timeout_s # [s] [@invalid -1 No timeout] Maximum time a failsafe can be deferred. 0 = system default.
|
||||
bool disable_auto_set_home # Prevent the drone from automatically setting the home position on arm or takeoff
|
||||
|
||||
int8 SOURCE_TYPE_MODE = 0
|
||||
int8 SOURCE_TYPE_MODE_EXECUTOR = 1
|
||||
int8 source_type
|
||||
int8 source_type # [@enum SOURCE_TYPE] Origin of this override
|
||||
int8 SOURCE_TYPE_MODE = 0 # Override originates from a mode
|
||||
int8 SOURCE_TYPE_MODE_EXECUTOR = 1 # Override originates from a mode executor
|
||||
|
||||
uint8 source_id # ID depending on source_type
|
||||
uint8 source_id # [-] ID assigned at registration (RegisterExtComponentReply): mode_id for SOURCE_TYPE_MODE, mode_executor_id for SOURCE_TYPE_MODE_EXECUTOR
|
||||
|
||||
uint8 ORB_QUEUE_LENGTH = 4
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
|
||||
- [ArmingCheckRequest](ArmingCheckRequest.md) — Arming check request.
|
||||
- [AuxGlobalPosition](AuxGlobalPosition.md) — Auxiliary global position.
|
||||
- [BatteryStatus](BatteryStatus.md) — Battery status.
|
||||
- [ConfigOverrides](ConfigOverrides.md) — Configurable overrides by (external) modes or mode executors.
|
||||
- [ConfigOverrides](ConfigOverrides.md) — Configuration overrides from external modes or mode executors.
|
||||
- [Event](Event.md) — Events interface.
|
||||
- [FixedWingLateralSetpoint](FixedWingLateralSetpoint.md) — Fixed Wing Lateral Setpoint message.
|
||||
- [FixedWingLongitudinalSetpoint](FixedWingLongitudinalSetpoint.md) — Fixed Wing Longitudinal Setpoint message.
|
||||
|
||||
Reference in new issue
Block a user