loading val from config
This commit is contained in:
@@ -154,6 +154,10 @@ class Config(object):
|
|||||||
|
|
||||||
elif 'min' in template and config[name] < template['min']:
|
elif 'min' in template and config[name] < template['min']:
|
||||||
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 template['type'] == 'list':
|
||||||
if 'index' in template:
|
if 'index' in template:
|
||||||
|
|||||||
@@ -655,27 +655,27 @@
|
|||||||
|
|
||||||
"axes": {
|
"axes": {
|
||||||
"xp": {
|
"xp": {
|
||||||
"type": "int",
|
"type": "float",
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"yp": {
|
"yp": {
|
||||||
"type": "int",
|
"type": "float",
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"zp": {
|
"zp": {
|
||||||
"type": "int",
|
"type": "float",
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"offset_x": {
|
"offset_x": {
|
||||||
"type": "int",
|
"type": "float",
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"offset_y": {
|
"offset_y": {
|
||||||
"type": "int",
|
"type": "float",
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"offset_z": {
|
"offset_z": {
|
||||||
"type": "int",
|
"type": "float",
|
||||||
"default": 0
|
"default": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user