From 64a8a1bfffbff4a51a1f976c374402b4db28e2d0 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 28 Dec 2021 13:35:28 -0500 Subject: [PATCH] reverse directon --- Code/Server/Motor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()