helhfoahfaohf

This commit is contained in:
Gzod01 2024-01-06 14:56:22 +01:00
parent 832b2dca1b
commit 84d5725c89

View file

@ -58,7 +58,7 @@ public class Werobot_FTC2024_carlike extends LinearOpMode {
} }
else if (mode=="essaifranck"){ else if (mode=="essaifranck"){
lpower = (gamepad1.left_stick_x-gamepad1.left_stick_y)/Math.pow(2,1/2); lpower = (gamepad1.left_stick_x-gamepad1.left_stick_y)/Math.pow(2,1/2);
rpower = (gamepad1.left_stick_y-gamepad1.left_stick_x)/Math.pow(2,1/2); rpower = (gamepad1.left_stick_x+gamepad1.left_stick_y)/Math.pow(2,1/2);
} }
if(!(gamepad1.left_bumper)){ if(!(gamepad1.left_bumper)){
lpower/=3; lpower/=3;