Exploit databaseDownload repository ZIP
GH-b17710e90f720051740d459ad17d231e
4329/decode
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files11
4329/decodeRevision 43305f21b27c
- ↑..Parent directory
- BlinkinSubsystem.java
- ImuSubsystem.java
- IntakeSubsystem.java
- LimeLightSubsystem.java
- MecanumDriveSubsystem.java
- OTOSSubsystem.java
- PushyMcPushermanSubsystem.java
- ShooterSubsystem.java
- SpindexerSubsystem.java
- TelemetryUpdateSubsystem.java
- VoltageSubsystem.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/subsystem/MecanumDriveSubsystem.java
Java · 2,341 bytespackage org.firstinspires.ftc.teamcode.subsystem;
import com.arcrobotics.ftclib.command.SubsystemBase;
import com.arcrobotics.ftclib.controller.PIDController;
import com.arcrobotics.ftclib.drivebase.MecanumDrive;
import com.arcrobotics.ftclib.hardware.motors.Motor;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
public class MecanumDriveSubsystem extends SubsystemBase {
private MecanumDrive mecanumDrive;
private Motor leftFrontDrive;
private Motor rightFrontDrive;
private Motor leftBackDrive;
private Motor rightBackDrive;
private PIDController turnPID;
public MecanumDriveSubsystem(HardwareMap hardwareMap) {
this.leftFrontDrive = new Motor(hardwareMap, "leftFrontDrive");
this.rightFrontDrive = new Motor(hardwareMap, "rightFrontDrive");
this.leftBackDrive = new Motor(hardwareMap, "leftBackDrive");
this.rightBackDrive = new Motor(hardwareMap, "rightBackDrive");
leftFrontDrive.motor.setDirection(DcMotorSimple.Direction.REVERSE);
rightFrontDrive.motor.setDirection(DcMotorSimple.Direction.REVERSE);
leftBackDrive.motor.setDirection(DcMotorSimple.Direction.REVERSE);
rightBackDrive.motor.setDirection(DcMotorSimple.Direction.REVERSE);
leftFrontDrive.motor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
rightFrontDrive.motor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
leftBackDrive.motor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
rightBackDrive.motor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
mecanumDrive = new MecanumDrive(leftFrontDrive, rightFrontDrive, leftBackDrive, rightBackDrive);
mecanumDrive.setRightSideInverted(false);
turnPID = new PIDController(1, 0, 0);
turnPID.setTolerance(15);
}
public void stop() {
mecanumDrive.stop();
}
public Motor.Encoder getSingleEncoder() {
return leftBackDrive.encoder;
}
public void drive(double strafe, double forward, double turn) {
mecanumDrive.driveRobotCentric(strafe, forward, turn);
}
public void driveFieldOriented(double strafe, double forward, double turn, double gyro) {
mecanumDrive.driveFieldCentric(strafe, forward, turn, gyro);
}
}