-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForwardOnly.java
More file actions
37 lines (37 loc) · 1.13 KB
/
ForwardOnly.java
File metadata and controls
37 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// package org.firstinspires.ftc.teamcode;
//
// import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
// import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
// import com.qualcomm.robotcore.hardware.DcMotor;
//
// @Autonomous(name = "ForwardOnly (Blocks to Java)")
// public class ForwardOnly extends LinearOpMode {
//
// private DcMotor right_drive;
// private DcMotor spin1;
//
// /**
// * This function is executed when this OpMode is selected from the Driver Station.
// */
// @Override
// public void runOpMode() {
// right_drive = hardwareMap.get(DcMotor.class, "right_drive");
// spin1 = hardwareMap.get(DcMotor.class, "spin1");
//
// // Put initialization blocks here.
// right_drive.setDirection(DcMotor.Direction.REVERSE);
// spin1.setDirection(DcMotor.Direction.REVERSE);
// waitForStart();
// if (opModeIsActive()) {
// // Put run blocks here.
// while (opModeIsActive()) {
// // Put loop blocks here.
// spin1.setPower(1);
// right_drive.setPower(1);
// sleep(2000);
// requestOpModeStop();
// }
// }
// }
// }
//