fix: adding thruster definition to actuators

This commit is contained in:
Pedro-Roque
2025-01-30 17:00:47 +01:00
parent d7c89effc8
commit bb5d6a01b8
2 changed files with 3 additions and 1 deletions
@@ -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']))
+1 -1
View File
@@ -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,