Skip to content

Commit

Permalink
constants added to climber
Browse files Browse the repository at this point in the history
  • Loading branch information
amrikverma committed Jan 24, 2024
1 parent cbb86b5 commit fccc11d
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion Robot2024/src/main/java/com/team2813/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

0 comments on commit fccc11d

Please sign in to comment.