package com.edinarobotics.zed.commands;

import com.edinarobotics.zed.Components;
import com.edinarobotics.zed.subsystems.Climber;
import edu.wpi.first.wpilibj.command.Command;

public class SetClimberDeployCommand extends Command {
    private boolean deployed;
    private double delayTime;
    private Climber climber;
    
    public SetClimberDeployCommand(boolean deployed, double delayTime){
        this.deployed = deployed;
        this.delayTime = delayTime;
        this.climber = Components.getInstance().climber;
    }
    
    public SetClimberDeployCommand(boolean deployed){
        this(deployed, 0);
    }

    protected void initialize() {
        
    }

    protected void execute() {
        
    }

    protected boolean isFinished() {
        return timeSinceInitialized() >= delayTime;
    }

    protected void end() {
        climber.setClimberDeployed(deployed);
    }

    protected void interrupted() {
        //Interrupted, delay time is not done. Do not deploy.
    }
}

@@ -392,16 +392,51 @@
 yTime)%7B%0A
+        super(%22SetClimberDeploy%22);%0A
         
@@ -550,24 +550,51 @@
 ().climber;%0A
+        requires(climber);%0A
     %7D%0A    %0A 

Add command name to SetClimberDeployCommand constructor.