diff --git a/Code/Server/Motor.py b/Code/Server/Motor.py index 9a0f602..9dbb189 100644 --- a/Code/Server/Motor.py +++ b/Code/Server/Motor.py @@ -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()