Exploit databaseDownload repository ZIP
GH-ef509094f02626a5fd83fd0b4383c188
201534303/intothedeeprobotv1
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files10
201534303/intothedeeprobotv1Revision 50c56451208d
- ↑..Parent directory
- BasicPositions.java
- OLDdriveSpecimenAuto.java
- OLDspecimenAuto.java
- OptimizedSpecimenAuto.java
- PIDTesting.java
- _4SpecAuto.java
- _4SpecAutoDrive.java
- _4_Extra_SpecAuto.java
- drivebasedspecimenauto.java
- specimenOLDAuto.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/IntoTheDeep/Autos/Old/OLDspecimenAuto.java
Java · 9,499 bytespackage org.firstinspires.ftc.teamcode.IntoTheDeep.Autos.Old;
import static org.firstinspires.ftc.teamcode.IntoTheDeep.Subsystems.CuttleIntake.IntakeState.UP;
import static org.firstinspires.ftc.teamcode.IntoTheDeep.Subsystems.CuttleSlides.LiftState.IN;
import com.acmerobotics.dashboard.FtcDashboard;
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.util.ElapsedTime;
import com.roboctopi.cuttlefish.controller.Waypoint;
import com.roboctopi.cuttlefish.queue.CustomTask;
import com.roboctopi.cuttlefish.queue.DelayTask;
import com.roboctopi.cuttlefish.queue.PointTask;
import com.roboctopi.cuttlefish.queue.TaskList;
import com.roboctopi.cuttlefish.utils.Pose;
import org.firstinspires.ftc.teamcode.IntoTheDeep.Init.CuttleInitOpMode;
@Autonomous
@Disabled
public class OLDspecimenAuto extends CuttleInitOpMode {
private State currentState;
double counter = 0;
public boolean transfering = false;
private ElapsedTime timer = new ElapsedTime();
public void onInit(){
super.onInit();
telemetry = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry());
otosLocalizer.reset();
liftPosition = 0;
extendoPosition = 0;
intake.initPos();
liftPosController.setHome();
outake.initAutoPos();
currentState = State.TO_SAMPLE;
}
public void main() {
super.main();
queue.addTask(new CustomTask(() -> {
scoringSpecimen();
return true;
}));
queue.addTask(new CustomTask(() -> {
fistSample();
return true;
}));
queue.addTask(new CustomTask(() -> {
secondSample();
return true;
}));
queue.addTask(new CustomTask(() -> {
thirdSample();
return true;
}));
queue.addTask(new CustomTask(() ->{
transferSequence();
return true;
}));
queue.addTask(new CustomTask(() ->{
specimen();
return true;
}));
queue.addTask(new CustomTask(() ->{
teleOpInit();
return true;
}));
}
public void mainLoop(){
super.mainLoop();
otosLocalizer.update();
System.out.println(otosLocalizer.getPos());
telemetry.addData("Intake Color", intake.getColor());
telemetry.addData("Cuttle X:",otosLocalizer.getPos().getX());
telemetry.addData("Cuttle Y:",otosLocalizer.getPos().getY());
telemetry.addData("Cuttle R:",otosLocalizer.getPos().getR());
telemetry.addData("otos r", pos.h);
telemetry.addData("otos x", pos.x);
telemetry.addData("otos y", pos.y);
telemetry.update();
}
void teleOpInit(){
TaskList init = new TaskList();
init.addTask(new CustomTask(()->{
outake.readyPos();
liftPosition = 0;
extendoPosition = 0;
intake.initPos();
return true;
}));
}
void specimen(){
TaskList specimen = new TaskList();
specimen.addTask(new CustomTask(()->{
intake.intakeDown();
extendoPosition = 7.5;
intake.in();
return true;
}));
specimen.addTask(new DelayTask(1500));
//scoring
specimen.addTask(new DelayTask(200));
specimen.addTask(new CustomTask(()->{
outake.autoHighRungPos();
outake.wristLeft();
liftPosition = 5.1;
return true;
}));
specimen.addTask(new DelayTask(200));
specimen.addTask(new CustomTask(()->{
intake.intakeDown();
//extendoPosition = 7.5;
transfering = false;
return true;
}));
/*transfer.addTask(new CustomTask(()->{
intake.intakeDown();
extendoPosition = 7.5;
intake.in();
return true;
}));*/
specimen.addTask(new PointTask(new Waypoint(new Pose(-200, -390, Math.toRadians(0))), ptpController));
specimen.addTask(new CustomTask(()->{
outake.readyPos();
liftPosition = 0;
return true;
}));
}
void transferSequence(){
TaskList transfer = new TaskList();
intake.setIntakeState(UP);
lift.setLiftState(IN);
transfer.addTask(new CustomTask(()->{
counter += 1;
intake.armUp();
intake.clawServo.setPosition(0.45);
outake.readyPos();
extendoPosition = 0;
liftPosition = 0;
telemetry.addData("tranfer sequence running", true);
return true;
}));
transfer.addTask(new DelayTask(300));
transfer.addTask(new CustomTask(()->{
outake.transferPos();
return true;
}));
transfer.addTask(new DelayTask(200));
transfer.addTask(new CustomTask(()->{
outake.grippedPos();
intake.initPos();
intake.setIntakeState(UP);
return true;
}));
queue.addTask(transfer);
}
void thirdSample() {
TaskList third = new TaskList();
third.addTask(new PointTask(new Waypoint(new Pose(-1200, -580, Math.toRadians(115))), ptpController));
third.addTask(new CustomTask(()->{
intake.in();
extendoPosition = 4.5;
return true;
}));
third.addTask(new DelayTask(1300));
third.addTask(new CustomTask(()->{
extendoPosition = 2;
return true;
}));
third.addTask(new PointTask(new Waypoint(new Pose(-1200, -580, Math.toRadians(35))), ptpController));
third.addTask(new CustomTask(()->{
extendoPosition = 6.5;
intake.out();
return true;
}));
third.addTask(new DelayTask(100));
third.addTask(new CustomTask(()->{
intake.off();
extendoPosition = 0;
return true;
}));
third.addTask(new PointTask(new Waypoint(new Pose(-350, -350, Math.toRadians(45))), ptpController));
queue.addTask(third);
}
void secondSample(){
TaskList second = new TaskList();
second.addTask(new PointTask(new Waypoint(new Pose(-900, -580, Math.toRadians(125))), ptpController));
second.addTask(new CustomTask(()->{
intake.in();
extendoPosition = 7.5;
return true;
}));
second.addTask(new DelayTask(1300));
second.addTask(new CustomTask(()->{
intake.in();
extendoPosition = 6;
return true;
}));
second.addTask(new PointTask(new Waypoint(new Pose(-900, -580, Math.toRadians(45))), ptpController));
second.addTask(new CustomTask(()->{
intake.out();
return true;
}));
second.addTask(new DelayTask(100));
second.addTask(new CustomTask(()->{
intake.off();
extendoPosition = 0;
return true;
}));
}
void fistSample(){
TaskList intakingSample = new TaskList();
intakingSample.addTask(new PointTask(new Waypoint(new Pose(-700, -600, Math.toRadians(126))), ptpController));
intakingSample.addTask(new CustomTask(()->{
outake.readyPos();
intake.intakeDown();
intake.in();
return true;
}));
intakingSample.addTask(new DelayTask(500));
intakingSample.addTask(new CustomTask(()->{
extendoPosition = 5.8;
return true;
}));
intakingSample.addTask(new DelayTask(1300));
intakingSample.addTask(new CustomTask(()->{
intake.off();
return true;
}));
intakingSample.addTask(new PointTask(new Waypoint(new Pose(-700, -600, Math.toRadians(45))), ptpController));
intakingSample.addTask(new CustomTask(()->{
intake.out();
return true;
}));
intakingSample.addTask(new DelayTask(100));
intakingSample.addTask(new CustomTask(()->{
intake.off();
extendoPosition = 0;
return true;
}));
queue.addTask(intakingSample);
}
void scoringSpecimen(){
TaskList scoringSpecimen = new TaskList();
scoringSpecimen.addTask(new CustomTask(() -> {
liftPosition = 3;
outake.autoAutoHighRungPos();
return true;
}));
scoringSpecimen.addTask(new PointTask(new Waypoint(new Pose(0, -720, 0)), ptpController));
scoringSpecimen.addTask(new DelayTask(100));
scoringSpecimen.addTask(new CustomTask(() -> {
outake.openClaw();
liftPosition = 2.5;
return true;
}));
scoringSpecimen.addTask(new PointTask(new Waypoint(new Pose(0, -400, 0)), ptpController));
scoringSpecimen.addTask(new CustomTask(() -> {
outake.transferPos();
liftPosition = 0;
return true;
}));
queue.addTask(scoringSpecimen);
}
private enum State{
TO_SAMPLE,
INTAKING_SAMPLE,
SPIT_OUT_SAMPLE
}
}