This commit is contained in:
Antoine PerreaultE 2023-12-04 18:59:33 -05:00
parent 4be4a22fc8
commit 2ef438cf63
3 changed files with 5 additions and 11 deletions

View File

@ -16,12 +16,6 @@ import edu.wpi.first.wpilibj2.command.button.CommandJoystick;
import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
import frc.robot.commands.Avancer; import frc.robot.commands.Avancer;
import frc.robot.commands.Lancer; import frc.robot.commands.Lancer;
import frc.robot.commands.Force2;
import frc.robot.commands.Force3;
import frc.robot.commands.Force4;
import frc.robot.commands.Force5;
import frc.robot.commands.Force6;
import frc.robot.commands.Force7;
import frc.robot.commands.Reculer; import frc.robot.commands.Reculer;
import frc.robot.commands.accumulateurtest; import frc.robot.commands.accumulateurtest;
import frc.robot.subsystems.Accumulateur; import frc.robot.subsystems.Accumulateur;

View File

@ -12,13 +12,13 @@ import frc.robot.subsystems.Accumulateur;
import frc.robot.subsystems.Lanceur; import frc.robot.subsystems.Lanceur;
public class Lancer extends ParallelCommandGroup { public class Lancer extends ParallelCommandGroup {
private Lanceur lanceur; // private Lanceur lanceur;
private Accumulateur accumulateur; // private Accumulateur accumulateur;
public Lancer(Lanceur lanceur,Accumulateur accumulateur,GenericEntry vitesse) { public Lancer(Lanceur lanceur,Accumulateur accumulateur,GenericEntry vitesse) {
this.lanceur = lanceur; // this.lanceur = lanceur;
this.accumulateur = accumulateur; // this.accumulateur = accumulateur;
// Add your commands in the addCommands() call, e.g. // Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand()); // addCommands(new FooCommand(), new BarCommand());

View File

@ -19,7 +19,7 @@ public class Lancez extends CommandBase {
// Called when the command is initially scheduled. // Called when the command is initially scheduled.
@Override @Override
public void initialize() { public void initialize() {
lanceur.setPID(0, 0, 0); lanceur.setPID(0.19166, 0, 0);
} }
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.