set default position to "home" preset
This commit is contained in:
parent
9c8477b755
commit
9e04b9399d
|
@ -49,6 +49,7 @@ config = configparser.ConfigParser(allow_no_value=True)
|
|||
config.read('robot.cfg') # open config file
|
||||
r.config = config['robot'] # robot section of config file
|
||||
r.preset = config['presets'] # presets section of config file
|
||||
r.target = r.read_preset(r.preset.get('home', None)) # get default position
|
||||
r.start() # open port, start read thread
|
||||
|
||||
script = ArmCtlListener(r)
|
||||
|
|
Loading…
Reference in New Issue