From 53b3747c824e882df826a1d7440f7bc72f42bb17 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Fri, 29 Sep 2023 18:41:46 +0200 Subject: [PATCH] fix:WeRobot-Code.java problem with the vertical --- WeRobot-Code.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeRobot-Code.java b/WeRobot-Code.java index 3fb5b75..6d106bd 100644 --- a/WeRobot-Code.java +++ b/WeRobot-Code.java @@ -147,7 +147,7 @@ class WRRobot{ if(y>0){ movement(new double[]{pow,-pow,pow,-pow}); }else{ - movement(new double[]{pow,-pow,pow,-pow}); + movement(new double[]{-pow,pow,-pow,pow}); } } @@ -169,7 +169,7 @@ class WRRobot{ if (g2x > 0) { movement(new double[]{pow,pow,pow,pow}); } else { - movement(new double[]{-pow,-pow,-pow,-pow}); + movement(new double[]{-pow,-pow,-pow,pow}); } }