-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutoOpTest.java
More file actions
42 lines (30 loc) · 1.02 KB
/
Copy pathAutoOpTest.java
File metadata and controls
42 lines (30 loc) · 1.02 KB
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
package org.firstinspires.ftc.teamcode;
// Standard Lib
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.util.*;
// Class import
import org.firstinspires.ftc.teamcode.modules.*;
import org.firstinspires.ftc.teamcode.util.*;
@Autonomous(name="AutoOpTest",group = "auto")
public class AutoOpTest extends LinearOpMode {
// Define attributes
final String programVer = "1.0";
// Declare modules
DriveTrain driveTrain;
private ElapsedTime runtime = new ElapsedTime();
// Define constants
private final double constant = 1;
@Override
public void runOpMode() {
// Initialize
driveTrain = new DriveTrain();
driveTrain.init(hardwareMap);
TelemetryWrapper.init(telemetry,16);
// Wait for start
TelemetryWrapper.setLine(1, "AutoOp v" + programVer + "\t Press start to start >");
waitForStart();
// Start autonomous
// Do something
}
}