-
Notifications
You must be signed in to change notification settings - Fork 5
/
VuforiaRed.java
38 lines (33 loc) · 882 Bytes
/
VuforiaRed.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
package workspace;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
@Autonomous(name="Image Detection Red Side" )
public class VuforiaRed extends VuforiaOp{
public void runOpMode(){
initialize(hardwareMap, telemetry);
initVision(hardwareMap);
activateVision();
setCameraPosition(0.0, 0, 0);
waitForStart();
//armUp(0.05);
fingerUp();
double x;
openClaw();
forward(0.9);
x = toSkystone(4, -0.06, 100);
//strafeLeft(0.3);
forward(0.6);
closeClaw();
backward(0.3);
strafeRight(-x);
backward(0.4);
strafeRight(2.2);
openClaw();
//move(0.3, -1);
//strafeLeft(1.0);
forward(0.3);
left(1);
//forward(0.7);
tapeOut(1.0);
}
// todo: write your code here
}