Skip to content

SetpointConfigReply (UORB message)

Reply to SetpointConfig.

TOPICS: setpoint_config_reply

Fields

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64usTime since system start
typeuint16See SetpointConfig::TYPE_*
source_iduint8nav_state of the mode that sent the SetpointConfig
resultuint8RESULT
mode_req_angular_velocitybool
mode_req_attitudebool
mode_req_local_altbool
mode_req_local_positionbool

Enums

RESULT

Used in field(s): result

NameTypeValueDescription
RESULT_SUCCESSuint80
RESULT_FAILURE_OTHERuint81
RESULT_UNSUPPORTEDuint82Setpoint type is unsupported for the current vehicle
RESULT_UNKNOWN_SETPOINT_TYPEuint83The setpoint type is not known

Constants

NameTypeValueDescription
MESSAGE_VERSIONuint320

Source Message

Source file (GitHub)

Click here to see original file
c
# 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