-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestAutoCommands.java
53 lines (51 loc) · 1.73 KB
/
TestAutoCommands.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
49
50
51
52
53
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 TestAutoCommands 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()) {
telemetry.addData("Every Direction 12in", "");
telemetry.update();
telemetry.addData("sleep", "starting sleeping");
telemetry.update();
sleep(1);
telemetry.addData("sleep", "done sleeping");
telemetry.update();
// auto.driveForward(12, (double) 2);
// auto.driveBackward(12, (double) 2);
// auto.strafeLeft(12, (double) 2);
// auto.strafeRight(12, (double) 2);
// auto.strafeNW(12, (double) 2);
// auto.strafeNE(12, (double) 2);
// auto.strafeSW(12, (double) 2);
// auto.strafeSE(12, (double) 2);
// auto.turnLeft(90, (double) 2);
// auto.turnRight(90, (double) 2);
auto.driveForward(12);
auto.driveBackward(12);
auto.strafeLeft(12);
auto.strafeRight(12);
auto.strafeNW(12);
auto.strafeNE(12);
auto.strafeSW(12);
auto.strafeSE(12);
auto.turnLeft(90);
auto.turnRight(90);
}
}
}