Exploit database

GH-d2ae9ba57199dcc348a567c3f62dd3fe

4329/powerplay

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-11358

1,181 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files20

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/commands/GrabberCloseCommand.java

Java · 1,071 bytes
package org.firstinspires.ftc.teamcode.commands;

import com.arcrobotics.ftclib.command.CommandBase;
import com.arcrobotics.ftclib.util.Timing;

import org.firstinspires.ftc.teamcode.subsystems.GrabberServoSubsystem;

import java.util.concurrent.TimeUnit;

public class GrabberCloseCommand extends CommandBase {
//    private DoubleSupplier grabberPower;
    private GrabberServoSubsystem grabberServoSubsystem;
    private Timing.Timer timer;
    private boolean firstExecute=false;


    public GrabberCloseCommand(GrabberServoSubsystem GrabberServoSubsystem){
        this.grabberServoSubsystem = GrabberServoSubsystem;
        addRequirements(grabberServoSubsystem);
    }

    @Override
    public void initialize() {
        timer = new Timing.Timer(1000, TimeUnit.MILLISECONDS);
    }

    @Override
    public void execute(){
        if(!firstExecute) {
            grabberServoSubsystem.closeServo();
            timer.start();
            firstExecute=true;
        }

    }

    @Override
    public boolean isFinished() {
        return timer.done();
    }
}