1
0
Fork 0

set default position to "home" preset

This commit is contained in:
Kevin Matz 2019-07-30 11:06:34 -04:00
parent 9c8477b755
commit 9e04b9399d
1 changed files with 1 additions and 0 deletions

View File

@ -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)