48 lines
1.3 KiB
Java
48 lines
1.3 KiB
Java
package org.firstinspires.ftc.teamcode;
|
|
|
|
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
|
|
|
|
@Autonomous(name="Auton 4.2 Red", preselectTeleOp = MainOpModeName.name)
|
|
public class AutonFourR extends AutonFour {
|
|
@Override
|
|
public void runOpMode() {
|
|
this.run(false);
|
|
|
|
// this.construct();
|
|
// api.print("Status", "Initializing, please wait");
|
|
// motors.lift.setDirection(API.Direction.REVERSE, false);
|
|
//
|
|
// api.clear();
|
|
// api.print("Press play to start");
|
|
//
|
|
// waitForStart();
|
|
//
|
|
// movement.move(-180, 0.4, true);
|
|
// api.pause(0.7);
|
|
// movement.stop();
|
|
// motors.lift.start(0.25);
|
|
// api.pause(3);
|
|
// motors.lift.stop();
|
|
// motors.lift.start(-0.25);
|
|
// api.pause(2.5);
|
|
// motors.lift.stop();
|
|
// movement.move(0, 0.4, true);
|
|
// api.pause(1);
|
|
// movement.move(-90, 0.4, true);
|
|
// api.pause(3);
|
|
// movement.move(-180, 0.4, true);
|
|
// api.pause(1);
|
|
// movement.move(-90, 0.4, true);
|
|
// api.pause(1);
|
|
// movement.move(0, 0.2, true);
|
|
// api.pause(1.6);
|
|
// movement.move(0, 0.1, true);
|
|
// motors.carousel.start(-0.6);
|
|
// api.pause(5);
|
|
// motors.carousel.stop();
|
|
// movement.move(180, 0.4, true);
|
|
// api.pause(0.6);
|
|
// movement.stop();
|
|
}
|
|
}
|