예제 #1
0
 def __init__(self):
     self.time = 0
     self.left_power = 0
     self.right_power = 0
     self.R = 0.003865148*settings.motor_duration()
     self.l = 55
     self.v = 0
     self.rotation_delta = 0
예제 #2
0
파일: motors.py 프로젝트: nicovaras/SimuSER
 def __init__(self):
     self.time = 0
     self.left_power = 0
     self.right_power = 0
     self.R = 0.003865148 * settings.motor_duration()
     self.l = 55
     self.v = 0
     self.rotation_delta = 0
예제 #3
0
 def tick(self):
     self.time -= settings.motor_duration()
     self.time = max(0,self.time)
예제 #4
0
파일: motors.py 프로젝트: nicovaras/SimuSER
 def tick(self):
     self.time -= settings.motor_duration()
     self.time = max(0, self.time)