Exploit database

GH-c1314e9c61d1a3af34ef760e86a50422

5040nutsandbolts/powerplay_22-23

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 files15

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

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/OdomTest.java

Java · 2,511 bytes
package org.firstinspires.ftc.teamcode;

import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotorSimple;

import org.firstinspires.ftc.teamcode.Hardware;
import org.firstinspires.ftc.teamcode.Odometry;
import org.firstinspires.ftc.teamcode.roadrunnerquickstart.drive.util.Encoder;

@TeleOp(name = "OdomTest",group="teleop")
public class OdomTest extends LinearOpMode
{
    @Override
    public void runOpMode() throws InterruptedException
    {
        Hardware.currentOpMode=this;
        Odometry robot = new Odometry(hardwareMap);
        waitForStart();
        robot.softBrake();
        robot.resetOdometry(0,0,0);

        robot.frontLeft.setDirection(DcMotorSimple.Direction.FORWARD);
        robot.backLeft.setDirection(DcMotorSimple.Direction.FORWARD);
        robot.backRight.setDirection(DcMotorSimple.Direction.REVERSE);
        robot.frontRight.setDirection(DcMotorSimple.Direction.REVERSE);

        while(opModeIsActive())
        {
            robot.updatePositionRoadRunner();
            robot.robotODrive(0, 0, gamepad1.right_stick_x);
            telemetry.addData("left", robot.leftEncoderPos);
            telemetry.addData("right", robot.rightEncoderPos);
            telemetry.addData("center", robot.centerEncoderPos);
            telemetry.addLine();
            telemetry.addData("x", robot.x);
            telemetry.addData("y", robot.y);
            telemetry.addData("theta", robot.theta);
            telemetry.addLine();
            /*telemetry.addData("left red", robot.leftLineSensor.red());
            telemetry.addData("left blue", robot.leftLineSensor.blue());
            telemetry.addData("left green", robot.leftLineSensor.green());
            telemetry.addData("left luminosity", robot.leftLineSensor.alpha());
            telemetry.addData("left all", robot.leftLineSensor.argb());
            telemetry.addLine();
            telemetry.addData("right red", robot.rightLineSensor.red());
            telemetry.addData("right blue", robot.rightLineSensor.blue());
            telemetry.addData("right green", robot.rightLineSensor.green());
            telemetry.addData("right luminosity", robot.rightLineSensor.alpha());
            telemetry.addData("right all", robot.rightLineSensor.argb());*/
            telemetry.update();
        }
    }
}