package com.edinarobotics.zeke.commands;

import com.edinarobotics.zeke.Components;
import com.edinarobotics.zeke.subsystems.Collector;
import edu.wpi.first.wpilibj.command.Command;

public class WaitForCollectorUndeployedCommand extends Command {
    private Collector collector;
    
    public WaitForCollectorUndeployedCommand() {
        collector = Components.getInstance().collector;
        setInterruptible(false);
        setTimeout(4.5);
    }
    
    protected void initialize() {
    }

    protected void execute() {
    }

    protected boolean isFinished() {
        return collector.getUndeployed() || isTimedOut();
    }

    protected void end() {
    }

    protected void interrupted() {
    }
    
}

@@ -442,16 +442,45 @@
 t(4.5);%0A
+        requires(collector);%0A
     %7D%0A  
@@ -524,41 +524,175 @@
     
-%7D%0A%0A    protected void execute() %7B
+    collector.setDeployed(Collector.CollectorState.RETRACTED);%0A    %7D%0A%0A    protected void execute() %7B%0A        collector.setDeployed(Collector.CollectorState.RETRACTED);
 %0A   

Fix missing requires(), add Watchdog safety to WaitForCollectorUndeployedCommand.