dashboard + limit id
This commit is contained in:
@ -6,6 +6,7 @@ package frc.robot.commands;
|
||||
|
||||
import edu.wpi.first.wpilibj2.command.Command;
|
||||
import frc.robot.subsystems.Elevateur;
|
||||
import frc.robot.subsystems.Pince;
|
||||
|
||||
|
||||
|
||||
@ -13,10 +14,12 @@ import frc.robot.subsystems.Elevateur;
|
||||
public class reset extends Command {
|
||||
/** Creates a new reset. */
|
||||
private Elevateur elevateur;
|
||||
public reset(Elevateur elevateur) {
|
||||
private Pince pince;
|
||||
public reset(Elevateur elevateur, Pince pince) {
|
||||
// Use addRequirements() here to declare subsystem dependencies.
|
||||
this.elevateur = elevateur;
|
||||
addRequirements(elevateur);
|
||||
this.pince = pince;
|
||||
addRequirements(elevateur,pince);
|
||||
}
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@ -27,6 +30,7 @@ public class reset extends Command {
|
||||
@Override
|
||||
public void execute() {
|
||||
elevateur.reset();
|
||||
pince.reset();
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
Reference in New Issue
Block a user