Spark Mini
Last updated
Last updated
@TeleOp
public class SparkMiniExample extends LinearOpMode {
DcMotorSimple motor;
@Override
public void runOpMode() {
motor = hardwareMap.get(DcMotorSimple.class, "motor");
// Wait for the game to start (driver presses PLAY)
waitForStart();
// run until the end of the match (driver presses STOP)
while (opModeIsActive()) {
motor.setPower(gamepad1.left_stick_y);
}
}
}