Exemple #1
0
 def test_motor(self):
     # make sure the shuffled sequence does not lose any elements
     MotorDevice.start(0)
     MotorDevice.power(0,50)
     for i in range(0,10):
         print MotorDevice.getTacho(0)
         print MotorDevice.getSpeed(0)
         time.sleep(1)
     MotorDevice.stop(0)
Exemple #2
0
 def setUp(self):
     MotorDevice.init()
Exemple #3
0
 def tearDown(self):
     MotorDevice.close()