diff --git a/Robot2024/src/main/java/com/team2813/Constants.java b/Robot2024/src/main/java/com/team2813/Constants.java index 3be9bab..6e17570 100644 --- a/Robot2024/src/main/java/com/team2813/Constants.java +++ b/Robot2024/src/main/java/com/team2813/Constants.java @@ -4,6 +4,9 @@ package com.team2813; +import edu.wpi.first.wpilibj2.command.button.CommandPS4Controller; +import edu.wpi.first.wpilibj2.command.button.Trigger; + /** * The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean * constants. This class should not be used for any other purpose. All constants should be declared @@ -14,6 +17,45 @@ */ public final class Constants { public static class OperatorConstants { - public static final int CLIMBER = 18; + public static final int operatorControllerPort = 0; + } + public static class DriverConstants { + public static final int driverControllerPort = 0; + public static final CommandPS4Controller DRIVER_CONTROLLER = new CommandPS4Controller(driverControllerPort); + public static final Trigger SLOWMODE_BUTTON = DRIVER_CONTROLLER.L1(); } + + // front right swerve module + public static final int FRONT_RIGHT_DRIVE_ID = 1; + public static final int FRONT_RIGHT_ENCODER_ID = 2; + public static final int FRONT_RIGHT_STEER_ID = 3; + + // front left swerve module + public static final int FRONT_LEFT_DRIVE_ID = 4; + public static final int FRONT_LEFT_ENCODER_ID = 5; + public static final int FRONT_LEFT_STEER_ID = 6; + + // back right swerve module + public static final int BACK_RIGHT_DRIVE_ID = 7; + public static final int BACK_RIGHT_ENCODER_ID = 8; + public static final int BACK_RIGHT_STEER_ID = 9; + + // back left swerve module + public static final int BACK_LEFT_DRIVE_ID = 10; + public static final int BACK_LEFT_ENCODER_ID = 11; + public static final int BACK_LEFT_STEER_ID = 12; + + // pigeon + public static final int PIGEON_ID = 13; + + //Mechanism CAN IDs + public static final int INTAKE = 14; + public static final int KICKER = 15; + public static final int SHOOTER = 16; + public static final int SHOOTER_PIVOT= 17; + public static final int SHOOTER_ENCODER = 18; + public static final int CLIMBER = 19; + public static final int MAGAZINE = 20; + public static final int INTAKE_ENCODER = 21; + public static final int INTAKE_PIVOT = 22; }