forked from FFFabulousRobotics/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RedLeftAuto.java
32 lines (28 loc) · 886 Bytes
/
RedLeftAuto.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
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.teamcode.hardware.RobotAuto;
@Autonomous
public class RedLeftAuto extends LinearOpMode {
RobotAuto robotAuto;
@Override
public void runOpMode(){
robotAuto = new RobotAuto(this);
waitForStart();
resetRuntime();
robotAuto.grab()
.setLiftPower(0.5)
.sleep(400)
.setLiftPower(0)
.fastBackward(24)
.leftShift(24)
.fastSpin(180)
.setLiftPower(0.3)
.sleep(800)
.fastBackward(10)
.setLiftPower(-0.5)
.sleep(200)
.setLiftPower(0)
.release();
}
}