From cdf5f33f99cbddcafe969b5bd7ab20d69a9df9e2 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Wed, 20 Mar 2024 14:29:29 +0100 Subject: [PATCH] remove bugging ===, java don't accept that..... --- FTC2024WeRobotControl.java | 2 +- __pycache__/list.cpython-311.pyc | Bin 0 -> 551 bytes list.py | 12 ++++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 __pycache__/list.cpython-311.pyc create mode 100644 list.py diff --git a/FTC2024WeRobotControl.java b/FTC2024WeRobotControl.java index fae7b90..3000b63 100644 --- a/FTC2024WeRobotControl.java +++ b/FTC2024WeRobotControl.java @@ -148,7 +148,7 @@ public class FTC2024WeRobotControl { double left_multiplier = -((double) Math.signum(angle)); double right_multiplier = ((double) Math.signum(angle)); double m_power = motor_speed; - if(Math.abs(angle)===180){ + if(Math.abs(angle)==180){ angle = (double) ( ( (double) Math.signum(angle) ) * 179.9 ); } while(Parent.opModeIsActive() && (Math.abs(robotOrientation.getYaw(AngleUnit.DEGREES) - start_yaw) < Math.abs(angle))){ diff --git a/__pycache__/list.cpython-311.pyc b/__pycache__/list.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..715675a5d167b080a03c3c2ff13df85133eb0726 GIT binary patch literal 551 zcmZ3^%ge<81aeP)rS1pPk3k$5V1zP0^8gvs8B!Qp7@`BPWFDaJ<1IFhQ}?y~Cx$ zc08VIlH2?qr literal 0 HcmV?d00001 diff --git a/list.py b/list.py new file mode 100644 index 0000000..ecb2683 --- /dev/null +++ b/list.py @@ -0,0 +1,12 @@ + + +def calcul_suite(n): + res1 = [1]; + for i in range(n): + res2 = 0; + for j in res1: + res2+=j; + res2+=1; + res1.append(res2); + return res1[n-1]; +