-
Notifications
You must be signed in to change notification settings - Fork 1
/
Test_Foundation.java
48 lines (34 loc) · 1.46 KB
/
Test_Foundation.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
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.pattonvillerobotics.commoncode.robotclasses.drive.MecanumEncoderDrive;
import org.pattonvillerobotics.commoncode.robotclasses.vuforia.VuforiaNavigation;
import org.pattonvillerobotics.commoncode.robotclasses.vuforia.VuforiaParameters;
import org.pattonvillerobotics.commoncode.enums.Alliance;
import org.pattonvillerobotics.commoncode.enums.Direction;
import org.firstinspires.ftc.robotcore.external.Telemetry;
import org.pattonvillerobotics.robotclasses.CustomizedRobotParameters;
@Autonomous(name="MoveFoundation")
public class MoveFoundationAutonomous extends LinearOpMode {
private Autonomous_Common common;
private MecanumEncoderDrive drive;
//private VuforiaNavigation vuforia;
@Override
public void runOpMode() {
initialize();
waitForStart();
common.GrabFoundation();
sleep(5000);
common.ReleaseFoundation();
sleep(5000);
}
public void initialize() {
common = new Autonomous_Common(Alliance.BLUE, this);
common.Initialize();
drive = common.drive;
}
}