Exploit databaseDownload repository ZIP
GH-0b697085ef9427764bda6c1ec30e4b7d
ackertech/ftc_robotics_class
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
ackertech/ftc_robotics_classRevision 5fe2185a4d62
- ↑..Parent directory
- AprilTagDetectionExample.java
- AutoSleeveDetectionAprilTag.java
- VisionTestExample.java
- VisionTrackingAuto.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Base/Controls/Vision/VisionTestExample.java
Java · 1,926 bytespackage org.firstinspires.ftc.teamcode.Base.Controls.Vision;
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.Base.Sensors.OpenCVSleeveDetection;
import org.openftc.easyopencv.OpenCvCamera;
import org.openftc.easyopencv.OpenCvCameraFactory;
import org.openftc.easyopencv.OpenCvCameraRotation;
@Disabled
@Autonomous(name = "Vision: OpenCV Sleeve Test")
public class VisionTestExample extends LinearOpMode {
OpenCVSleeveDetection sleeveDetection = new OpenCVSleeveDetection();
OpenCvCamera webcam;
@Override
public void runOpMode() throws InterruptedException {
int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier("cameraMonitorViewId", "id", hardwareMap.appContext.getPackageName());
webcam = OpenCvCameraFactory.getInstance().createWebcam(hardwareMap.get(WebcamName.class, "Webcam1"), cameraMonitorViewId);
sleeveDetection = new OpenCVSleeveDetection();
webcam.setPipeline(sleeveDetection);
webcam.openCameraDeviceAsync(new OpenCvCamera.AsyncCameraOpenListener()
{
@Override
public void onOpened()
{
webcam.startStreaming(320,240, OpenCvCameraRotation.UPRIGHT);
}
@Override
public void onError(int errorCode) {}
});
while (!isStarted()) {
telemetry.addData("ROTATION: ", sleeveDetection.getPosition());
telemetry.update();
}
waitForStart();
while (opModeIsActive()){
telemetry.addData("ROTATION: ", sleeveDetection.getPosition());
telemetry.update();
requestOpModeStop();
}
}
}