Very good, cool and amazing commit

This commit is contained in:
Olivier Dubois 2023-02-13 19:41:48 -05:00
parent 2ab93fc8c7
commit ba81040797
5 changed files with 18 additions and 6 deletions

View File

@ -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.

View File

@ -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;
}
}
}