Exploit databaseDownload repository ZIP
GH-a6e6f0ffedca871c71df78860182fbc0
15303/2022summer-2
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
15303/2022summer-2Revision b3c9ac88a456
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Victoria/VictoriaTeleOp.java
Java · 1,266 bytespackage org.firstinspires.ftc.teamcode.Victoria;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import org.firstinspires.ftc.teamcode.Robot;
@TeleOp(name="VictoriaTeleOp")
public class VictoriaTeleOp extends LinearOpMode {
private Robot robot; //store the robot
public void runOpMode() {
robot = new Robot(this); //create a new Robot
waitForStart(); //required
//so we want something that runs continuously we do that using a while loop
while (opModeIsActive()) {
//normally gamepad1.right_stick_y is reversed, so we make it negative
double drive = -gamepad1.right_stick_y;
double turn = gamepad1.right_stick_x;
robot.driveComponent(drive, turn); //power the drive motors given the joystick controls
robot.aim(gamepad2.left_stick_x * 0.5);
robot.lift(-gamepad2.left_stick_y * 0.5);
robot.spinCarousel(gamepad2.right_trigger - gamepad2.left_trigger);
if (gamepad2.a) {
robot.grab(1);
} else if (gamepad2.b) {
robot.grab(-1);
} else {
robot.grab(0);
}
}
}
}