Actualiser ftc2024-carlike.java
This commit is contained in:
parent
d2ff9d7db6
commit
5e1d68d748
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue