diff --git a/src/py/bbctrl/Config.py b/src/py/bbctrl/Config.py index 3b14a22..f6a40af 100644 --- a/src/py/bbctrl/Config.py +++ b/src/py/bbctrl/Config.py @@ -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: diff --git a/src/resources/config-template.json b/src/resources/config-template.json index b3cd274..eb7a4fe 100644 --- a/src/resources/config-template.json +++ b/src/resources/config-template.json @@ -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 } },