Exploit databaseDownload repository ZIP
GH-cd300801353d807ab3cbf4b4d32e5db1
ackertech/fixits_2021-22
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
ackertech/fixits_2021-22Revision d1461387433b
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Base/Robot/LabBot_2Motor.java
Java · 2,027 bytespackage org.firstinspires.ftc.teamcode.Base.Robot;
import com.qualcomm.hardware.rev.RevBlinkinLedDriver;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.Servo;
import org.firstinspires.ftc.teamcode.Base.Drivetrains.LabBot_TwoMotorDrive;
public class LabBot_2Motor extends LabBot_TwoMotorDrive {
// Define variable here
public Servo flag = null;
//LED variables and stuff
public RevBlinkinLedDriver ledLights;
public RevBlinkinLedDriver.BlinkinPattern ledPattern;
public HardwareMap hwBot = null;
public LabBot_2Motor() {
}
public void initRobot (HardwareMap hwMap) {
hwBot = hwMap;
frontLeftMotor = hwBot.dcMotor.get("front_left_motor");
frontRightMotor = hwBot.dcMotor.get("front_right_motor");
frontLeftMotor.setDirection(DcMotorSimple.Direction.REVERSE);
frontRightMotor.setDirection(DcMotorSimple.Direction.FORWARD);
setMotorRunModes(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
setMotorRunModes(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
frontLeftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
frontRightMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
//initialize servo here
flag = hwBot.get(Servo.class, "flag");
flag.setDirection(Servo.Direction.FORWARD);
//initialize LED in here
ledLights = hwBot.get(RevBlinkinLedDriver.class, "led_strip");
ledPattern = RevBlinkinLedDriver.BlinkinPattern.RED;
ledLights.setPattern(ledPattern);
}
public void setLedPattern(RevBlinkinLedDriver.BlinkinPattern patternName) {
ledLights.setPattern(patternName);
}
public void raiseFlag() {
flag.setPosition(0.475);
}
public void lowerFlag() {
flag.setPosition(0);
}
public void initFlag() {
flag.setPosition(.8);
}
}