This commit is contained in:
Antoine PerreaultE 2024-02-13 18:17:38 -05:00
parent dcfd6b3a4e
commit 4606a41001

View File

@ -6,20 +6,16 @@ package frc.robot;
import com.pathplanner.lib.auto.AutoBuilder; import com.pathplanner.lib.auto.AutoBuilder;
import com.pathplanner.lib.auto.NamedCommands; import com.pathplanner.lib.auto.NamedCommands;
import com.pathplanner.lib.commands.PathPlannerAuto;
import edu.wpi.first.cameraserver.CameraServer; import edu.wpi.first.cameraserver.CameraServer;
import edu.wpi.first.math.MathUtil; import edu.wpi.first.math.MathUtil;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard; import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab; import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
import edu.wpi.first.wpilibj2.command.RunCommand; import edu.wpi.first.wpilibj2.command.RunCommand;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
// Manettes // Manettes
import edu.wpi.first.wpilibj2.command.WaitCommand;
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;
@ -36,6 +32,7 @@ import frc.robot.command.Lancerampli;
import frc.robot.command.Limelight_tracker; import frc.robot.command.Limelight_tracker;
import frc.robot.command.PistonFerme; import frc.robot.command.PistonFerme;
import frc.robot.command.Pistongrimpeur; import frc.robot.command.Pistongrimpeur;
// Subsystems // Subsystems
import frc.robot.subsystem.Accumulateur; import frc.robot.subsystem.Accumulateur;
import frc.robot.subsystem.Balayeuse; import frc.robot.subsystem.Balayeuse;
@ -60,6 +57,7 @@ public class RobotContainer {
LED LED = new LED(); LED LED = new LED();
CommandJoystick joystick = new CommandJoystick(0); CommandJoystick joystick = new CommandJoystick(0);
CommandXboxController manette = new CommandXboxController(1); CommandXboxController manette = new CommandXboxController(1);
//command //command
PistonFerme pistonFerme = new PistonFerme(grimpeur); PistonFerme pistonFerme = new PistonFerme(grimpeur);
Balayer balayer = new Balayer(balayeuse, accumulateur); Balayer balayer = new Balayer(balayeuse, accumulateur);
@ -104,12 +102,9 @@ public class RobotContainer {
.withPosition(1,1); .withPosition(1,1);
} }
private void configureBindings() { private void configureBindings() {}
}
public Command getAutonomousCommand(){ public Command getAutonomousCommand(){
return autoChooser.getSelected(); return autoChooser.getSelected();
} }
} }