-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleAuto.java
More file actions
40 lines (38 loc) · 1.28 KB
/
ExampleAuto.java
File metadata and controls
40 lines (38 loc) · 1.28 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
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import org.firstinspires.ftc.teamcode.AutoBase;
@Autonomous
public class ExampleAuto extends LinearOpMode {
@Override
public void runOpMode() {
AutoBase auto = new AutoBase();
auto.InitAuto(
hardwareMap,
"frontLeft",
"frontRight",
"backLeft",
"backRight",
telemetry,
(double) 18, //tbd
(double) 18 //tbd
);
waitForStart();
if (opModeIsActive()) {
/*
feel free to incorporate calls to the following:
sleep(time);
auto.driveForward(distanceIN, (double) 2);
auto.driveBackward(distanceIN, (double) 2);
auto.strafeLeft(distanceIN, (double) 2);
auto.strafeRight(distanceIN, (double) 2);
auto.strafeNW(distanceIN, (double) 2);
auto.strafeNE(distanceIN, (double) 2);
auto.strafeSW(distanceIN, (double) 2);
auto.strafeSE(distanceIN, (double) 2);
auto.turnLeft(degrees, (double) 2);
auto.turnRight(degrees, (double) 2);
*/
}
}
}