remove bugging ===, java don't accept that.....

This commit is contained in:
GZod01 2024-03-20 14:29:29 +01:00
parent 29530c9c92
commit cdf5f33f99
3 changed files with 13 additions and 1 deletions

View file

@ -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))){

Binary file not shown.

12
list.py Normal file
View file

@ -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];