Exploit database

GH-1615919550439d2f818f9bf6b428941b

8081knights/knights-8081-power-play-2022

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 files7

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

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/FusionFramework/HardwareSoftwareTest.java

Java · 4,504 bytes
package org.firstinspires.ftc.teamcode.FusionFramework;

import static android.os.SystemClock.sleep;

import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.Servo;

import org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName;
import org.openftc.easyopencv.OpenCvCamera;
import org.openftc.easyopencv.OpenCvCameraFactory;

public class HardwareSoftwareTest {

    HardwareMap hw = null;
    DcMotorEx frontRight    = null;
    DcMotorEx backRight     = null;
    DcMotorEx backLeft      = null;
    DcMotorEx frontLeft     = null;
//    DcMotorEx encoder       = null;
//    DcMotorEx strafeEncoder = null;
//    DcMotorEx turnEncoder   = null;

//    DcMotorEx armDrive = null;

 //   DcMotorEx leftSlide = null;
//    DcMotorEx rightSlide = null;

    //Servo clawRotate = null;
//    Servo clawGrab = null;
//    Servo clawElbow = null;
//    Servo clawWrist = null;

//    OpenCvCamera frontWebCam;

    int tickPerIn = 1000;
    int armMax = 1000;
    int armMin = 10;

    int low = 500;
    int mid = 1000;
    int high = 1500;



    public void init(HardwareMap ahw){
        hw = ahw;

        frontRight = hw.get(DcMotorEx.class, "frontRight");
        backRight = hw.get(DcMotorEx.class, "backRight");
        backLeft = hw.get(DcMotorEx.class, "backLeft");
        frontLeft = hw.get(DcMotorEx.class, "frontLeft");
//        encoder = hw.get(DcMotorEx.class, "encoder");
//        strafeEncoder = hw.get(DcMotorEx.class, "strafeEncoder");
//        turnEncoder = hw.get(DcMotorEx.class, "turnEncoder");
/*
        armDrive = hw.get(DcMotorEx.class, "armDrive");

        leftSlide = hw.get(DcMotorEx.class, "leftSlide");
        rightSlide = hw.get(DcMotorEx.class, "rightSlide");

        leftSlide.setDirection(DcMotorEx.Direction.REVERSE);
        rightSlide.setDirection(DcMotorEx.Direction.REVERSE);
        armDrive.setDirection(DcMotorEx.Direction.FORWARD);


        clawGrab = hw.get(Servo.class, "claw");
        clawWrist = hw.get(Servo.class, "clawWrist");
        clawElbow = hw.get(Servo.class, "clawElbow");
*/

        frontRight.setMode(DcMotorEx.RunMode.RUN_USING_ENCODER);
        backRight.setMode(DcMotorEx.RunMode.RUN_USING_ENCODER);
        frontLeft.setMode(DcMotorEx.RunMode.RUN_USING_ENCODER);
        backLeft.setMode(DcMotorEx.RunMode.RUN_USING_ENCODER);

        frontLeft.setDirection(DcMotorEx.Direction.REVERSE);
        frontRight.setDirection(DcMotorEx.Direction.REVERSE);

        backLeft.setDirection(DcMotorEx.Direction.FORWARD);
        backRight.setDirection(DcMotorEx.Direction.FORWARD);


/*
        armDrive.setMode(DcMotorEx.RunMode.RUN_USING_ENCODER);
        armDrive.setTargetPositionTolerance(5);

        leftSlide.setMode(DcMotorEx.RunMode.RUN_USING_ENCODER);
        rightSlide.setMode(DcMotorEx.RunMode.RUN_USING_ENCODER);
        leftSlide.setTargetPositionTolerance(5);
        rightSlide.setTargetPositionTolerance(5);
*/

        frontRight.setPower(0);
        backRight.setPower(0);
        frontLeft.setPower(0);
        backLeft.setPower(0);

        /*
        armDrive.setZeroPowerBehavior(DcMotorEx.ZeroPowerBehavior.BRAKE);
        armDrive.setPower(0);
        armDrive.setMode(DcMotorEx.RunMode.STOP_AND_RESET_ENCODER);

        leftSlide.setMode(DcMotorEx.RunMode.STOP_AND_RESET_ENCODER);
        rightSlide.setMode(DcMotorEx.RunMode.STOP_AND_RESET_ENCODER);
*/
        /*
        int cameraMonitorViewId = hw.appContext.getResources().getIdentifier("cameraMonitorViewId", "id", hw.appContext.getPackageName());
        frontWebCam = OpenCvCameraFactory.getInstance().createWebcam(hw.get(WebcamName.class, "frontWebcam"), cameraMonitorViewId);
*/





    }




    public DcMotorEx frontRight(){
        return frontRight;
    }

    public DcMotorEx backRight(){
        return backRight;
    }

    public DcMotorEx frontLeft(){
        return frontLeft;
    }

    public DcMotorEx backLeft(){
        return backLeft;
    }


    /*
    public OpenCvCamera getFrontWebCam() { return frontWebCam; }

    public DcMotorEx armDrive(){ return armDrive;}

    public DcMotorEx leftSlide(){ return leftSlide;}

    public DcMotorEx rightSlide(){return rightSlide;}
*/
    //public Servo clawRotate(){return clawRotate;}

    /*
    public Servo clawGrab(){return clawGrab;}
    public Servo clawWrist(){return clawWrist;}
    public Servo clawElbow(){return clawElbow;}
*/

}