forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleOpMode.java
More file actions
29 lines (24 loc) · 861 Bytes
/
SampleOpMode.java
File metadata and controls
29 lines (24 loc) · 861 Bytes
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
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import org.firstinspires.ftc.teamcode.assemblies.Robot;
import org.firstinspires.ftc.teamcode.libs.TeamGamepad;
import org.firstinspires.ftc.teamcode.libs.teamUtil;
@Disabled //TODO: remove this when making a copy
@TeleOp(name = "Basic Linear Op Mode", group = "LinearOpMode")
public class SampleOpMode extends LinearOpMode {
TeamGamepad gamepad;
Robot robot;
@Override
public void runOpMode(){
teamUtil.init(this);
gamepad = new TeamGamepad();
gamepad.initilize(true);
robot.initialize();
waitForStart();
while (opModeIsActive()) {
gamepad.loop();
}
}
}