Skip to content

ActuatorMotors (UORB message) ​

Motor control message.

Normalised thrust setpoint for up to 12 motors. Published by the vehicle's allocation and consumed by the ESC protocol drivers e.g. PWM, DSHOT, UAVCAN.

TOPICS: actuator_motors

Fields ​

参数名类型Unit [Frame]Range/Enum描述
timestampuint64usTime since system start
timestamp_sampleuint64usSampling timestamp of the data this control response is based on
reversible_flagsuint16Bitset indicating which motors are configured to be reversible
controlfloat32[12][-1 : 1]Normalized thrust. Where 1 means maximum positive thrust, -1 maximum negative (if not supported by the output, <0 maps to NaN). NaN maps to disarmed (stop the motors)

Constants ​

参数名类型值描述
MESSAGE_VERSIONuint320
ACTUATOR_FUNCTION_MOTOR1uint8101output_functions.yaml Motor.start
NUM_CONTROLSuint812output_functions.yaml Motor.count

Source Message ​

Source file (GitHub)

Details

Click here to see original file

c
# Motor control message
#
# Normalised thrust setpoint for up to 12 motors.
# Published by the vehicle's allocation and consumed by the ESC protocol drivers e.g. PWM, DSHOT, UAVCAN.

uint32 MESSAGE_VERSION = 0

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

uint16 reversible_flags # [-] Bitset indicating which motors are configured to be reversible

uint8 ACTUATOR_FUNCTION_MOTOR1 = 101 # output_functions.yaml Motor.start

uint8 NUM_CONTROLS = 12 # output_functions.yaml Motor.count
float32[12] control # [@range -1, 1] Normalized thrust. Where 1 means maximum positive thrust, -1 maximum negative (if not supported by the output, <0 maps to NaN). NaN maps to disarmed (stop the motors)