WIP: output modules native units

This commit is contained in:
Daniel Agar
2023-12-05 15:30:06 -05:00
parent d259386987
commit 3d7f6ea09c
38 changed files with 172 additions and 202 deletions
+1 -7
View File
@@ -302,12 +302,6 @@ When set to -1 (default), the value depends on the function (see {:}).
for key, label, param_suffix, description in standard_params_array:
if key in standard_params:
# values must be in range of an uint16_t
if standard_params[key]['min'] < 0:
raise Exception('minimum value for {:} expected >= 0 (got {:})'.format(key, standard_params[key]['min']))
if standard_params[key]['max'] >= 1<<16:
raise Exception('maximum value for {:} expected <= {:} (got {:})'.format(key, 1<<16, standard_params[key]['max']))
if key == 'failsafe':
standard_params[key]['default'] = -1
standard_params[key]['min'] = -1
@@ -317,7 +311,7 @@ When set to -1 (default), the value depends on the function (see {:}).
'short': channel_label+' ${i} '+label+' Value',
'long': description
},
'type': 'int32',
'type': 'float',
'instance_start': instance_start,
'instance_start_label': instance_start_label,
'num_instances': num_channels,