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']:
|
||||
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:
|
||||
|
||||
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user