diff --git a/bin/main/frc/robot/commands/BrakeFerme.class b/bin/main/frc/robot/commands/BrakeFerme.class index c0d81df..86f59a1 100644 Binary files a/bin/main/frc/robot/commands/BrakeFerme.class and b/bin/main/frc/robot/commands/BrakeFerme.class differ diff --git a/bin/main/frc/robot/commands/BrakeOuvre.class b/bin/main/frc/robot/commands/BrakeOuvre.class index fe20788..a00f718 100644 Binary files a/bin/main/frc/robot/commands/BrakeOuvre.class and b/bin/main/frc/robot/commands/BrakeOuvre.class differ diff --git a/bin/main/frc/robot/subsystems/BasePilotable.class b/bin/main/frc/robot/subsystems/BasePilotable.class index 96315e4..a1ecf8d 100644 Binary files a/bin/main/frc/robot/subsystems/BasePilotable.class and b/bin/main/frc/robot/subsystems/BasePilotable.class differ diff --git a/src/main/java/frc/robot/commands/BrakeFerme.java b/src/main/java/frc/robot/commands/BrakeFerme.java index d8dceff..1f0493a 100644 --- a/src/main/java/frc/robot/commands/BrakeFerme.java +++ b/src/main/java/frc/robot/commands/BrakeFerme.java @@ -21,7 +21,7 @@ public class BrakeFerme extends CommandBase { // Called when the command is initially scheduled. @Override public void initialize() { - .fermer(); + basePilotable.BrakeFerme(); } // Called every time the scheduler runs while the command is scheduled. diff --git a/src/main/java/frc/robot/commands/BrakeOuvre.java b/src/main/java/frc/robot/commands/BrakeOuvre.java index f2a2389..9198398 100644 --- a/src/main/java/frc/robot/commands/BrakeOuvre.java +++ b/src/main/java/frc/robot/commands/BrakeOuvre.java @@ -1,24 +1,34 @@ -// Copyright (c) FIRST and other WPILib contributors. +-// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; +import frc.robot.subsystems.BasePilotable; public class BrakeOuvre extends CommandBase { - /** Creates a new BrakeOuvre. */ - public BrakeOuvre() { + + private BasePilotable basePilotable; + + /** Creates a new BrakeFerme. */ + public BrakeOuvre(BasePilotable basePilotable) { + this.basePilotable = basePilotable; // Use addRequirements() here to declare subsystem dependencies. + addRequirements(basePilotable); } // Called when the command is initially scheduled. @Override - public void initialize() {} + public void initialize() { + basePilotable.BrakeOuvre(); + } // Called every time the scheduler runs while the command is scheduled. @Override - public void execute() {} + public void execute() { + + } // Called once the command ends or is interrupted. @Override @@ -30,3 +40,5 @@ public class BrakeOuvre extends CommandBase { return false; } } + +}