updates
This commit is contained in:
parent
a9129baf8d
commit
91fccfe3b5
1 changed files with 4 additions and 3 deletions
|
@ -62,6 +62,9 @@ public class ftc2024_autonome extends LinearOpMode {
|
||||||
double wheel_perimeter = wheel_rayon*2*Math.PI;
|
double wheel_perimeter = wheel_rayon*2*Math.PI;
|
||||||
double speed = (tour_par_minute/60)*wheel_perimeter;//dist per second
|
double speed = (tour_par_minute/60)*wheel_perimeter;//dist per second
|
||||||
boolean mode = true;
|
boolean mode = true;
|
||||||
|
double Yaw = robotOrientation.getYaw(AngleUnit.DEGREES);
|
||||||
|
double Pitch = robotOrientation.getPitch(AngleUnit.DEGREES);
|
||||||
|
double Roll = robotOrientation.getRoll(AngleUnit.DEGREES);
|
||||||
// Wait for the game to start (driver presses PLAY)
|
// Wait for the game to start (driver presses PLAY)
|
||||||
waitForStart();
|
waitForStart();
|
||||||
|
|
||||||
|
@ -120,9 +123,7 @@ public class ftc2024_autonome extends LinearOpMode {
|
||||||
|
|
||||||
// Now use these simple methods to extract each angle
|
// Now use these simple methods to extract each angle
|
||||||
// (Java type double) from the object you just created:
|
// (Java type double) from the object you just created:
|
||||||
double Yaw = robotOrientation.getYaw(AngleUnit.DEGREES);
|
|
||||||
double Pitch = robotOrientation.getPitch(AngleUnit.DEGREES);
|
|
||||||
double Roll = robotOrientation.getRoll(AngleUnit.DEGREES);
|
|
||||||
telemetry.addData("yaw",Yaw);
|
telemetry.addData("yaw",Yaw);
|
||||||
|
|
||||||
telemetry.update();
|
telemetry.update();
|
||||||
|
|
Loading…
Reference in a new issue