move clamping and reorder values

This commit is contained in:
ttechnick
2025-11-20 13:44:35 +01:00
parent b4eae779f5
commit 264d53efbe
5 changed files with 31 additions and 12 deletions
@@ -237,8 +237,8 @@ def get_actuator_output(yaml_config, output_functions, timer_config_file, verbos
( 'function', 'Function', 'FUNC', False ),
( 'disarmed', 'Disarmed', 'DIS', False ),
( 'min', 'Minimum', 'MIN', False ),
( 'center', 'Center', 'CENT', False ),
( 'max', 'Maximum', 'MAX', False ),
( 'center', 'Center\n(for Servos)', 'CENT', False ),
( 'failsafe', 'Failsafe', 'FAIL', True ),
]
for key, label, param_suffix, advanced in standard_params_array:
+5 -1
View File
@@ -286,7 +286,7 @@ Note that non-motor outputs might already be active in prearm state if COM_PREAR
'''Minimum output value (when not disarmed).
'''
center_description = \
'''Center output value (when not disarmed).
'''Servo Center output value (when not disarmed).
'''
maximum_description = \
'''Maxmimum output value (when not disarmed).
@@ -316,6 +316,10 @@ When set to -1 (default), the value depends on the function (see {:}).
standard_params[key]['default'] = -1
standard_params[key]['min'] = -1
if key == 'center':
standard_params[key]['default'] = -1
standard_params[key]['min'] = -1
param = {
'description': {
'short': channel_label+' ${i} '+label+' Value',