Exploit databaseDownload repository ZIP
GH-e42d53727675aa67eb53f3a89c961461
ahnafrah/newcenterstage
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
ahnafrah/newcenterstageRevision 0b5e4ffa5532
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Drive/OpModes/TeleOp/Subsystems.java
Java · 2,404 bytespackage org.firstinspires.ftc.teamcode.Drive.OpModes.TeleOp;
import com.arcrobotics.ftclib.command.CommandOpMode;
import com.arcrobotics.ftclib.command.InstantCommand;
import com.outoftheboxrobotics.photoncore.Photon;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import org.firstinspires.ftc.teamcode.Utility.CommandBase.Commands.HighOuttakeCommand;
import org.firstinspires.ftc.teamcode.Utility.CommandBase.Commands.LowOuttakeCommand;
import org.firstinspires.ftc.teamcode.Utility.CommandBase.Commands.RestCommand;
import org.firstinspires.ftc.teamcode.Utility.CommandBase.Commands.SuperHighOuttakeCommand;
import org.firstinspires.ftc.teamcode.Utility.CommandBase.Commands.TwoPixelDropCommand;
import org.firstinspires.ftc.teamcode.Utility.Hardware.RobotHardware;
@TeleOp
public class Subsystems extends CommandOpMode {
private RobotHardware robot;
double speed;
@Override
public void initialize() {
robot = new RobotHardware(hardwareMap);
robot.armSystem.armCoast();
robot.angleOfArm.rest();
speed = 0.5;
}
@Override
public void run() {
super.run();
robot.armSystem.loop();
robot.slidesSubsystem.loop();
boolean x = gamepad1.x;
if (x) {
schedule(
new InstantCommand(() -> robot.claw.grabBoth())
);
}
boolean y = gamepad1.y;
if (y) {
schedule(
new InstantCommand(() -> robot.claw.releaseBoth())
);
}
boolean a = gamepad1.a;
if (a) {
schedule(
new TwoPixelDropCommand(robot)
);
}
boolean b = gamepad1.b;
if (b) {
schedule(
new RestCommand(robot)
);
}
boolean dpad_up = gamepad1.dpad_up;
if (dpad_up) {
schedule(
new LowOuttakeCommand(robot)
);
}
boolean dpad_down = gamepad1.dpad_down;
if (dpad_down) {
schedule(
new HighOuttakeCommand(robot)
);
}
boolean dpad_left = gamepad1.dpad_left;
if (dpad_left) {
schedule(
new SuperHighOuttakeCommand(robot)
);
}
}
}