helloworld
This commit is contained in:
parent
41edfe3e75
commit
c33b2d5ca0
1 changed files with 48 additions and 43 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue