Subversion Repositories Projects

Rev

Rev 610 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 610 Rev 613
Line 254... Line 254...
254
 
254
 
255
    def setMotorTest(self, motorSpeeds):
255
    def setMotorTest(self, motorSpeeds):
256
        msg = MkMsg(address=MkComm.FCADDRESS, cmd='t', data=motorSpeeds)
256
        msg = MkMsg(address=MkComm.FCADDRESS, cmd='t', data=motorSpeeds)
Line 257... Line 257...
257
        self.sendLn(msg.generateMsg())
257
        self.sendLn(msg.generateMsg())
258
       
258
       
259
    def doVibrationTest(self, motorSpeeds, nbSamples, channel):
259
    def doVibrationTest(self, nbSamples, channel):
260
        data = []
-
 
261
        for i in range(0,(min(nbSamples,1000)/50)):
-
 
262
          #self.setMotorTest(motorSpeeds)
-
 
263
          time.sleep(0.05)
260
        data = []
264
          #print i 
261
        for i in range(0,(min(nbSamples,1000)/50)):
265
          msg = MkMsg(address=MkComm.FCADDRESS, cmd='f', data=[channel, i])
262
          msg = MkMsg(address=MkComm.FCADDRESS, cmd='f', data=[channel, i])
266
          self.sendLn(msg.generateMsg())
263
          self.sendLn(msg.generateMsg())
267
          msg = self.waitForMsg('F')
264
          msg = self.waitForMsg('F')