Thanks to visit codestin.com
Credit goes to docs.px4.io

Skip to content

ActuatorServos (UORB message)

Servo control message.

Normalised output setpoint for up to 15 servos. Published by the vehicle's allocation and consumed by the actuator output drivers.

TOPICS: actuator_servos

Fields

参数名类型Unit [Frame]Range/Enum描述
timestampuint64usTime since system start
timestamp_sampleuint64usSampling timestamp of the data this control response is based on
controlfloat32[15][-1 : 1]Normalized output. 1 means maximum positive position. -1 maximum negative position (if not supported by the output, <0 maps to NaN). NaN maps to disarmed.

Constants

参数名类型描述
MESSAGE_VERSIONuint321
NUM_CONTROLSuint815

Source Message

Source file (GitHub)

Details

Click here to see original file

c
# Servo control message
#
# Normalised output setpoint for up to 15 servos.
# Published by the vehicle's allocation and consumed by the actuator output drivers.

uint32 MESSAGE_VERSION = 1

uint64 timestamp # [us] Time since system start
uint64 timestamp_sample # [us] Sampling timestamp of the data this control response is based on

uint8 NUM_CONTROLS = 15
float32[15] control # [-] [@range -1, 1] Normalized output. 1 means maximum positive position. -1 maximum negative position (if not supported by the output, <0 maps to NaN). NaN maps to disarmed.