forked from IsaacRatliff/FTC-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRepoRedNearS.java
58 lines (53 loc) · 1.14 KB
/
RepoRedNearS.java
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package workspace;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
@Autonomous(name="Reposition, Red, Near, S start" )
public class RepoRedNearS extends AutoOp {
// Needs to change from far to near.
@Override
public void runOpMode() {
initialize(hardwareMap, telemetry);
waitForStart();
fingerUp();
openClaw();
//step one
forward(.15);
right(1.1);
forward(4.35);
//Step 2
left(.8);
pause(0.5);
forward(1.5);
pause(0.5);
fingerDown();
pause(2);
//Step 3
backward(2.4); //2
pause(2);
right(.3);
pause(1);
fingerUp();
//Step 4
strafeLeft(1.4);
//Step 5
forward(2);
//Step 6
strafeRight(.75);
//Step 7
backward(2);
//Step 8
forward(.45);
//Step 9
left(1.2);
forward(0.85);
pause(3);
//step 10
/*
left(1);
forward(1.0);
*/
strafeLeft(1);
//step 11
//right(1);
forward(.85);
}
}