helloworld

This commit is contained in:
GZod01 2024-02-04 14:42:33 +01:00
parent 41edfe3e75
commit c33b2d5ca0

View file

@ -28,6 +28,11 @@ public class ftc2024_autonome extends LinearOpMode {
rm.setDirection(DcMotorSimple.Direction.REVERSE); rm.setDirection(DcMotorSimple.Direction.REVERSE);
telemetry.addData("Status", "Initialized"); telemetry.addData("Status", "Initialized");
telemetry.update(); telemetry.update();
double tour_par_minute = 300.0;
double wheel_width = 9.0e-2;
double wheel_rayon = (wheel_width)/2;
double wheel_perimeter = wheel_rayon*2*Math.PI;
double speed = (tour_par_minute/60)*wheel_perimeter;//dist per second
boolean mode = false; boolean mode = false;
// Wait for the game to start (driver presses PLAY) // Wait for the game to start (driver presses PLAY)
waitForStart(); waitForStart();