Exploit database

GH-0aa122b19f66fcaad23733e370e36cfb

ahs-robotics-club/12864-freight-frenzy

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 files7

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

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

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

import com.arcrobotics.ftclib.command.CommandBase;

import org.firstinspires.ftc.robotcore.external.Telemetry;
import org.firstinspires.ftc.teamcode.subsystems.LiftSubsystem;

public class LiftCommand extends CommandBase {
    private LiftSubsystem subsystem;
    private int level;
    private Telemetry telemetry;

    public LiftCommand(LiftSubsystem subsystem, Telemetry telemetry) {
        this.subsystem = subsystem;
        level = 0;
        this.telemetry = telemetry;
        addRequirements(subsystem);
    }

    @Override
    public void initialize() {
        if (level == 0) {
            subsystem.setGoal(0.5);
            level++;
            telemetry.addData("Help", level);
        } else if (level == 1) {
            subsystem.setGoal(1);
            level++;
            telemetry.addData("Help", level);

        } else if (level == 2) {
            subsystem.setGoal(10);
            level = 0;
            telemetry.addData("Help", level);

        }
    }
}