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