Exploit database

GH-383a64170c0cd021ded9402393d5e6f4

adambiscoe/centerstage_9990

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-11358

1,181 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files3

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/AutonomousTourney/editedleft.java

Java · 4,452 bytes
package org.firstinspires.ftc.teamcode.AutonomousTourney;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;

import org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName;
import org.firstinspires.ftc.teamcode.Autonomous.AutonomousFirst;
import org.firstinspires.ftc.teamcode.OpenCV.LocationID;
import org.firstinspires.ftc.teamcode.OpenCV.OTAT2;
import org.firstinspires.ftc.vision.VisionPortal;

@Disabled

@Autonomous
public class editedleft extends LinearOpMode {
    private String choice;
    static final int RIGHT_ANGLE_POSITION = 885; // could change during more testing
    static final int HALF_ANGLE_POSITION = RIGHT_ANGLE_POSITION / 2;
    static final int PROP_ANGLE_POSITION = 500;
    static final int STRAFE_FULL_SQUARE = 1000;
    @Override
    public void runOpMode() throws InterruptedException {
        LocationID id = new LocationID();
        AutonomousFirst robot = new AutonomousFirst();
        OTAT2 detection = new OTAT2();
        VisionPortal portal = VisionPortal.easyCreateWithDefaults(hardwareMap.get(WebcamName.class, "Webcam 1"), id);
        telemetry.clear();
        while(opModeInInit()) {
            telemetry.addData("Zone", id.getSelection());
            robot.initHardware(hardwareMap);
            //assume close left for rn
            if (id.getSelection() == LocationID.Selected.LEFT){
                choice = "LEFT";
                detection.setDesiredTagId(1);
            }
            else if (id.getSelection() == LocationID.Selected.RIGHT){
                choice = "RIGHT";
                detection.setDesiredTagId(3);
            }
            else{
                choice = "MIDDLE";
                detection.setDesiredTagId(2);
            }
            telemetry.update();
        }
        while (opModeIsActive()){
            telemetry.addData("choice: ", choice);
            telemetry.update();
            robot.clawPropClose();
            robot.moveEncoder(23, .5);
            if (choice.equals("RIGHT")){
                robot.turnRightEncoder(PROP_ANGLE_POSITION + 75);
                // robot.moveEncoder(-2, .5);
                robot.propDrop();
                robot.moveEncoder(-1, .5);
                robot.turnLeftEncoder(PROP_ANGLE_POSITION + 75);

            }
            else if (choice.equals("LEFT")){
                robot.turnLeftEncoder(RIGHT_ANGLE_POSITION);
                robot.moveEncoder(-12, .5);
                robot.propDropYellow();
                robot.moveEncoder(12, .5);
                robot.clawOpen();
                sleep(750);
                robot.moveEncoder(-12, .5);
                robot.armDown();

            }
            else{
                //robot.moveEncoder(-2, .5);
                // robot.claw.setPower(1);
                //CHECKED
                robot.strafeRightEncoder(100, .5);
                robot.propDrop();
                robot.strafeLeftEncoder(100, .5);

            }
            // from this point on, becomes dependent on which quadrant you are starting in
            //assume close left for testing
            /* THE FOLLOWING IS ONLY IF YOU JUST WANT TO PLACE PROP THEN PARK
            robot.moveEncoder(-17, .5);
            robot.turnLeftEncoder(RIGHT_ANGLE_POSITION);
            robot.moveEncoder(71, .5);
            robot.strafeLeftEncoder(1000/5, .4);
            robot.moveEncoder(4, .5);
             */
            robot.scoopDown();
            robot.armDown();
            break;
           /* if (detection.getDesiredTagId() == 1){

            }

            */

            // robot.turnLeftEncoder(RIGHT_ANGLE_POSITION);
            //robot.moveEncoder(15, .5);

            // move infront of gameboard, move far enough to see every tag
            //detection.setDesiredTag(2);
            //detection.runOpMode();
            /*
            detection.initAprilTag();
            detection.setManualExposure(6, 250);


            Boolean tagFound = false;
            while (true){
                tagFound = detection.lookForTag();
                if(tagFound){
                    detection.driveToTag();
                    while (robot.isBusy()){
                        idle();
                    }
                    break;
                }
                */
        }














        //configured properly

    }


}