reverse directon

This commit is contained in:
Paul Trowbridge 2021-12-28 13:35:28 -05:00
parent 0d34f4fa6f
commit 64a8a1bfff

View File

@ -70,10 +70,10 @@ class Motor:
def setMotorModel(self,duty1,duty2,duty3,duty4):
duty1,duty2,duty3,duty4=self.duty_range(duty1,duty2,duty3,duty4)
self.left_Upper_Wheel(duty1)
self.left_Lower_Wheel(duty2)
self.right_Upper_Wheel(duty3)
self.right_Lower_Wheel(duty4)
self.left_Upper_Wheel(-duty1)
self.left_Lower_Wheel(-duty2)
self.right_Upper_Wheel(-duty3)
self.right_Lower_Wheel(-duty4)
PWM=Motor()