mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-25 13:57:42 +08:00
5.5 KiB
5.5 KiB
pageClass
| pageClass |
|---|
| is-wide-page |
SetpointConfigReply (UORB message)
Reply to SetpointConfig.
TOPICS: setpoint_config_reply
Fields
| Назва | Тип | Unit [Frame] | Range/Enum | Опис |
|---|---|---|---|---|
| timestamp | uint64 |
us | Time since system start | |
| type | uint16 |
See SetpointConfig::TYPE_* | ||
| source_id | uint8 |
nav_state of the mode that sent the SetpointConfig | ||
| result | uint8 |
RESULT | ||
| mode_req_angular_velocity | bool |
|||
| mode_req_attitude | bool |
|||
| mode_req_local_alt | bool |
|||
| mode_req_local_position | bool |
Enums
RESULT
Used in field(s): result
Constants
| Назва | Тип | Значення | Опис |
|---|---|---|---|
| MESSAGE_VERSION | uint32 |
0 |
Source Message
:::details Click here to see original file
# Reply to SetpointConfig
uint32 MESSAGE_VERSION = 0
uint64 timestamp # [us] Time since system start
uint16 type # See SetpointConfig::TYPE_*
uint8 source_id # nav_state of the mode that sent the SetpointConfig
uint8 RESULT_SUCCESS = 0
uint8 RESULT_FAILURE_OTHER = 1
uint8 RESULT_UNSUPPORTED = 2 # Setpoint type is unsupported for the current vehicle
uint8 RESULT_UNKNOWN_SETPOINT_TYPE = 3 # The setpoint type is not known
uint8 result # [@enum RESULT]
# Mode requirements for using the given setpoint type. A mode will use these and apply them to the arming check reply (PX4 does not do that itself).
# Certain setpoint types can be used in a reduced way, for example a TrajectorySetpoint without position control. In that case PX4 still sets all requirement flags, and the mode will then ignore mode_req_local_position.
bool mode_req_angular_velocity
bool mode_req_attitude
bool mode_req_local_alt
bool mode_req_local_position
:::