updates
This commit is contained in:
parent
fb8f6ead0d
commit
28feb3edcb
1 changed files with 8 additions and 3 deletions
|
@ -70,6 +70,8 @@ public class ftc2024_autonome extends LinearOpMode {
|
|||
double Yaw = robotOrientation.getYaw(AngleUnit.DEGREES);
|
||||
double Pitch = robotOrientation.getPitch(AngleUnit.DEGREES);
|
||||
double Roll = robotOrientation.getRoll(AngleUnit.DEGREES);
|
||||
|
||||
double yaw_sortie;
|
||||
|
||||
// Wait for the game to start (driver presses PLAY)
|
||||
waitForStart();
|
||||
|
@ -80,14 +82,17 @@ public class ftc2024_autonome extends LinearOpMode {
|
|||
while (opModeIsActive() && Yaw <= 90.0) {
|
||||
lm.setPower(0.5);
|
||||
rm.setPower(-0.5);
|
||||
robotOrientation = imu.getRobotYawPitchRollAngles();
|
||||
Yaw = robotOrientation.getYaw(AngleUnit.DEGREES);
|
||||
telemetry.addData("Leg 1", runtime.seconds());
|
||||
telemetry.addData("Yaw : ", Yaw);
|
||||
telemetry.update();
|
||||
yaw_sortie = Yaw;
|
||||
}
|
||||
telemetry.addData("yaw_sortie", yaw_sortie)
|
||||
runtime.reset();
|
||||
while (opModeIsActive() && (runtime.seconds() <= 121.92e-2/speed)) {
|
||||
lm.setPower(1);
|
||||
rm.setPower(1);
|
||||
lm.setPower(0.1);
|
||||
rm.setPower(0.1);
|
||||
telemetry.addData("Leg 2", runtime.seconds());
|
||||
telemetry.update();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue