mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 14:07:34 +08:00
fix: adding thruster definition to actuators
This commit is contained in:
@@ -364,6 +364,8 @@ def get_mixers(yaml_config, output_functions, verbose):
|
||||
actuator['group-label'] = 'Motors'
|
||||
elif actuator_conf['actuator_type'] == 'servo':
|
||||
actuator['group-label'] = 'Servos'
|
||||
elif actuator_conf['actuator_type'] == 'thruster':
|
||||
actuator['group-label'] = 'Thrusters'
|
||||
else:
|
||||
raise Exception('Missing group label for actuator type "{}"'.format(actuator_conf['actuator_type']))
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ uint64 timestamp_sample # the timestamp the data this control response is ba
|
||||
uint16 reversible_flags # bitset which motors are configured to be reversible
|
||||
|
||||
uint8 ACTUATOR_FUNCTION_MOTOR1 = 101
|
||||
uint8 ACTUATOR_FUNCTION_THRUSTER1 = 501
|
||||
uint16 ACTUATOR_FUNCTION_THRUSTER1 = 501
|
||||
|
||||
uint8 NUM_CONTROLS = 12
|
||||
float32[12] control # range: [-1, 1], where 1 means maximum positive thrust,
|
||||
|
||||
Reference in New Issue
Block a user