mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
5.4 KiB
5.4 KiB
pageClass
| pageClass |
|---|
| is-wide-page |
ConfigOverrides (UORB message)
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 |
|---|---|---|---|---|
| timestamp | uint64 |
us | Time since system start | |
| disable_auto_disarm | bool |
Prevent the drone from automatically disarming after landing (if configured) | ||
| defer_failsafes | bool |
Defer all deferrable failsafes (until the flag is cleared) | ||
| defer_failsafes_timeout_s | int16 |
s | Maximum time a failsafe can be deferred. 0 = system default. (Invalid: -1 No timeout) | |
| disable_auto_set_home | bool |
Prevent the drone from automatically setting the home position on arm or takeoff | ||
| source_type | int8 |
SOURCE_TYPE | Origin of this override | |
| 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
Used in field(s): source_type
| Name | Type | Value | Description |
|---|---|---|---|
| SOURCE_TYPE_MODE | int8 |
0 | Override originates from a mode |
| SOURCE_TYPE_MODE_EXECUTOR | int8 |
1 | Override originates from a mode executor |
Constants
| Name | Type | Value | Description |
|---|---|---|---|
| MESSAGE_VERSION | uint32 |
1 | |
| ORB_QUEUE_LENGTH | uint8 |
4 |
Source Message
::: details Click here to see original file
# 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 # [us] Time since system start
bool disable_auto_disarm # Prevent the drone from automatically disarming after landing (if configured)
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 # [@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 assigned at registration (RegisterExtComponentReply): mode_id for SOURCE_TYPE_MODE, mode_executor_id for SOURCE_TYPE_MODE_EXECUTOR
uint8 ORB_QUEUE_LENGTH = 4
# TOPICS config_overrides config_overrides_request config_overrides_confirm
:::