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 = {} outputLocals = {}
print 'waiting to connect...' print 'waiting to connect...'
py_connect('',options.port) py_connect('',options.port)
output(['*remove_all_servos', output([\
'*remove_all_servos',
'*sweep_all', '*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() cmds = servoLink()
print 'connected...' print 'connected...'
output(cmds,outputLocals,'Mentat') output(cmds,outputLocals,'Mentat')
output([\
'*set_links on',
'*draw',
],outputLocals,'Mentat') # script depends on consecutive numbering of nodes
py_disconnect() py_disconnect()
if options.verbose: if options.verbose: