loading val from config

This commit is contained in:
sanjayk03-dev
2024-07-09 16:09:01 +05:30
parent 53ca6528e9
commit dec987b544
2 changed files with 10 additions and 6 deletions

View File

@@ -155,6 +155,10 @@ class Config(object):
elif 'min' in template and config[name] < template['min']:
config[name] = template['min']
if name in ['xp', 'yp', 'zp', 'offset_x', 'offset_y', 'offset_z']:
# self.ctrl.state.config(name, config[name])
self.log.info('147 name %s : %f' % (name, config[name]))
if template['type'] == 'list':
if 'index' in template:
config = config[name]

View File

@@ -655,27 +655,27 @@
"axes": {
"xp": {
"type": "int",
"type": "float",
"default": 0
},
"yp": {
"type": "int",
"type": "float",
"default": 0
},
"zp": {
"type": "int",
"type": "float",
"default": 0
},
"offset_x": {
"type": "int",
"type": "float",
"default": 0
},
"offset_y": {
"type": "int",
"type": "float",
"default": 0
},
"offset_z": {
"type": "int",
"type": "float",
"default": 0
}
},