import frc.robot.commands.drive_comm.DefaultDriveCommand;
import frc.robot.commands.gpm.AutoShootCommand;
import frc.robot.commands.gpm.ClimbDriveCommand;
-import frc.robot.commands.gpm.HardstopWarning;
+// import frc.robot.commands.gpm.HardstopWarning;
import frc.robot.commands.gpm.IntakeMovementCommand;
import frc.robot.commands.gpm.RunSpindexer;
import frc.robot.commands.gpm.Superstructure;
}
if (intake != null && hood != null && turret != null)
- CommandScheduler.getInstance().schedule(new HardstopWarning(hood, intake, turret));
-
+ // CommandScheduler.getInstance().schedule(new HardstopWarning(hood, intake, turret)); (no more crt for this)
// This is really annoying so it's disabled
DriverStation.silenceJoystickConnectionWarning(true);
*/
public enum RobotId {
Default,
- PrimeJr, WaffleHouse, TwinTake, SwerveCompetition, Vertigo, Vivace, Phil, BetaBot,
+ PrimeJr, WaffleHouse, TwinBot, SwerveCompetition, Vertigo, Vivace, Phil, BetaBot,
ClassBot1, ClassBot2, ClassBot3, ClassBot4,
TestBed1, TestBed2;
SmartDashboard.putBoolean("Hood OK", hood.getPositionDeg() >= HoodConstants.MIN_ANGLE - epsilon);
SmartDashboard.putBoolean("Intake OK", intake.getPosition() >= IntakeConstants.STARTING_POINT - epsilon);
- if (Math.abs(turret.getPositionRad()) <= epsilon) {
- var encoderPositions = turret.getEncoderPositions();
- if (Math.abs(encoderPositions.getFirst()) <= epsilon && Math.abs(encoderPositions.getSecond()) <= epsilon)
- turretStatus = "Ok";
- else
- turretStatus = "Bad";
- }
+ // if (Math.abs(turret.getPositionRad()) <= epsilon) {
+ // var encoderPositions = turret.getEncoderPositions();
+ // if (Math.abs(encoderPositions.getFirst()) <= epsilon && Math.abs(encoderPositions.getSecond()) <= epsilon)
+ // turretStatus = "Ok";
+ // else
+ // turretStatus = "Bad";
+ // }
SmartDashboard.putString("Turret Status", turretStatus);
}
controller.get(PS5Button.SQUARE).toggleOnTrue(autoShoot);
}
- // Climb
- if (climb != null) {
- // Calibration
- controller.get(PS5Button.OPTIONS).onTrue(new InstantCommand(() -> {
- climb.hardstopCalibration();
- })).onFalse(new InstantCommand(() -> {
- climb.stopCalibrating();
- }));
-
- // Climb retract
- controller.get(PS5Button.CROSS).onTrue(new InstantCommand(() -> {
- climb.retract();
- }));
-
- // Go to up position
- controller.get(PS5Button.TRIANGLE).onTrue(new InstantCommand(() -> {
- climb.goUp();
- }));
-
- // Go to climb position
- controller.get(PS5Button.TOUCHPAD).onTrue(new InstantCommand(() -> {
- climb.climbPosition();
- }));
- }
-
// Hood
if (hood != null) {
- // Calibration
- // controller.get(PS5Button.PS).onTrue(new InstantCommand(() -> {
- // hood.calibrate();
- // })).onFalse(new InstantCommand(() -> {
- // hood.stopCalibrating();
- // }));
-
// Set the hood down -- for safety measures under trench
controller.get(DPad.LEFT).onTrue(new InstantCommand(()->{
hood.forceHoodDown(true);