hello
This commit is contained in:
commit
785505fb9f
1 changed files with 18 additions and 0 deletions
|
@ -26,6 +26,7 @@ public class ftc2024_autonome extends LinearOpMode {
|
||||||
return (double) (dist/speed);
|
return (double) (dist/speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
@Override
|
@Override
|
||||||
public void runOpMode() {
|
public void runOpMode() {
|
||||||
lm = hardwareMap.get(DcMotor.class, "blm");
|
lm = hardwareMap.get(DcMotor.class, "blm");
|
||||||
|
@ -41,6 +42,23 @@ public class ftc2024_autonome extends LinearOpMode {
|
||||||
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();
|
||||||
|
=======
|
||||||
|
@Override
|
||||||
|
public void runOpMode() {
|
||||||
|
lm = hardwareMap.get(DcMotor.class, "blm");
|
||||||
|
rm = hardwareMap.get(DcMotor.class, "brm");
|
||||||
|
rm.setDirection(DcMotorSimple.Direction.REVERSE);
|
||||||
|
telemetry.addData("Status", "Initialized");
|
||||||
|
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 = true;
|
||||||
|
// Wait for the game to start (driver presses PLAY)
|
||||||
|
waitForStart();
|
||||||
|
>>>>>>> c206d7e56bece220257360c44d81b99164e48e06
|
||||||
|
|
||||||
runtime.reset();
|
runtime.reset();
|
||||||
if (mode){
|
if (mode){
|
||||||
|
|
Loading…
Reference in a new issue