This commit is contained in:
Antoine PerreaultE 2023-12-04 19:47:28 -05:00
parent 66ae081336
commit f8a525cbeb
4 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,7 @@ import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import edu.wpi.first.wpilibj2.command.button.CommandJoystick; 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.LancerTest; import frc.robot.commands.LancerTest;
import frc.robot.commands.Force2; import frc.robot.commands.Force2;
import frc.robot.commands.Force3; import frc.robot.commands.Force3;

View File

@ -1,7 +1,7 @@
// 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 // 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. // the WPILib BSD license file in the root directory of this project.
/*
package frc.robot.commands; package frc.robot.commands;
import edu.wpi.first.networktables.GenericEntry; import edu.wpi.first.networktables.GenericEntry;
@ -27,3 +27,4 @@ public class Lancer extends ParallelCommandGroup {
new AccAvancer(accumulateur),new AccReculer(accumulateur)); new AccAvancer(accumulateur),new AccReculer(accumulateur));
} }
} }
*/

View File

@ -18,7 +18,9 @@ public class LancerTest 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.000000000000075572, 0, 0);
}
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override

View File

@ -1,7 +1,7 @@
// 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 // 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. // the WPILib BSD license file in the root directory of this project.
/*
package frc.robot.commands; package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase; import edu.wpi.first.wpilibj2.command.CommandBase;
@ -9,7 +9,7 @@ import frc.robot.subsystems.Lanceur;
public class Lancez extends CommandBase { public class Lancez extends CommandBase {
private Lanceur lanceur; private Lanceur lanceur;
/** Creates a new Lancez. */ /** Creates a new Lancez.
public Lancez(Lanceur lanceur) { public Lancez(Lanceur lanceur) {
this.lanceur = lanceur; this.lanceur = lanceur;
addRequirements(lanceur); addRequirements(lanceur);
@ -43,3 +43,4 @@ public class Lancez extends CommandBase {
return false; return false;
} }
} }
*/