reverse directon
This commit is contained in:
parent
0d34f4fa6f
commit
64a8a1bfff
@ -70,10 +70,10 @@ class Motor:
|
|||||||
|
|
||||||
def setMotorModel(self,duty1,duty2,duty3,duty4):
|
def setMotorModel(self,duty1,duty2,duty3,duty4):
|
||||||
duty1,duty2,duty3,duty4=self.duty_range(duty1,duty2,duty3,duty4)
|
duty1,duty2,duty3,duty4=self.duty_range(duty1,duty2,duty3,duty4)
|
||||||
self.left_Upper_Wheel(duty1)
|
self.left_Upper_Wheel(-duty1)
|
||||||
self.left_Lower_Wheel(duty2)
|
self.left_Lower_Wheel(-duty2)
|
||||||
self.right_Upper_Wheel(duty3)
|
self.right_Upper_Wheel(-duty3)
|
||||||
self.right_Lower_Wheel(duty4)
|
self.right_Lower_Wheel(-duty4)
|
||||||
|
|
||||||
|
|
||||||
PWM=Motor()
|
PWM=Motor()
|
||||||
|
Loading…
Reference in New Issue
Block a user