Actualiser ftc2024-carlike.java

This commit is contained in:
Gzod01 2024-01-06 14:57:08 +00:00
parent d2ff9d7db6
commit 5e1d68d748

View file

@ -64,8 +64,8 @@ public class Werobot_FTC2024_carlike extends LinearOpMode {
double a = (x-y)/Math.pow(2,1/2); double a = (x-y)/Math.pow(2,1/2);
double b = (x+y)/Math.pow(2,1/2); double b = (x+y)/Math.pow(2,1/2);
double vmean = (a+b)/2; double vmean = (a+b)/2;
lpower = (a/vmean)*t; lpower = (a/vmean)*(Math.log(t+1)/Math.log(2));
rpower = (b/vmean)*t; rpower = (b/vmean)*(Math.log(t+1)/Math.log(2));
} }
if(!(gamepad1.left_bumper)){ if(!(gamepad1.left_bumper)){
lpower/=3; lpower/=3;