-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBGRepoRedFarS.java
52 lines (45 loc) · 1002 Bytes
/
BGRepoRedFarS.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
package workspace;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
@Autonomous
public class BGRepoRedFarS extends AutoOp{
@Override
public void runOpMode(){
initialize(hardwareMap, telemetry);
waitForStart();
fingerUp();
openClaw();
strafeLeft(0.1);
forward(1.1);
pause(1);
closeClaw();
pause(1);
backward(0.5);
right(1);
forward(4.2);
left(1);
pause(1);
armUp();
pause(1);
forward(0.475);
openClaw();
pause(0.5);
fingerDown();
pause(2);
backward(2.25);
pause(2);
right(.3);
pause(1);
fingerUp();
strafeLeft(1.35);
pause(0.5);
armUp();
pause(0.5);
forward(2);
strafeRight(1);
backward(2);
forward(.45);
left(1.2);
forward(1.7);
}
// todo: write your code here
}