switches drawing of servo links temporarily off to speed up processing.

This commit is contained in:
Philip Eisenlohr 2011-02-11 11:29:58 +00:00
parent 171f5375f1
commit 874d5067c7
1 changed files with 9 additions and 2 deletions

View File

@ -179,12 +179,19 @@ parser.set_defaults(verbose=False)
outputLocals = {}
print 'waiting to connect...'
py_connect('',options.port)
output(['*remove_all_servos',
output([\
'*remove_all_servos',
'*sweep_all',
'*renumber_nodes'],outputLocals,'Mentat') # script depends on consecutive numbering of nodes
'*renumber_nodes',
'*set_links off',
],outputLocals,'Mentat') # script depends on consecutive numbering of nodes
cmds = servoLink()
print 'connected...'
output(cmds,outputLocals,'Mentat')
output([\
'*set_links on',
'*draw',
],outputLocals,'Mentat') # script depends on consecutive numbering of nodes
py_disconnect()
if options.verbose: