From 6b437a9841382481b7e2a6681255f6deb32362f2 Mon Sep 17 00:00:00 2001 From: Marlon Santos Date: Thu, 16 Dec 2021 19:24:23 +1100 Subject: [PATCH] Fix inverted forward, backward, left and right motor controls --- Code/Server/Motor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Server/Motor.py b/Code/Server/Motor.py index 9a0f602f..730c19a4 100644 --- a/Code/Server/Motor.py +++ b/Code/Server/Motor.py @@ -24,7 +24,7 @@ def duty_range(self,duty1,duty2,duty3,duty4): duty4=4095 elif duty4<-4095: duty4=-4095 - return duty1,duty2,duty3,duty4 + return -duty1,-duty2,-duty3,-duty4 def left_Upper_Wheel(self,duty): if duty>0: