Exploit databaseDownload repository ZIP
GH-e44868997065774c284d5004fa3c7552
ahs-robotics-club/12864-powerplay
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
ahs-robotics-club/12864-powerplayRevision 0d4918ed561f
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/commands/rr/TurnCommand.java
Java · 883 bytespackage org.firstinspires.ftc.teamcode.commands.rr;
import com.arcrobotics.ftclib.command.CommandBase;
import org.firstinspires.ftc.teamcode.subsystems.rr.MecanumDriveSubsystem;
public class TurnCommand extends CommandBase {
private final MecanumDriveSubsystem drive;
private final double angle;
public TurnCommand(MecanumDriveSubsystem drive, double angle) {
this.drive = drive;
this.angle = angle;
addRequirements(drive);
}
@Override
public void initialize() {
drive.turn(angle);
}
@Override
public void execute() {
drive.update();
}
@Override
public void end(boolean interrupted) {
if (interrupted) {
drive.stop();
}
}
@Override
public boolean isFinished() {
return Thread.currentThread().isInterrupted() || !drive.isBusy();
}
}