Exploit databaseDownload repository ZIP
GH-0962b950892393075740bfa866bedf57
ahs-robotics-club/12864-centerstage
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files1
ahs-robotics-club/12864-centerstageRevision 5221f1b73973
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/autons/ParkingAuton.java
Java · 1,773 bytespackage org.firstinspires.ftc.teamcode.autons;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.acmerobotics.roadrunner.trajectory.Trajectory;
import com.arcrobotics.ftclib.command.CommandOpMode;
import com.arcrobotics.ftclib.hardware.motors.Motor;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import org.firstinspires.ftc.teamcode.commands.TrajectoryFollowerCommand;
import org.firstinspires.ftc.teamcode.drive.SampleMecanumDrive;
import org.firstinspires.ftc.teamcode.subbys.MecanumDriveSubsystem;
@Autonomous(name = "ParkingAuton")
public class ParkingAuton extends CommandOpMode {
private MecanumDriveSubsystem drive;
private Motor frontLeft, frontRight, backLeft, backRight;
private Pose2d startPose = new Pose2d(35.0, -62.0, Math.toRadians(0.0));
@Override
public void initialize() {
frontLeft = new Motor(hardwareMap, "fL");
frontRight = new Motor(hardwareMap, "fR");
backLeft = new Motor(hardwareMap, "bL");
backRight = new Motor(hardwareMap, "bR");
frontLeft.motor.setDirection(DcMotor.Direction.FORWARD);
frontRight.motor.setDirection(DcMotor.Direction.FORWARD);
backLeft.motor.setDirection(DcMotor.Direction.FORWARD);
backRight.motor.setDirection(DcMotor.Direction.FORWARD);
drive = new MecanumDriveSubsystem(new SampleMecanumDrive(hardwareMap), false);
Trajectory traj0 = drive.trajectoryBuilder(startPose).forward(30.0).build();
TrajectoryFollowerCommand autonomous = new TrajectoryFollowerCommand(drive, traj0);
if(isStopRequested()){
return;
}
schedule(autonomous);
}
}