remove bugging ===, java don't accept that.....
This commit is contained in:
parent
29530c9c92
commit
cdf5f33f99
3 changed files with 13 additions and 1 deletions
|
@ -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))){
|
||||
|
|
BIN
__pycache__/list.cpython-311.pyc
Normal file
BIN
__pycache__/list.cpython-311.pyc
Normal file
Binary file not shown.
12
list.py
Normal file
12
list.py
Normal 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];
|
||||
|
Loading…
Reference in a new issue