format tabulations in ftc2024-carlike.java, add imu

This commit is contained in:
GZod01 2024-01-07 15:29:01 +01:00
parent b770f1a271
commit a89a69841e

View file

@ -16,6 +16,7 @@ import com.qualcomm.robotcore.hardware.Servo;
public class Werobot_FTC2024_carlike extends LinearOpMode { public class Werobot_FTC2024_carlike extends LinearOpMode {
private DcMotor rm; private DcMotor rm;
private DcMotor lm; private DcMotor lm;
private IntegratingGyroscope imu;
private double helloexp(double t){ private double helloexp(double t){
return (Math.exp(5*t)-1)/(Math.exp(5)-1); return (Math.exp(5*t)-1)/(Math.exp(5)-1);
} }
@ -32,6 +33,7 @@ public class Werobot_FTC2024_carlike extends LinearOpMode {
telemetry.update(); telemetry.update();
lm = hardwareMap.get(DcMotor.class, "blm"); lm = hardwareMap.get(DcMotor.class, "blm");
rm = hardwareMap.get(DcMotor.class, "brm"); rm = hardwareMap.get(DcMotor.class, "brm");
imu = hardwareMap.get(IntegratingGyroscope.class, "imu");
rm.setDirection(DcMotorSimple.Direction.REVERSE); rm.setDirection(DcMotorSimple.Direction.REVERSE);
waitForStart(); waitForStart();
@ -98,6 +100,7 @@ public class Werobot_FTC2024_carlike extends LinearOpMode {
telemetry.addData("ltrigg",t); telemetry.addData("ltrigg",t);
telemetry.addData("t2",t2); telemetry.addData("t2",t2);
telemetry.addData("mode",mode); telemetry.addData("mode",mode);
telemetry.addData("imu angular orientation", imu.getAngularOrientation());
telemetry.update(); telemetry.update();
} }
} }