测试失步曲线

2018-11-02  本文已影响0人  ww4u
#! code=utf-8

from mrq.MRQ import MRQ
from mrq.mgr import DevMgr

if __name__=="__main__":
    dev = MRQ("Device1")
    print( dev.IDN )
    
    tMgr = DevMgr()
    print( tMgr.IDN )

    # clear diagnosis
    tMgr.diagnosis()
    # loop for each 
    for i in range( 100, 1, -1 ):
        dev.move( 0,0,360, i * 0.01 )
        dev.waitIdle( 0,0,60 )

        # check the ret
        ret = tMgr.diagnosis()
        if ( ret[0] > 0 ):
            print( i )
上一篇下一篇

猜你喜欢

热点阅读